Skip to content

Commit 1e0788f

Browse files
committed
fix: use correct light-mode colors for logo mark and add PNG spinners
- Add logo-mark-light.svg with dark accent (#006fc2) and black square - Use srcLight variant instead of filter: invert(1) for light logo mark - Add loading spinners to PNG download buttons in logo grid
1 parent 7d1025a commit 1e0788f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

app/pages/brand.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const logos = [
2929
{
3030
name: () => $t('brand.logos.mark'),
3131
src: '/logo-mark.svg',
32+
srcLight: '/logo-mark-light.svg',
3233
altDark: () => $t('brand.logos.mark_alt'),
3334
altLight: () => $t('brand.logos.mark_light_alt'),
3435
width: 153,
@@ -125,7 +126,6 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
125126
</a>
126127
<ButtonBase
127128
size="sm"
128-
classicon="i-lucide:download"
129129
:aria-label="
130130
$t('brand.logos.download_png_aria', {
131131
name: `${logo.name()} (${$t('brand.logos.on_dark')})`,
@@ -134,6 +134,11 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
134134
:disabled="pngLoading.has(logo.src)"
135135
@click="handlePngDownload(logo)"
136136
>
137+
<span
138+
class="size-[1em]"
139+
aria-hidden="true"
140+
:class="pngLoading.has(logo.src) ? 'i-lucide:loader-circle animate-spin' : 'i-lucide:download'"
141+
/>
137142
{{ $t('brand.logos.download_png') }}
138143
</ButtonBase>
139144
</div>
@@ -153,11 +158,10 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
153158
/>
154159
<img
155160
v-else
156-
:src="logo.src"
161+
:src="logo.srcLight ?? logo.src"
157162
:alt="logo.altLight()"
158163
class="max-h-16 w-auto max-w-full"
159164
:class="{ 'max-h-20': logo.span }"
160-
:style="logo.src === '/logo-mark.svg' ? 'filter: invert(1)' : ''"
161165
/>
162166
</div>
163167
<div class="flex items-center justify-between mt-2">
@@ -180,7 +184,6 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
180184
</a>
181185
<ButtonBase
182186
size="sm"
183-
classicon="i-lucide:download"
184187
:aria-label="
185188
$t('brand.logos.download_png_aria', {
186189
name: `${logo.name()} (${$t('brand.logos.on_light')})`,
@@ -189,6 +192,11 @@ async function handlePngDownload(logo: (typeof logos)[number]) {
189192
:disabled="pngLoading.has(logo.src)"
190193
@click="handlePngDownload(logo)"
191194
>
195+
<span
196+
class="size-[1em]"
197+
aria-hidden="true"
198+
:class="pngLoading.has(logo.src) ? 'i-lucide:loader-circle animate-spin' : 'i-lucide:download'"
199+
/>
192200
{{ $t('brand.logos.download_png') }}
193201
</ButtonBase>
194202
</div>

public/logo-mark-light.svg

Lines changed: 2 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)