feat(list): add thumbnail

This commit is contained in:
Kim, Jimin 2025-03-22 20:55:51 +09:00
parent be68a14777
commit a5fce32e78
Signed by: pomp
GPG key ID: 2B516173EDD492EB
3 changed files with 34 additions and 6 deletions

View file

@ -2,6 +2,7 @@
const props = defineProps<{
href: string
name: string
thumbnail: string
}>()
// See https://inclusive-components.design/cards/
@ -14,7 +15,7 @@ const props = defineProps<{
<div
class="flex h-32 items-center justify-center rounded-t-lg dark:bg-dark-ui"
>
<slot />
<img :src="$props.thumbnail" class="rounded-t-lg" />
</div>
<div class="p-4">
<NuxtLink