@@ -8,8 +8,6 @@ async function search() {
88 startSearch ()
99}
1010
11- const { env } = useAppConfig ().buildInfo
12-
1311useSeoMeta ({
1412 title : () => $t (' seo.home.title' ),
1513 ogTitle : () => $t (' seo.home.title' ),
@@ -24,22 +22,6 @@ defineOgImageComponent('Default', {
2422 title: ' npmx' ,
2523 description: ' a fast, modern browser for the **npm registry**' ,
2624})
27-
28- // const route = useRoute()
29- // const isKawaii = computed(() => route.query.kawaii === 'true')
30- onPrehydrate (el => {
31- const isKawaii = new URLSearchParams (window .location .search ).has (' kawaii' )
32- if (! isKawaii ) return
33- const normalLogo = el .querySelector <HTMLElement >(' #npmx-index-h1-logo-normal' )
34- const kawaiiLogo = el .querySelector <HTMLElement >(' #npmx-index-h1-logo-kawaii' )
35- const logoEnv = el .querySelector <HTMLElement >(' #npmx-index-h1-logo-env' )
36- const logoTagline = el .querySelector <HTMLElement >(' #npmx-index-tagline' )
37- if (! normalLogo || ! kawaiiLogo || ! logoEnv || ! logoTagline ) return
38- normalLogo .style .display = ' none'
39- kawaiiLogo .style .display = ' block'
40- logoEnv .style .display = ' none'
41- logoTagline .style .display = ' none'
42- })
4325 </script >
4426
4527<template >
@@ -48,34 +30,7 @@ onPrehydrate(el => {
4830 <header
4931 class =" flex-1 flex flex-col items-center justify-center text-center pt-20 pb-4 md:pb-8 lg:pb-20"
5032 >
51- <h1
52- dir =" ltr"
53- 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"
54- >
55- <img
56- id =" npmx-index-h1-logo-kawaii"
57- width =" 400"
58- class =" hidden pb-8 motion-safe:animate-fade-in motion-safe:animate-scale-in motion-safe:hover:scale-105 motion-safe:transition w-80 sm:w-100"
59- src =" /extra/npmx-cute.svg"
60- :alt =" $t('alt_logo_kawaii')"
61- />
62- <AppLogo id =" npmx-index-h1-logo-normal" class =" w-42 h-auto sm:w-58 md:w-70" />
63- <span
64- id =" npmx-index-h1-logo-env"
65- aria-hidden =" true"
66- 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"
67- >
68- {{ env === 'release' ? 'alpha' : env }}
69- </span >
70- </h1 >
71-
72- <p
73- id =" npmx-index-tagline"
74- 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"
75- style =" animation-delay : 0.1s "
76- >
77- {{ $t('tagline') }}
78- </p >
33+ <LandingLogo class =" w-42 h-auto sm:w-58 md:w-70" />
7934 <search
8035 class =" w-full max-w-2xl motion-safe:animate-slide-up motion-safe:animate-fill-both"
8136 style =" animation-delay : 0.2s "
0 commit comments