feat: more to explore (#360)
This commit is contained in:
parent
a36a26d745
commit
183b1659d1
23 changed files with 530 additions and 17 deletions
26
components/tag/TagCard.vue
Normal file
26
components/tag/TagCard.vue
Normal file
|
@ -0,0 +1,26 @@
|
|||
<script lang="ts" setup>
|
||||
import type { Tag } from 'masto'
|
||||
|
||||
const {
|
||||
tag,
|
||||
} = $defineProps<{
|
||||
tag: Tag
|
||||
}>()
|
||||
|
||||
const to = $computed(() => new URL(tag.url).pathname)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLink :to="to" block p4 hover:bg-active flex justify-between>
|
||||
<div>
|
||||
<h4 text-size-base leading-normal font-medium line-clamp-1 break-all ws-pre-wrap>
|
||||
<span>#</span>
|
||||
<span hover:underline>{{ tag.name }}</span>
|
||||
</h4>
|
||||
<CommonTrending :history="tag.history" text-sm text-secondary line-clamp-1 ws-pre-wrap break-all />
|
||||
</div>
|
||||
<div flex items-center>
|
||||
<CommonTrendingCharts :history="tag.history" />
|
||||
</div>
|
||||
</NuxtLink>
|
||||
</template>
|
11
components/tag/TagCardSkeleton.vue
Normal file
11
components/tag/TagCardSkeleton.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<template>
|
||||
<div p4 flex justify-between>
|
||||
<div flex="~ col 1 gap-2">
|
||||
<div flex class="skeleton-loading-bg" h-5 w-30 rounded />
|
||||
<div flex class="skeleton-loading-bg" h-4 w-45 rounded />
|
||||
</div>
|
||||
<div flex items-center>
|
||||
<div flex class="skeleton-loading-bg" h-9 w-15 rounded />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue