11'use client' ;
22
3- // Note: Reverted to <img> tag to respect original SVG sizing as requested.
4- // Using a white background for maximum contrast with dark/transparent logos.
5- // Added grayscale-to-color hover effect.
3+ import Image from 'next/image' ;
64
75type SponsorTier = {
86 title : string ;
@@ -18,10 +16,9 @@ type SponsorTier = {
1816type SponsorsTiersProps = {
1917 tiers : SponsorTier [ ] ;
2018 ctaLabel : string ;
21- ctaLink : string ;
2219} ;
2320
24- export function SponsorsTiers ( { tiers, ctaLabel, ctaLink } : SponsorsTiersProps ) {
21+ export function SponsorsTiers ( { tiers, ctaLabel } : SponsorsTiersProps ) {
2522 return (
2623 < div className = "space-y-14" >
2724 { tiers . map ( ( tier ) => (
@@ -40,20 +37,22 @@ export function SponsorsTiers({ tiers, ctaLabel, ctaLink }: SponsorsTiersProps)
4037 </ p >
4138 </ div >
4239
43- < div className = "grid grid-cols-2 gap-6 md:grid-cols-3 lg:grid-cols-4 " >
40+ < div className = "flex flex-col items-center gap-12 md:flex-row md:flex-wrap md:justify-start md:gap-x-16 md:gap-y-12 " >
4441 { tier . items . map ( ( sponsor ) => (
4542 < a
4643 key = { sponsor . name }
4744 href = { sponsor . link || '#' }
4845 target = "_blank"
4946 rel = "noopener noreferrer"
50- className = "group relative flex items-center justify-center rounded-lg bg-white p-6 transition-all duration-300 hover:scale-105"
47+ className = "group inline-flex w-full max-w-[420px] flex-col items-center justify-center rounded-lg bg-white p-6 transition-all duration-300 hover:scale-105 md:w-auto "
5148 >
5249 { sponsor . logo && (
53- < img
50+ < Image
5451 src = { sponsor . logo }
5552 alt = { sponsor . name }
56- className = "grayscale transition-all duration-300 group-hover:grayscale-0"
53+ width = { 400 }
54+ height = { 250 }
55+ className = "block h-auto w-auto max-w-full grayscale transition-all duration-300 group-hover:grayscale-0"
5756 />
5857 ) }
5958 </ a >
@@ -63,14 +62,9 @@ export function SponsorsTiers({ tiers, ctaLabel, ctaLink }: SponsorsTiersProps)
6362 ) ) }
6463
6564 < div className = "pt-2" >
66- < a
67- href = { ctaLink }
68- target = "_blank"
69- rel = "noopener noreferrer"
70- className = "inline-flex items-center border border-white/25 px-5 py-3 font-mono-tech text-xs uppercase tracking-[0.2em] text-white transition-colors hover:border-google-blue hover:text-google-blue"
71- >
65+ < div className = "inline-flex items-center border border-white/25 px-5 py-3 font-mono-tech text-xs uppercase tracking-[0.2em] text-white transition-colors hover:border-google-blue hover:text-google-blue" >
7266 { ctaLabel }
73- </ a >
67+ </ div >
7468 </ div >
7569 </ div >
7670 ) ;
0 commit comments