@@ -5,29 +5,95 @@ withDefaults(
55 version: string
66 downloads? : string
77 license? : string
8+ primaryColor? : string
89 }>(),
910 {
1011 downloads: ' ' ,
1112 license: ' ' ,
13+ primaryColor: ' #60a5fa' ,
1214 },
1315)
1416 </script >
1517
1618<template >
1719 <div
18- class =" h-full w-full flex flex-col justify-center items-center bg-[#0a0a0a] text-[#fafafa]"
19- style =" font-family : ' Geist Mono' "
20+ class =" h-full w-full flex flex-col justify-center px-20 bg-[#050505] text-[#fafafa] relative overflow-hidden"
2021 >
21- <h1 class =" text-6xl font-medium tracking-tight" >
22- {{ name }}
23- </h1 >
22+ <div class =" relative z-10 flex flex-col gap-6" >
23+ <div class =" flex items-start gap-4" >
24+ <div
25+ class =" flex items-start justify-center w-16 h-16 rounded-xl shadow-lg bg-gradient-to-tr from-[#3b82f6]"
26+ :style =" { backgroundColor: primaryColor }"
27+ >
28+ <svg
29+ width =" 36"
30+ height =" 36"
31+ viewBox =" 0 0 24 24"
32+ fill =" none"
33+ stroke =" white"
34+ stroke-width =" 2.5"
35+ stroke-linecap =" round"
36+ stroke-linejoin =" round"
37+ >
38+ <path d =" m7.5 4.27 9 5.15" />
39+ <path
40+ d =" M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"
41+ />
42+ <path d =" m3.3 7 8.7 5 8.7-5" />
43+ <path d =" M12 22V12" />
44+ </svg >
45+ </div >
2446
25- <div class =" flex items-center gap-6 mt-6 text-xl text-fg-subtle" >
26- <span >v{{ version }}</span >
27- <span v-if =" downloads" >{{ downloads }}/wk</span >
28- <span v-if =" license" >{{ license }}</span >
47+ <h1
48+ class =" text-8xl font-bold tracking-tighter"
49+ style =" font-family : ' Geist Sans' , sans-serif "
50+ >
51+ <span :style =" { color: primaryColor }" class =" opacity-80" >./</span >{{ name }}
52+ </h1 >
53+ </div >
54+
55+ <div
56+ class =" flex items-center gap-3 text-4xl font-light text-[#a3a3a3]"
57+ style =" font-family : ' Geist Sans' , sans-serif "
58+ >
59+ <span
60+ class =" px-3 py-1 rounded-lg border"
61+ :style =" {
62+ color: primaryColor,
63+ backgroundColor: primaryColor + '10',
64+ borderColor: primaryColor + '30',
65+ boxShadow: `0 0 20px ${primaryColor}25`,
66+ }"
67+ >
68+ {{ version }}
69+ </span >
70+ <span v-if =" downloads" >
71+ <span >• {{ downloads }} </span >
72+ <span class =" flex items-center gap-0" >
73+ <svg
74+ width =" 30"
75+ height =" 30"
76+ viewBox =" 0 0 24 24"
77+ fill =" none"
78+ stroke =" currentColor"
79+ stroke-width =" 2"
80+ stroke-linecap =" round"
81+ stroke-linejoin =" round"
82+ class =" text-white/70"
83+ >
84+ <circle cx =" 12" cy =" 12" r =" 10" class =" opacity-40" />
85+ <path d =" M12 8v8m-3-3l3 3 3-3" />
86+ </svg >
87+ <span >/wk</span >
88+ </span >
89+ </span >
90+ <span v-if =" license" > • {{ license }}</span >
91+ </div >
2992 </div >
3093
31- <p class =" absolute bottom-12 text-lg text-[#404040]" >npmx.dev</p >
94+ <div
95+ class =" absolute -top-32 -right-32 w-[550px] h-[550px] rounded-full blur-3xl"
96+ :style =" { backgroundColor: primaryColor + '10' }"
97+ />
3298 </div >
3399</template >
0 commit comments