-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd7403a
commit 0cb35b5
Showing
2 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<script setup lang="ts"> | ||
defineProps<{ | ||
title: string | ||
description: string | ||
stars: number | ||
monthlyDownloads?: number | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<!-- Since we use Nuxt UI which replace color by some vars, we need to explicitly set a color. --> | ||
<div | ||
class="w-full h-full flex justify-between relative bg-[#111827] text-white" | ||
> | ||
<img src="/assets/header/ellipse.png" class="absolute top--64 right--64"> | ||
<div class="pt-[80px] px-[60px] pb-[60px]"> | ||
<div class="h-full w-full justify-between relative"> | ||
<div class="flex flex-row justify-between items-start"> | ||
<div class="w-full flex flex-col items-start"> | ||
<span class="text-[#f9fafb] text-[24px] px-4 py-2 rounded-full bg-[#F2E78C]/20 border-1 border-[#F2E78C]/70"> | ||
Package | ||
</span> | ||
<div class="mt-6 w-full flex flex-row justify-between"> | ||
<div> | ||
<h1 class="my-0 text-[76px] text-white font-normal"> | ||
unjs/<span class="font-bold">{{ title }}</span> | ||
</h1> | ||
<p | ||
class="mt-4 text-[42px] text-[#9ca3af] max-w-[768px]" | ||
> | ||
{{ description }} | ||
</p> | ||
</div> | ||
<img :src="`/assets/logos/${title}.svg`" class="rounded-sm h-[160px] w-[160px]"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex flex-row items-end justify-between"> | ||
<div class="flex flex-row gap-12 text-[#9ca3af] font-medium"> | ||
<div class="flex flex-row items-end"> | ||
<Icon name="heroicons:star-solid" size="32px" class="" /> | ||
<div class="ml-2 flex flex-col"> | ||
<span class=" text-[20px] leading-[16px]"> | ||
Stars | ||
</span> | ||
<span class="mt-2 text-[36px] leading-[30px]"> | ||
{{ formatNumber(stars) }} | ||
</span> | ||
</div> | ||
</div> | ||
<div v-if="monthlyDownloads" class="flex flex-row items-end"> | ||
<Icon name="heroicons:arrow-trending-up-solid" size="32px" /> | ||
<div class="ml-2 flex flex-col"> | ||
<span class=" text-[20px] leading-[16px]"> | ||
Monthly Downloads | ||
</span> | ||
<span class="mt-2 text-[36px] leading-[30px]"> | ||
{{ formatNumber(monthlyDownloads) }} | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
<img src="/favicon.svg" class="rounded-sm h-[60px] w-[60px]"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters