Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions app/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ const mobileLinks = computed<NavigationConfigWithGroups>(() => [

const showFullSearch = shallowRef(false)
const showMobileMenu = shallowRef(false)
const { env } = useAppConfig().buildInfo

// On mobile, clicking logo+search button expands search
const route = useRoute()
Expand Down Expand Up @@ -212,10 +213,16 @@ onKeyStroke(
:to="{ name: 'index' }"
:aria-label="$t('header.home')"
dir="ltr"
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"
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"
>
<AppLogo class="w-8 h-8 rounded-lg" />
<span>npmx</span>
<AppLogo class="w-7 h-7 rounded-lg" />
<span class="pb-0.5">npmx</span>
<span
aria-hidden="true"
class="scale-35 transform-origin-br font-mono tracking-wide text-accent absolute bottom-0.5 -inset-ie-1"
>
{{ env === 'release' ? 'alpha' : env }}
</span>
</NuxtLink>
</div>
<!-- Spacer when logo is hidden on desktop -->
Expand Down
10 changes: 9 additions & 1 deletion app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ async function search() {
flushUpdateUrlQuery()
}

const { env } = useAppConfig().buildInfo

useSeoMeta({
title: () => $t('seo.home.title'),
ogTitle: () => $t('seo.home.title'),
Expand All @@ -32,12 +34,18 @@ defineOgImageComponent('Default', {
>
<h1
dir="ltr"
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"
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"
>
<AppLogo
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"
/>
<span class="pb-4">npmx</span>
<span
aria-hidden="true"
class="scale-15 transform-origin-br font-mono tracking-widest text-accent absolute bottom-3 -inset-ie-1.5"
>
{{ env === 'release' ? 'alpha' : env }}
</span>
Comment thread
alexdln marked this conversation as resolved.
</h1>

<p
Expand Down
Loading