Skip to content

Commit eb87280

Browse files
committed
fix: adjust logo sizing on about page
1 parent 0d952fa commit eb87280

3 files changed

Lines changed: 15 additions & 13 deletions

File tree

app/assets/logos/oss-partners/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,13 @@ export const OSS_PARTNERS = [
7777
name: 'Nuxt',
7878
logo: LogoNuxt,
7979
url: 'https://nuxt.com/',
80+
maxHeight: '3.2rem',
8081
},
8182
{
8283
name: 'Vue',
8384
logo: LogoVue,
8485
url: 'https://vuejs.org/',
86+
maxHeight: '3.5rem',
8587
},
8688
{
8789
name: 'Algolia',
@@ -136,6 +138,7 @@ export const OSS_PARTNERS = [
136138
name: 'Vue Data UI',
137139
logo: LogoVueDataUi,
138140
url: 'https://vue-data-ui.graphieros.com/',
141+
maxHeight: '3.5rem',
139142
},
140143
{
141144
name: 'UnJS',

app/assets/logos/sponsors/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import LogoBlueskyLight from './bluesky-light.svg'
1515
//
1616
// If there are no original assets and the logo is not universal, you can add only the dark theme variant
1717
// and specify 'auto' for the light one - this will grayscale the logo and invert it in light mode.
18-
// The normalisingIndent is the Y-axis space to visually stabilize favicon-only logos with logotypes that contain long name.
18+
// The maxHeight is used to make some logos more visually consistent with the others.
1919
export const SPONSORS = [
2020
{
2121
name: 'Vercel',
2222
logo: {
2323
dark: LogoVercel,
2424
light: LogoVercelLight,
2525
},
26-
normalisingIndent: '0.875rem',
26+
maxHeight: '2.8rem',
2727
url: 'https://vercel.com/',
2828
},
2929
{
@@ -32,7 +32,7 @@ export const SPONSORS = [
3232
dark: LogoVoidZero,
3333
light: LogoVoidZeroLight,
3434
},
35-
normalisingIndent: '0.875rem',
35+
maxHeight: '2.8rem',
3636
url: 'https://voidzero.dev/',
3737
},
3838
{
@@ -41,7 +41,7 @@ export const SPONSORS = [
4141
dark: LogoVlt,
4242
light: LogoVltLight,
4343
},
44-
normalisingIndent: '0.875rem',
44+
maxHeight: '2.8rem',
4545
url: 'https://vlt.sh/',
4646
},
4747
{
@@ -50,7 +50,6 @@ export const SPONSORS = [
5050
dark: LogoNetlify,
5151
light: LogoNetlifyLight,
5252
},
53-
normalisingIndent: '0.125rem',
5453
url: 'https://netlify.com/',
5554
},
5655
{
@@ -59,7 +58,7 @@ export const SPONSORS = [
5958
dark: LogoBluesky,
6059
light: LogoBlueskyLight,
6160
},
62-
normalisingIndent: '0.625rem',
61+
maxHeight: '3.2rem',
6362
url: 'https://bsky.app/',
6463
},
6564
]

app/components/About/LogoList.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
type BaseItem = {
33
name: string
44
url: string
5-
normalisingIndent?: string
5+
maxHeight?: string
66
logo:
77
| string
88
| {
@@ -22,15 +22,15 @@ const props = defineProps<{
2222
</script>
2323

2424
<template>
25-
<ul class="flex flex-wrap gap-4 md:gap-x-6 md:gap-y-4 list-none">
26-
<li v-for="item in list" :key="item.name">
25+
<ul class="flex flex-wrap gap-2 md:gap-x-4 md:gap-y-3 -mx-2 list-none">
26+
<li v-for="item in list" :key="item.name" class="flex items-center justify-center">
2727
<a
2828
v-if="'logo' in item"
2929
:href="item.url"
3030
target="_blank"
3131
rel="noopener noreferrer"
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 }"
32+
class="relative flex items-center justify-center h-16 min-w-16 rounded-md hover:bg-fg/10 transition-colors p-2"
33+
:style="{ maxHeight: item.maxHeight }"
3434
:aria-label="item.name"
3535
>
3636
<AboutLogoImg :src="item.logo" :alt="item.name" />
@@ -55,8 +55,8 @@ const props = defineProps<{
5555
:href="groupItem.url"
5656
target="_blank"
5757
rel="noopener noreferrer"
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 }"
58+
class="relative flex items-center justify-center h-12 min-w-12 rounded-md hover:bg-fg/10 transition-colors p-1"
59+
:style="{ maxHeight: groupItem.maxHeight }"
6060
:aria-label="groupItem.name"
6161
>
6262
<AboutLogoImg :src="groupItem.logo" :alt="groupItem.name" />

0 commit comments

Comments
 (0)