-
-
Notifications
You must be signed in to change notification settings - Fork 424
Expand file tree
/
Copy pathPackage.vue
More file actions
33 lines (30 loc) · 749 Bytes
/
Package.vue
File metadata and controls
33 lines (30 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script setup lang="ts">
withDefaults(
defineProps<{
name: string
version: string
downloads?: string
license?: string
}>(),
{
downloads: '',
license: '',
},
)
</script>
<template>
<div
class="h-full w-full flex flex-col justify-center items-center bg-[#0a0a0a] text-[#fafafa]"
style="font-family: 'Geist Mono'"
>
<h1 class="text-6xl font-medium tracking-tight">
{{ name }}
</h1>
<div class="flex items-center gap-6 mt-6 text-xl text-fg-subtle">
<span>v{{ version }}</span>
<span v-if="downloads">{{ downloads }}/wk</span>
<span v-if="license">{{ license }}</span>
</div>
<p class="absolute bottom-12 text-lg text-[#404040]">npmx.dev</p>
</div>
</template>