@@ -4,7 +4,6 @@ import Netflix from "public/img/conf/Sponsors/Netflix.svg?svgr"
44
55import { clsx } from "clsx"
66import { ChevronRight } from "../../_design-system/pixelarticons/chevron-right"
7- import { ComponentPropsWithoutRef } from "react"
87
98interface Sponsor {
109 icon :
@@ -13,6 +12,7 @@ interface Sponsor {
1312 | React . FC < React . HTMLAttributes < HTMLDivElement > >
1413 name : string
1514 link : string
15+ className ?: string
1616}
1717
1818const sponsorDiamond : Sponsor [ ] = [ ]
@@ -58,19 +58,19 @@ const sponsorSilver: Sponsor[] = [
5858 } ,
5959 {
6060 icon : ( props : React . HTMLAttributes < HTMLDivElement > ) => (
61- < div { ...props } className = { clsx ( props . className , "relative" ) } >
61+ < div { ...props } className = { clsx ( props . className , "relative size-full " ) } >
6262 < img
6363 src = {
6464 new URL ( "/public/img/conf/Sponsors/Meta.svg" , import . meta. url ) . href
6565 }
66- className = "absolute inset-0 dark:hidden"
66+ className = "absolute inset-0 size-full object-cover dark:hidden"
6767 />
6868 < img
6969 src = {
7070 new URL ( "/public/img/conf/Sponsors/Meta-dark.svg" , import . meta. url )
7171 . href
7272 }
73- className = "absolute inset-0 hidden dark:block"
73+ className = "absolute inset-0 hidden size-full object-cover dark:block"
7474 />
7575 </ div >
7676 ) ,
@@ -135,15 +135,18 @@ function Tier({ tier, logoHeight }: { tier: Tier; logoHeight: number }) {
135135 < ChevronRight className = "shrink-0 translate-y-[-0.5px]" />
136136 { tier . name }
137137 </ h3 >
138- < div className = "flex flex-wrap justify-center gap-y-4" >
139- { tier . items . map ( ( { link, icon : Icon , name } , i ) => (
138+ < div className = "flex min-w-[70%] flex-wrap justify-center gap-y-4" >
139+ { tier . items . map ( ( { link, icon : Icon , name, className } , i ) => (
140140 < a
141141 key = { i }
142142 href = { link }
143143 target = "_blank"
144144 rel = "noreferrer"
145145 title = { name }
146- className = "group flex min-h-24 items-center justify-center hover:bg-neu-500/10 dark:opacity-90 dark:hover:opacity-100"
146+ className = { clsx (
147+ "group flex min-h-24 grow basis-1/2 items-center justify-center hover:bg-neu-500/10 dark:opacity-90 dark:hover:opacity-100" ,
148+ className ,
149+ ) }
147150 >
148151 < Icon
149152 className = "aspect-[3] w-auto max-w-[80%] shrink-0"
0 commit comments