Skip to content

Commit 1cfe85d

Browse files
committed
feat: finsih the sponsor desktop design
1 parent 9c42ce0 commit 1cfe85d

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

app/(home)/components/SponsorsDesktop.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
115115
<Link
116116
href={featuredSponsor.url}
117117
target="_blank"
118-
className="border border-[#ffffff] rounded-lg xl:px-10 xl:py-4 lg:p-6 w-full h-full flex flex-col justify-center items-center"
118+
className="border border-[#ffffff] rounded-lg xl:px-10 xl:py-4 lg:p-6 w-full h-full flex flex-col justify-center items-center overflow-hidden"
119119
>
120120
<div className="w-full h-[200px] relative flex justify-center items-center transition-transform duration-500 ease-in-out hover:scale-105">
121121
<Image
@@ -168,7 +168,7 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
168168

169169
{/* Carousel Section */}
170170
<div className="flex-1 h-auto flex relative">
171-
{ /*Carousel Body*/ }
171+
{/*Carousel Body*/}
172172
<Carousel
173173
className="w-full flex h-full"
174174
setApi={setApi}
@@ -177,11 +177,12 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
177177
loop: true,
178178
}}
179179
>
180-
181180
{/* Previous Button */}
182-
<CarouselPrevious className="absolute left-[-64px] z-10 h-16 w-16 sm:w-20 sm:h-20" />
183-
184-
{/* Carousel Content */}
181+
<button onClick={autoPlayInteraction}>
182+
<CarouselPrevious className="absolute left-[-64px] z-10 h-16 w-16 sm:w-20 sm:h-20" />
183+
</button>
184+
185+
{/* Carousel Content */}
185186
<CarouselContent>
186187
{sponsors.map((sponsor, index) => (
187188
<CarouselItem key={index} className="basis-1/3">
@@ -220,7 +221,9 @@ const SponsorsDesktop = ({ sponsors }: { sponsors: SponsorshipProps[] }) => {
220221
</CarouselContent>
221222

222223
{/* Next Button */}
223-
<CarouselNext className="absolute right-[-64px] z-10 h-16 w-16 sm:w-20 sm:h-20" />
224+
<button onClick={autoPlayInteraction}>
225+
<CarouselNext className="absolute right-[-64px] z-10 h-16 w-16 sm:w-20 sm:h-20" />
226+
</button>
224227
</Carousel>
225228
</div>
226229
{/* Dots Navigation */}

0 commit comments

Comments
 (0)