Skip to content

Commit

Permalink
feat: Add Sponser component to display sponsors on the Home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed May 9, 2024
1 parent 6d02669 commit 911f40b
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions src/components/widgets/GoldSponser.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"use client";
import Image from "next/image";
import { CardBody, CardContainer, CardItem } from "@/components/ui/3d-card";
import { tiaraFont } from "@/lib/fonts";
import { cn, tiaraAssetsPrefix } from "@/lib/utils";

const sponsers = [
`${tiaraAssetsPrefix}/sponsers/ather.jpeg`,
`${tiaraAssetsPrefix}/sponsers/kasharp.jpeg`,
`${tiaraAssetsPrefix}/sponsers/marian.jpeg`,
`${tiaraAssetsPrefix}/sponsers/nidhi_land.jpeg`,
`${tiaraAssetsPrefix}/sponsers/pakruti.jpeg`,

];



export function Sponsers() {
return (
<div className="h-fit">
<div className="-ml-5 flex justify-center items-center pt-32 z-50">
<div
className={cn(
"text-4xl xs:text-5xl sm:text-6xl md:text-7xl lg:text-8xl w-fit text-center duration-500",
tiaraFont.className
)}
>
<h1 className="text-4xl xs:text-5xl sm:text-6xl md:text-7xl lg:text-8xl">
Sponsers
</h1>
</div>
</div>
<div className="w-full flex justify-center ">
<div className="p-14 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-16">
{sponsers.map((card, index) => {
return (
<CardContainer
key={index}
containerClassName="relative flex items-center justify-center transition-all duration-200 ease-linear"
>
<CardBody className="relative">
<CardItem translateZ="100" className="w-full mt-4">
<Image
src={card}
className="rounded-xl "
alt="thumbnail"
width={1200}
height={800}
priority
sizes="(max-width: 640px) 100vw, (max-width: 1023px) 50vw, 33vw"
/>
</CardItem>
</CardBody>
</CardContainer>
);
})}
</div>
</div>
</div>
);
}

0 comments on commit 911f40b

Please sign in to comment.