Skip to content

Commit bd3f798

Browse files
committed
feat: add kawai logos
1 parent 516808b commit bd3f798

2 files changed

Lines changed: 118 additions & 1 deletion

File tree

app/pages/index.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ defineOgImageComponent('Default', {
2424
title: 'npmx',
2525
description: 'a fast, modern browser for the **npm registry**',
2626
})
27+
28+
const route = useRoute()
29+
const isKawaii = computed(() => route.query.kawai === 'true')
2730
</script>
2831

2932
<template>
@@ -36,8 +39,16 @@ defineOgImageComponent('Default', {
3639
dir="ltr"
3740
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"
3841
>
39-
<AppLogo class="w-42 h-auto sm:w-58 md:w-70" />
42+
<img
43+
v-if="isKawaii === true"
44+
width="400"
45+
class="pb-8 motion-safe:animate-fade-in motion-safe:hover:scale-105 motion-safe:tra nsition"
46+
src="/extra/npmx-cute.svg"
47+
alt="sticker"
48+
/>
49+
<AppLogo v-if="isKawaii !== true" class="w-42 h-auto sm:w-58 md:w-70" />
4050
<span
51+
v-if="isKawaii !== true"
4152
aria-hidden="true"
4253
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"
4354
>
@@ -46,6 +57,7 @@ defineOgImageComponent('Default', {
4657
</h1>
4758

4859
<p
60+
v-if="isKawaii !== true"
4961
class="text-fg-muted text-lg sm:text-xl max-w-xl mb-12 lg:mb-14 motion-safe:animate-slide-up motion-safe:animate-fill-both"
5062
style="animation-delay: 0.1s"
5163
>

0 commit comments

Comments
 (0)