Skip to content

Commit 88a0736

Browse files
committed
fix(ui): improve logo
1 parent 04bd490 commit 88a0736

File tree

16 files changed

+130
-69
lines changed

16 files changed

+130
-69
lines changed

app/components/AppHeader.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,9 @@ onKeyStroke(
205205
v-if="!isSearchExpanded && !isOnHomePage"
206206
to="/"
207207
:aria-label="$t('header.home')"
208-
class="sm:hidden flex-shrink-0 font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring"
208+
class="sm:hidden flex-shrink-0 font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring me-4"
209209
>
210-
<AppLogo class="w-8 h-8 rounded-lg" />
210+
<AppMark class="w-6 h-auto" />
211211
</NuxtLink>
212212

213213
<!-- Desktop: Logo (navigates home) -->
@@ -216,13 +216,12 @@ onKeyStroke(
216216
:to="{ name: 'index' }"
217217
:aria-label="$t('header.home')"
218218
dir="ltr"
219-
class="relative inline-flex items-center gap-1 header-logo font-mono text-lg font-medium text-fg hover:text-fg/90 transition-colors duration-200 rounded"
219+
class="relative inline-flex items-center gap-1 header-logo font-mono text-lg font-medium text-fg hover:text-fg/90 transition-colors duration-200 me-4"
220220
>
221-
<AppLogo class="w-7 h-7 rounded-lg" />
222-
<span class="pb-0.5">npmx</span>
221+
<AppLogo class="w-20 h-auto" />
223222
<span
224223
aria-hidden="true"
225-
class="scale-35 transform-origin-br font-mono tracking-wide text-accent absolute bottom-0.5 -inset-ie-1"
224+
class="scale-35 transform-origin-br font-mono tracking-wide text-accent absolute -bottom-2 -inset-ie-1"
226225
>
227226
{{ env === 'release' ? 'alpha' : env }}
228227
</span>

app/components/AppLogo.vue

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,37 @@ defineProps<{
88
<svg
99
aria-hidden="true"
1010
xmlns="http://www.w3.org/2000/svg"
11-
viewBox="0 0 512 512"
12-
width="96"
13-
height="96"
11+
viewBox="0 0 602 153"
12+
width="602"
13+
height="153"
1414
:class="class"
1515
>
1616
<title>{{ $t('alt_logo') }}</title>
17-
<rect fill="var(--bg)" width="512" height="512" rx="64" />
18-
<rect fill="currentColor" x="110" y="310" width="60" height="60" />
19-
<text
17+
<path d="m0.93476 97.205h24.081v23.693h-24.081z" fill="currentColor" stroke-width=".26458" />
18+
<path
19+
d="m176.66 17.97h14.954l0.3884 18.449q4.0783-10.293 12.817-15.536 8.9334-5.2435 20.003-5.2435 17.09 0 26.412 11.07 9.3218 10.875 9.3218 27.965v66.223h-16.313v-61.562q0-29.325-22.916-29.325-12.429 0-20.391 7.7681-7.9623 7.7681-7.9623 21.557v61.562h-16.313z"
20+
fill="currentColor"
21+
stroke-width=".26458"
22+
/>
23+
<path
24+
d="m386.95 17.97h14.954l0.38842 15.148q2.7188-8.3507 7.9624-12.817 5.2435-4.6609 12.429-4.6609 15.925 0 19.42 20.197 2.5246-9.516 8.3507-14.759 5.8261-5.4377 13.788-5.4377 12.429 0 18.061 8.7392 5.6319 8.545 5.6319 28.159v68.36h-16.313v-66.029q0-13.4-2.9131-19.032-2.913-5.8261-9.1276-5.8261-6.4087 0-10.293 6.4087-3.6899 6.2145-3.6899 18.838v65.641h-16.313v-66.029q0-13.206-2.913-19.032-2.7188-5.8261-9.1276-5.8261t-10.293 6.4087q-3.6899 6.2145-3.6899 18.838v65.641h-16.313z"
25+
fill="currentColor"
26+
stroke-width=".26458"
27+
/>
28+
<path
29+
d="m279.21 17.97h15.148l0.19415 16.507q4.6609-9.1276 12.817-13.983 8.3508-4.8551 18.838-4.8551 14.759 0 24.664 7.3797 9.9044 7.1855 14.759 19.42t4.8551 26.994q0 14.759-4.8551 26.994t-14.759 19.615q-9.9044 7.1855-24.664 7.1855-10.099 0-18.449-4.2725-8.1565-4.2725-12.235-11.652v42.725h-16.313zm45.444 89.722q13.4 0 20.974-10.099 7.7682-10.099 7.7682-28.159 0-18.061-7.7682-28.159-7.5739-10.099-20.974-10.099-13.594 0-21.362 9.9044-7.7682 9.7102-7.7682 28.354 0 18.644 7.5739 28.548 7.7682 9.7102 21.557 9.7102z"
30+
fill="currentColor"
31+
stroke-width=".26458"
32+
/>
33+
<path
34+
d="m543.04 68.074-35.928-50.104h19.032l26.994 38.841 26.412-38.841h19.42l-35.733 50.493 37.481 52.435h-19.032l-28.548-41.56-28.548 41.56h-19.42z"
35+
fill="currentColor"
36+
stroke-width=".26458"
37+
/>
38+
<path
39+
d="m99.501 1.0149-49.929 141.25h15.537l49.927-141.25z"
2040
fill="var(--accent)"
21-
x="320"
22-
y="370"
23-
font-family="'Geist Mono',ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace"
24-
font-size="420"
25-
font-weight="500"
26-
text-anchor="middle"
27-
style="user-select: none"
28-
>
29-
<tspan>/</tspan>
30-
</text>
41+
stroke-width=".26458"
42+
/>
3143
</svg>
3244
</template>

app/components/AppMark.vue

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script setup lang="ts">
2+
defineProps<{
3+
class?: string
4+
}>()
5+
</script>
6+
7+
<template>
8+
<svg
9+
aria-hidden="true"
10+
xmlns="http://www.w3.org/2000/svg"
11+
viewBox="0 0 153 153"
12+
width="153"
13+
height="153"
14+
:class="class"
15+
>
16+
<title>{{ $t('alt_logo') }}</title>
17+
<path d="m19.449 97.205h24.081v23.693h-24.081z" fill="currentColor" stroke-width=".26458" />
18+
<path
19+
d="m118.02 1.0149-49.929 141.25h15.537l49.927-141.25z"
20+
fill="var(--accent)"
21+
stroke-width=".26458"
22+
/>
23+
</svg>
24+
</template>

app/pages/index.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,12 @@ defineOgImageComponent('Default', {
3434
>
3535
<h1
3636
dir="ltr"
37-
class="relative flex items-center justify-center gap-2 header-logo font-mono text-5xl sm:text-7xl md:text-8xl font-medium tracking-tight mb-2 motion-safe:animate-fade-in motion-safe:animate-fill-both"
37+
class="relative flex items-center justify-center gap-2 header-logo font-mono text-5xl sm:text-7xl md:text-8xl font-medium tracking-tight mb-6 motion-safe:animate-fade-in motion-safe:animate-fill-both"
3838
>
39-
<AppLogo
40-
class="w-12 h-12 -ms-3 sm:w-20 sm:h-20 sm:-ms-5 md:w-24 md:h-24 md:-ms-6 rounded-2xl sm:rounded-3xl"
41-
/>
42-
<span class="pb-4">npmx</span>
39+
<AppLogo class="w-42 h-auto sm:w-58 md:w-70" />
4340
<span
4441
aria-hidden="true"
45-
class="scale-15 transform-origin-br font-mono tracking-widest text-accent absolute bottom-3 -inset-ie-1.5"
42+
class="text-sm sm:text-base md:text-lg transform-origin-br font-mono tracking-widest text-accent absolute -bottom-4 -inset-ie-1.5"
4643
>
4744
{{ env === 'release' ? 'alpha' : env }}
4845
</span>

public-dev/logo-icon.svg

Lines changed: 13 additions & 0 deletions
Loading

public-dev/logo-mark.svg

Lines changed: 2 additions & 0 deletions
Loading

public-dev/logo.svg

Lines changed: 2 additions & 13 deletions
Loading

public-staging/logo-icon.svg

Lines changed: 13 additions & 0 deletions
Loading

public-staging/logo-mark.svg

Lines changed: 2 additions & 0 deletions
Loading

public-staging/logo.svg

Lines changed: 2 additions & 13 deletions
Loading

0 commit comments

Comments
 (0)