File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ import LogoVltLight from './vlt-light.svg'
1111//
1212// If there are no original assets and the logo is not universal, you can add only the dark theme variant
1313// and specify 'auto' for the light one - this will grayscale the logo and invert it in light mode.
14+ // The normalisingIndent is the Y-axis space to visually stabilize favicon-only logos with logotypes that contain long name.
1415export const SPONSORS = [
1516 {
1617 name : 'Vercel' ,
1718 logo : {
1819 dark : LogoVercel ,
1920 light : LogoVercelLight ,
2021 } ,
22+ normalisingIndent : '0.875rem' ,
2123 url : 'https://vercel.com/' ,
2224 } ,
2325 {
@@ -26,6 +28,7 @@ export const SPONSORS = [
2628 dark : LogoVoidZero ,
2729 light : LogoVoidZeroLight ,
2830 } ,
31+ normalisingIndent : '0.875rem' ,
2932 url : 'https://voidzero.dev/' ,
3033 } ,
3134 {
@@ -34,6 +37,7 @@ export const SPONSORS = [
3437 dark : LogoVlt ,
3538 light : LogoVltLight ,
3639 } ,
40+ normalisingIndent : '0.25rem' ,
3741 url : 'https://vlt.sh/' ,
3842 } ,
3943]
Original file line number Diff line number Diff line change @@ -11,30 +11,30 @@ const props = defineProps<{
1111 </script >
1212<template >
1313 <div v-if =" typeof src === 'string'" >
14- <img :src =" src" loading =" lazy" height =" 36" class =" w-auto block h-9 " :alt =" alt" />
14+ <img :src =" src" loading =" lazy" height =" 36" class =" w-auto block h-full " :alt =" alt" />
1515 </div >
16- <div v-else-if =" src.light === 'auto'" >
16+ <div v-else-if =" src.light === 'auto'" class = " h-full " >
1717 <img
1818 :src =" src.dark"
1919 loading =" lazy"
2020 height =" 36"
21- class =" w-auto block light:invert light:grayscale h-9 "
21+ class =" w-auto block light:invert light:grayscale h-full "
2222 :alt =" alt"
2323 />
2424 </div >
25- <div v-else >
25+ <div v-else class = " h-full " >
2626 <img
2727 :src =" src.dark"
2828 loading =" lazy"
2929 height =" 36"
30- class =" w-auto block light:hidden h-9 "
30+ class =" w-auto block light:hidden h-full "
3131 :alt =" alt"
3232 />
3333 <img
3434 :src =" src.light"
3535 loading =" lazy"
3636 height =" 36"
37- class =" w-auto block hidden light:block h-9 "
37+ class =" w-auto block hidden light:block h-full "
3838 :alt =" alt"
3939 />
4040 </div >
Original file line number Diff line number Diff line change 22type BaseItem = {
33 name: string
44 url: string
5+ normalisingIndent? : string
56 logo:
67 | string
78 | {
@@ -28,7 +29,8 @@ const props = defineProps<{
2829 :href =" item.url"
2930 target =" _blank"
3031 rel =" noopener noreferrer"
31- class =" flex items-center justify-center h-full min-w-11 rounded-md hover:bg-fg/10 transition-colors p-1"
32+ class =" relative flex items-center justify-center h-14 min-w-14 rounded-md hover:bg-fg/10 transition-colors p-1"
33+ :style =" { paddingBlock: item.normalisingIndent }"
3234 :aria-label =" item.name"
3335 >
3436 <AboutLogoImg :src =" item.logo" :alt =" item.name" />
@@ -53,7 +55,8 @@ const props = defineProps<{
5355 :href =" groupItem.url"
5456 target =" _blank"
5557 rel =" noopener noreferrer"
56- class =" flex items-center justify-center h-full min-w-10 rounded-md hover:bg-fg/10 transition-colors p-0.5"
58+ class =" relative flex items-center justify-center h-10 min-w-10 rounded-md hover:bg-fg/10 transition-colors p-0.5"
59+ :style =" { paddingBlock: groupItem.normalisingIndent }"
5760 :aria-label =" groupItem.name"
5861 >
5962 <AboutLogoImg :src =" groupItem.logo" :alt =" groupItem.name" />
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ const roleLabels = computed(
163163 </h2 >
164164 <AboutLogoList
165165 :list =" SPONSORS"
166- class =" flex-col gap-8 items-start md:flex-row md:items-center md:gap-4"
166+ class =" flex-col gap-6 items-start md:flex-row md:items-center md:gap-4"
167167 />
168168 </div >
169169
@@ -306,17 +306,3 @@ const roleLabels = computed(
306306 </article >
307307 </main >
308308</template >
309-
310- <style scoped>
311- .sponsors-logos :deep(a ) {
312- width : 8rem ;
313- height : 2.5rem ;
314- }
315-
316- .sponsors-logos :deep(img ) {
317- width : auto ;
318- height : auto ;
319- max-width : 100% ;
320- max-height : 100% ;
321- }
322- </style >
You can’t perform that action at this time.
0 commit comments