Skip to content

Commit bd0930d

Browse files
committed
chore: add logo.svg
1 parent a36e440 commit bd0930d

5 files changed

Lines changed: 77 additions & 30 deletions

File tree

app/components/AppHeader.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ onKeyStroke(',', e => {
4646
to="/"
4747
:aria-label="$t('header.home')"
4848
dir="ltr"
49-
class="inline-flex items-center flex-gap1 header-logo font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring rounded"
49+
class="inline-flex items-center gap-2 header-logo font-mono text-lg font-medium text-fg hover:text-fg transition-colors duration-200 focus-ring rounded"
5050
>
51-
<img :alt="$t('alt_logo')" src="/favicon.svg" width="24" height="24" />
51+
<img alt="npmx" src="/logo.svg" class="w-8 h-8 rounded-lg" />
5252
<span>npmx</span>
53-
<!-- <span class="text-accent"><span class="-tracking-0.2em">.</span>/</span>npmx-->
5453
</NuxtLink>
5554
</div>
5655
<!-- Spacer when logo is hidden -->

app/pages/index.vue

Lines changed: 36 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,36 +37,45 @@ defineOgImageComponent('Default')
3737
<!-- Animated title -->
3838
<h1
3939
dir="ltr"
40-
class="grid grid-cols-[auto_auto] items-center header-logo flex-gap1 font-mono text-5xl sm:text-7xl md:text-8xl font-medium tracking-tight mb-4 motion-safe:animate-fade-in motion-safe:animate-fill-both"
40+
class="flex items-center justify-center gap-2 header-logo font-mono text-5xl sm:text-7xl md:text-8xl font-medium tracking-tight mb-4 motion-safe:animate-fade-in motion-safe:animate-fill-both"
4141
>
42-
<img :alt="$t('alt_logo')" src="/favicon.svg" width="96" height="96" class="mt-6" />
43-
<span class="block">
44-
<span>npmx</span>
45-
<span class="text-xs font-mono flex items-center justify-end flex-gap1">
46-
<NuxtLink
47-
v-if="buildInfo.env === 'release'"
48-
external
49-
:href="`1https://github.com/npmx-dev/npmx.dev/tag/v${buildInfo.version}`"
50-
target="_blank"
51-
>
52-
v{{ buildInfo.version }}
53-
</NuxtLink>
54-
<span v-else>{{ buildInfo.env }}</span>
55-
<template v-if="buildInfo.commit && buildInfo.branch !== 'release'">
56-
&middot;
57-
<NuxtLink
58-
external
59-
:href="`https://github.com/npmx-dev/npmx.dev/commit/${buildInfo.commit}`"
60-
target="_blank"
61-
class="text-balance"
62-
>
63-
{{ buildInfo.shortCommit }}
64-
</NuxtLink>
65-
</template>
66-
</span>
67-
</span>
42+
<img
43+
:alt="$t('alt_logo')"
44+
src="/logo.svg"
45+
class="w-12 h-12 sm:w-20 sm:h-20 md:w-24 md:h-24 rounded-2xl sm:rounded-3xl"
46+
/>
47+
<span class="pb-4">npmx</span>
6848
</h1>
6949

50+
<!-- Build info badge (moved below title) -->
51+
<div
52+
class="mb-8 font-mono text-xs text-fg-muted flex items-center justify-center gap-2 motion-safe:animate-fade-in motion-safe:animate-fill-both"
53+
style="animation-delay: 0.05s"
54+
>
55+
<NuxtLink
56+
v-if="buildInfo.env === 'release'"
57+
external
58+
:href="`https://github.com/npmx-dev/npmx.dev/tag/v${buildInfo.version}`"
59+
target="_blank"
60+
class="hover:text-fg transition-colors"
61+
>
62+
v{{ buildInfo.version }}
63+
</NuxtLink>
64+
<span v-else class="uppercase tracking-wider">{{ buildInfo.env }}</span>
65+
66+
<template v-if="buildInfo.commit && buildInfo.branch !== 'release'">
67+
<span>&middot;</span>
68+
<NuxtLink
69+
external
70+
:href="`https://github.com/npmx-dev/npmx.dev/commit/${buildInfo.commit}`"
71+
target="_blank"
72+
class="hover:text-fg transition-colors"
73+
>
74+
{{ buildInfo.shortCommit }}
75+
</NuxtLink>
76+
</template>
77+
</div>
78+
7079
<p
7180
class="text-fg-muted text-lg sm:text-xl max-w-md mb-12 motion-safe:animate-slide-up motion-safe:animate-fill-both"
7281
style="animation-delay: 0.1s"

public-dev/logo.svg

Lines changed: 13 additions & 0 deletions
Loading

public-staging/logo.svg

Lines changed: 13 additions & 0 deletions
Loading

public/logo.svg

Lines changed: 13 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)