@@ -53,11 +53,13 @@ const SPONSOR = [
5353 name: ' Vercel' ,
5454 logo: LogoVercel ,
5555 url: ' https://vercel.com/' ,
56+ colorScheme: ' dark' ,
5657 },
5758 {
5859 name: ' Void Zero' ,
5960 logo: LogoVoidZero ,
6061 url: ' https://voidzero.dev/' ,
62+ colorScheme: ' dark' ,
6163 },
6264]
6365
@@ -66,6 +68,7 @@ const OSS_PARTNERS = [
6668 name: ' Open Source Pledge' ,
6769 logo: LogoOpenSourcePledge ,
6870 url: ' https://opensourcepledge.com/' ,
71+ colorScheme: ' dark' ,
6972 },
7073 {
7174 name: ' Void Zero' ,
@@ -74,38 +77,45 @@ const OSS_PARTNERS = [
7477 name: ' Vite' ,
7578 logo: LogoVite ,
7679 url: ' https://vite.dev/' ,
80+ colorScheme: ' light-dark' ,
7781 },
7882 {
7983 name: ' OxC' ,
8084 logo: LogoOxC ,
8185 url: ' https://oxc.rs/' ,
86+ colorScheme: ' light-dark' ,
8287 },
8388 {
8489 name: ' Vitest' ,
8590 logo: LogoVitest ,
8691 url: ' https://vitest.dev/' ,
92+ colorScheme: ' light-dark' ,
8793 },
8894 {
8995 name: ' Rolldown' ,
9096 logo: LogoRolldown ,
9197 url: ' https://rolldown.rs/' ,
98+ colorScheme: ' light-dark' ,
9299 },
93100 ],
94101 },
95102 {
96103 name: ' Nuxt' ,
97104 logo: LogoNuxt ,
98105 url: ' https://nuxt.com/' ,
106+ colorScheme: ' light-dark' ,
99107 },
100108 {
101109 name: ' Storybook' ,
102110 logo: LogoStorybook ,
103111 url: ' https://storybook.js.org/' ,
112+ colorScheme: ' light-dark' ,
104113 },
105114 {
106115 name: ' Vue' ,
107116 logo: LogoVue ,
108117 url: ' https://vuejs.org/' ,
118+ colorScheme: ' light-dark' ,
109119 },
110120]
111121
@@ -230,13 +240,20 @@ const roleLabels = computed(
230240 <h2 class =" text-lg text-fg uppercase tracking-wider mb-4" >
231241 {{ $t('about.sponsors.title') }}
232242 </h2 >
233- <ul class =" flex flex-wrap gap-2 md:gap-x-6 md:gap-y-4 list-none p-0 -mx-2 " >
243+ <ul class =" flex flex-wrap gap-2 md:gap-x-6 md:gap-y-4 list-none" >
234244 <li v-for =" sponsor in SPONSOR" :key =" sponsor.name" >
235245 <a
236246 :href =" sponsor.url"
237247 target =" _blank"
238248 rel =" noopener noreferrer"
239- class =" flex items-center justify-center h-full min-w-13 rounded-md hover:bg-fg/10 transition-colors p-2"
249+ class =" flex items-center justify-center h-full min-w-13 rounded-md hover:opacity-80 transition-opacity p-2"
250+ :class ="
251+ sponsor.colorScheme === 'dark'
252+ ? 'light:bg-fg-muted'
253+ : sponsor.colorScheme === 'light'
254+ ? 'dark:bg-fg-muted'
255+ : undefined
256+ "
240257 >
241258 <img
242259 :src =" sponsor.logo"
@@ -261,7 +278,14 @@ const roleLabels = computed(
261278 :href =" partner.url"
262279 target =" _blank"
263280 rel =" noopener noreferrer"
264- class =" flex items-center justify-center h-full min-w-10 rounded-md hover:bg-fg/10 transition-colors p-0.5"
281+ class =" flex items-center justify-center h-full min-w-10 rounded-md hover:opacity-80 transition-opacity p-0.5"
282+ :class ="
283+ partner.colorScheme === 'dark'
284+ ? 'light:bg-fg-muted'
285+ : partner.colorScheme === 'light'
286+ ? 'dark:bg-fg-muted'
287+ : undefined
288+ "
265289 >
266290 <img
267291 :src =" partner.logo"
@@ -281,7 +305,7 @@ const roleLabels = computed(
281305 >
282306 <path
283307 d =" M5.62151 0C-1.8519 10.6931 -1.89574 27.2683 5.62151 37.9997H10.6709C3.15538 27.2683 3.19922 10.6931 10.6709 0H5.62151Z"
284- fill =" white "
308+ fill =" currentColor "
285309 />
286310 </svg >
287311 <ul class =" flex items-center justify-center h-full gap-0.5 list-none" >
@@ -290,7 +314,14 @@ const roleLabels = computed(
290314 :href =" item.url"
291315 target =" _blank"
292316 rel =" noopener noreferrer"
293- class =" flex items-center justify-center h-full min-w-10 rounded-md hover:bg-fg/10 transition-colors p-0.5"
317+ class =" flex items-center justify-center h-full min-w-10 rounded-md hover:opacity-80 transition-opacity p-0.5"
318+ :class ="
319+ item.colorScheme === 'dark'
320+ ? 'light:bg-fg-muted'
321+ : item.colorScheme === 'light'
322+ ? 'dark:bg-fg-muted'
323+ : undefined
324+ "
294325 >
295326 <img
296327 :src =" item.logo"
@@ -311,7 +342,7 @@ const roleLabels = computed(
311342 >
312343 <path
313344 d =" M5.04935 0H0C7.4734 10.6931 7.51725 27.2683 0 37.9997H5.04935C12.5648 27.2683 12.521 10.6931 5.04935 0Z"
314- fill =" white "
345+ fill =" currentColor "
315346 />
316347 </svg >
317348 </div >
0 commit comments