Skip to content

Commit

Permalink
Removes missing height warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoEC committed Aug 19, 2024
1 parent a6d833e commit 6756cd6
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 20 deletions.
2 changes: 2 additions & 0 deletions components/Home/Testimonials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default function Testimonials({
<div class="flex flex-row items-center gap-4">
<Image
width={32}
height={32}
src={testimonial.image}
alt={testimonial.image}
decoding="async"
Expand All @@ -209,6 +210,7 @@ export default function Testimonials({
</div>
<Image
width={18}
height={18}
src={"https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/530/50f5e3c5-2b8a-4f4f-a0f9-87fb91d83144"}
alt={"https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/530/50f5e3c5-2b8a-4f4f-a0f9-87fb91d83144"}
decoding="async"
Expand Down
2 changes: 2 additions & 0 deletions components/ui/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export type AvailableIcons =
| "Menu"
| "Minus"
| "minus-rounded"
| "Moon"
| "OCCLogo"
| "Phone"
| "PigMoney"
Expand All @@ -81,6 +82,7 @@ export type AvailableIcons =
| "star-sign"
| "Support"
| "Slide-graph"
| "Sun"
| "Time"
| "Tiktok"
| "Trash"
Expand Down
1 change: 1 addition & 0 deletions islands/Home/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ export default function Header({ menuLinks, ...props }: Props) {
src={props.logo}
alt={props.logo}
width={120}
height={40}
class="w-32 h-fit"
/>
</a>
Expand Down
2 changes: 1 addition & 1 deletion sections/Glossary/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface Props {
description: string;
image?: ImageWidget;
placement: "left" | "right";
cta: CTA[];
cta?: CTA[];
}

const PLACEMENT = {
Expand Down
37 changes: 18 additions & 19 deletions sections/New Landing/Investors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ export interface Props {
const IMAGES = [
{
altText: "deco",
img:
"https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/637e8601-6b86-4979-aa97-68013a2a60fd",
img: "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/637e8601-6b86-4979-aa97-68013a2a60fd",
href: "/",
},
{
altText: "deco",
img:
"https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/637e8601-6b86-4979-aa97-68013a2a60fd",
img: "https://ozksgdmyrqcxcwhnbepg.supabase.co/storage/v1/object/public/assets/239/637e8601-6b86-4979-aa97-68013a2a60fd",
href: "",
},
];
Expand All @@ -50,7 +48,8 @@ const LogoSlider = ({ logos }: { logos: Image[] }) => {
target="_blank"
>
<Image
width={144}
width={80}
height={32}
src={logo.img}
alt={logo.img}
decoding="async"
Expand All @@ -64,18 +63,16 @@ const LogoSlider = ({ logos }: { logos: Image[] }) => {

return (
<div className="logos overflow-hidden py-15 relative w-full">
<div className="before:absolute before:inset-y-0 before:left-0 before:w-[60px] lg:before:w-64 before:bg-gradient-to-l before:from-black/0 before:to-[#0D1717] before:z-20">
</div>
<div className="after:absolute after:inset-y-0 after:right-0 after:w-[60px] lg:after:w-64 after:bg-gradient-to-r after:from-black/0 after:to-[#0D1717] after:z-20">
</div>
<div className="before:absolute before:inset-y-0 before:left-0 before:w-[60px] lg:before:w-64 before:bg-gradient-to-l before:from-black/0 before:to-[#0D1717] before:z-20"></div>
<div className="after:absolute after:inset-y-0 after:right-0 after:w-[60px] lg:after:w-64 after:bg-gradient-to-r after:from-black/0 after:to-[#0D1717] after:z-20"></div>
<div
className="flex whitespace-nowrap gap-4"
onMouseEnter={(
e,
) => (e.currentTarget.style.animationPlayState = "paused")}
onMouseLeave={(
e,
) => (e.currentTarget.style.animationPlayState = "running")}
onMouseEnter={(e) =>
(e.currentTarget.style.animationPlayState = "paused")
}
onMouseLeave={(e) =>
(e.currentTarget.style.animationPlayState = "running")
}
>
{renderLogoSlide()}
{renderLogoSlide()}
Expand All @@ -99,10 +96,12 @@ function Investors({
}) {
const listBrands = useMemo(
() =>
brands?.logos && brands?.logos.length > 0 ? brands?.logos : (Array(20)
.fill(null)
.map((_, i) => IMAGES[i % 2]) as Image[]),
[],
brands?.logos && brands?.logos.length > 0
? brands?.logos
: (Array(20)
.fill(null)
.map((_, i) => IMAGES[i % 2]) as Image[]),
[]
);

return (
Expand Down
14 changes: 14 additions & 0 deletions static/sprites.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6756cd6

Please sign in to comment.