@@ -4,7 +4,6 @@ import Netflix from "public/img/conf/Sponsors/Netflix.svg?svgr"
4
4
5
5
import { clsx } from "clsx"
6
6
import { ChevronRight } from "../../_design-system/pixelarticons/chevron-right"
7
- import { ComponentPropsWithoutRef } from "react"
8
7
9
8
interface Sponsor {
10
9
icon :
@@ -13,6 +12,7 @@ interface Sponsor {
13
12
| React . FC < React . HTMLAttributes < HTMLDivElement > >
14
13
name : string
15
14
link : string
15
+ className ?: string
16
16
}
17
17
18
18
const sponsorDiamond : Sponsor [ ] = [ ]
@@ -58,19 +58,19 @@ const sponsorSilver: Sponsor[] = [
58
58
} ,
59
59
{
60
60
icon : ( props : React . HTMLAttributes < HTMLDivElement > ) => (
61
- < div { ...props } className = { clsx ( props . className , "relative" ) } >
61
+ < div { ...props } className = { clsx ( props . className , "relative size-full " ) } >
62
62
< img
63
63
src = {
64
64
new URL ( "/public/img/conf/Sponsors/Meta.svg" , import . meta. url ) . href
65
65
}
66
- className = "absolute inset-0 dark:hidden"
66
+ className = "absolute inset-0 size-full object-cover dark:hidden"
67
67
/>
68
68
< img
69
69
src = {
70
70
new URL ( "/public/img/conf/Sponsors/Meta-dark.svg" , import . meta. url )
71
71
. href
72
72
}
73
- className = "absolute inset-0 hidden dark:block"
73
+ className = "absolute inset-0 hidden size-full object-cover dark:block"
74
74
/>
75
75
</ div >
76
76
) ,
@@ -135,15 +135,18 @@ function Tier({ tier, logoHeight }: { tier: Tier; logoHeight: number }) {
135
135
< ChevronRight className = "shrink-0 translate-y-[-0.5px]" />
136
136
{ tier . name }
137
137
</ 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 ) => (
140
140
< a
141
141
key = { i }
142
142
href = { link }
143
143
target = "_blank"
144
144
rel = "noreferrer"
145
145
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
+ ) }
147
150
>
148
151
< Icon
149
152
className = "aspect-[3] w-auto max-w-[80%] shrink-0"
0 commit comments