Skip to content

Commit 7a1d5a8

Browse files
committed
feat: update env string ui
1 parent 517e169 commit 7a1d5a8

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

app/components/AppHeader.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,16 @@ onKeyStroke(
213213
:to="{ name: 'index' }"
214214
:aria-label="$t('header.home')"
215215
dir="ltr"
216-
class="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"
216+
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"
217217
>
218-
<AppLogo class="w-8 h-8 rounded-lg" />
219-
<span>npmx</span>
220-
<sup class="text-sm ms--1.5 italic text-fg-muted">
221-
<!-- TODO: improve styling and show 'alpha' until March 3 annoucement -->
222-
{{ env === 'release' ? '' : env }}
223-
</sup>
218+
<AppLogo class="w-7 h-7 rounded-lg" />
219+
<span class="pb-0.5">npmx</span>
220+
<span
221+
aria-hidden="true"
222+
class="scale-35 transform-origin-br font-mono tracking-wide text-accent absolute bottom-0.5 -force-right-1"
223+
>
224+
{{ env === 'release' ? 'alpha' : env }}
225+
</span>
224226
</NuxtLink>
225227
</div>
226228
<!-- Spacer when logo is hidden on desktop -->

app/pages/index.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ defineOgImageComponent('Default', {
3434
>
3535
<h1
3636
dir="ltr"
37-
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-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-2 motion-safe:animate-fade-in motion-safe:animate-fill-both"
3838
>
3939
<AppLogo
4040
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"
4141
/>
4242
<span class="pb-4">npmx</span>
43-
<sup class="text-3xl italic text-fg-muted">
44-
<!-- TODO: improve styling and show 'alpha' until March 3 annoucement -->
45-
{{ env === 'release' ? '' : env }}
46-
</sup>
43+
<span
44+
aria-hidden="true"
45+
class="scale-15 transform-origin-br font-mono tracking-widest text-accent absolute bottom-3 -force-right-1.5"
46+
>
47+
{{ env === 'release' ? 'alpha' : env }}
48+
</span>
4749
</h1>
4850

4951
<p

0 commit comments

Comments
 (0)