@@ -12,6 +12,8 @@ interface Sponsor {
1212
1313const sponsorDiamond : Sponsor [ ] = [ ]
1414
15+ const sponsorPlatinum : Sponsor [ ] = [ ]
16+
1517const sponsorGold : Sponsor [ ] = [
1618 { icon : Apollo , name : "Apollo" , link : "https://www.apollographql.com" } ,
1719]
@@ -34,6 +36,10 @@ const sponsorTiers: Tier[] = [
3436 name : "Diamond" ,
3537 items : sponsorDiamond ,
3638 } ,
39+ {
40+ name : "Platinum" ,
41+ items : sponsorPlatinum ,
42+ } ,
3743 {
3844 name : "Gold" ,
3945 items : sponsorGold ,
@@ -51,23 +57,31 @@ export function Sponsors({ heading }: SponsorsProps) {
5157
5258 < div className = "mt-10 md:mt-16" >
5359 { sponsorTiers . map (
54- tier => tier . items . length > 0 && < Tier key = { tier . name } tier = { tier } /> ,
60+ tier =>
61+ tier . items . length > 0 && (
62+ < Tier
63+ key = { tier . name }
64+ tier = { tier }
65+ logoHeight = { 220 - sponsorTiers . indexOf ( tier ) * 24 }
66+ />
67+ ) ,
5568 ) }
5669 </ div >
5770 </ section >
5871 )
5972}
6073
61- function Tier ( { tier } : { tier : Tier } ) {
74+ function Tier ( { tier, logoHeight } : { tier : Tier ; logoHeight : number } ) {
6275 return (
6376 < div className = "flex gap-x-12 gap-y-4 border-t border-neu-200 py-4 dark:border-neu-50 max-md:flex-col" >
64- < h3 className = "flex w-[80px] items-center gap-1 self-start whitespace-nowrap font-mono text-sm/none font-normal uppercase text-primary" >
77+ < h3 className = "flex w-[80px] shrink-0 items-center gap-1 self-start whitespace-nowrap font-mono text-sm/none font-normal uppercase text-primary" >
6578 < ChevronRight className = "shrink-0 translate-y-[-0.5px]" />
6679 { tier . name }
6780 </ h3 >
6881 < div
6982 className = { clsx (
70- "grid justify-center gap-x-8 gap-y-4 sm:grid-cols-2 xl:grid-cols-3" ,
83+ "grid justify-center gap-x-8 gap-y-4" ,
84+ tier . items . length > 2 && "sm:grid-cols-2 xl:grid-cols-3" ,
7185 ) }
7286 >
7387 { tier . items . map ( ( { link, icon : Icon , name } , i ) => (
@@ -77,9 +91,14 @@ function Tier({ tier }: { tier: Tier }) {
7791 target = "_blank"
7892 rel = "noreferrer"
7993 title = { name }
80- className = "group flex h-24 w-72 items-center justify-center opacity-75 [--fill:hsl(var(--color-neu-700))] hover:bg-neu-500/10 hover:[--fill:hsl(var(--color-neu-800))] dark:opacity-90"
94+ className = "group flex min- h-24 items-center justify-center opacity-75 [--fill:hsl(var(--color-neu-700))] hover:bg-neu-500/10 hover:[--fill:hsl(var(--color-neu-800))] dark:opacity-90"
8195 >
82- < Icon className = "h-16 w-auto max-w-[80%] shrink-0 fill-[--fill] [&_path]:fill-[--fill]" />
96+ < Icon
97+ className = "aspect-[3] w-auto max-w-[80%] shrink-0 fill-[--fill] [&_path]:fill-[--fill]"
98+ style = { {
99+ height : logoHeight ,
100+ } }
101+ />
83102 </ a >
84103 ) ) }
85104 </ div >
0 commit comments