Skip to content

Commit 0772fab

Browse files
danielroealexdln
andauthored
feat: add vlt as sponsor 🚀 (#1687)
Co-authored-by: Vordgi <sasha2822222@gmail.com>
1 parent 790caf9 commit 0772fab

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
lines changed

‎app/assets/logos/sponsors/index.ts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,24 @@ import LogoVercel from './vercel.svg'
22
import LogoVercelLight from './vercel-light.svg'
33
import LogoVoidZero from './void-zero.svg'
44
import LogoVoidZeroLight from './void-zero-light.svg'
5+
import LogoVlt from './vlt.svg'
6+
import LogoVltLight from './vlt-light.svg'
57

68
// The list is used on the about page. To add, simply upload the logos nearby and add an entry here. Prefer SVGs.
79
// For logo src, specify a string or object with the light and dark theme variants.
810
// Prefer original assets from partner sites to keep their brand identity.
911
//
1012
// If there are no original assets and the logo is not universal, you can add only the dark theme variant
1113
// 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.
1215
export const SPONSORS = [
1316
{
1417
name: 'Vercel',
1518
logo: {
1619
dark: LogoVercel,
1720
light: LogoVercelLight,
1821
},
22+
normalisingIndent: '0.875rem',
1923
url: 'https://vercel.com/',
2024
},
2125
{
@@ -24,6 +28,16 @@ export const SPONSORS = [
2428
dark: LogoVoidZero,
2529
light: LogoVoidZeroLight,
2630
},
31+
normalisingIndent: '0.875rem',
2732
url: 'https://voidzero.dev/',
2833
},
34+
{
35+
name: 'vlt',
36+
logo: {
37+
dark: LogoVlt,
38+
light: LogoVltLight,
39+
},
40+
normalisingIndent: '0.25rem',
41+
url: 'https://vlt.sh/',
42+
},
2943
]
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

‎app/components/About/LogoImg.vue‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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>

‎app/components/About/LogoList.vue‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
type BaseItem = {
33
name: string
44
url: string
5+
normalisingIndent?: string
56
logo:
67
| string
78
| {
@@ -21,14 +22,15 @@ const props = defineProps<{
2122
</script>
2223

2324
<template>
24-
<ul class="flex items-center flex-wrap gap-4 md:gap-x-6 md:gap-y-4 list-none">
25+
<ul class="flex flex-wrap gap-4 md:gap-x-6 md:gap-y-4 list-none">
2526
<li v-for="item in list" :key="item.name">
2627
<a
2728
v-if="'logo' in item"
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" />

‎app/pages/about.vue‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,21 @@ const roleLabels = computed(
157157
</ul>
158158
</div>
159159

160-
<div>
160+
<div class="sponsors-logos">
161161
<h2 class="text-lg text-fg uppercase tracking-wider mb-4">
162162
{{ $t('about.sponsors.title') }}
163163
</h2>
164-
<AboutLogoList :list="SPONSORS" />
164+
<AboutLogoList
165+
:list="SPONSORS"
166+
class="flex-col gap-6 items-start md:flex-row md:items-center md:gap-4"
167+
/>
165168
</div>
166169

167170
<div>
168171
<h2 class="text-lg text-fg uppercase tracking-wider mb-4">
169172
{{ $t('about.oss_partners.title') }}
170173
</h2>
171-
<AboutLogoList :list="OSS_PARTNERS" />
174+
<AboutLogoList :list="OSS_PARTNERS" class="items-center" />
172175
</div>
173176

174177
<div>

0 commit comments

Comments
 (0)