feat(list): add icons
This commit is contained in:
parent
e81efcdb47
commit
7043fcc9c3
2 changed files with 35 additions and 3 deletions
28
apps/list/components/Card.vue
Normal file
28
apps/list/components/Card.vue
Normal file
|
@ -0,0 +1,28 @@
|
|||
<script setup lang="ts">
|
||||
const props = defineProps<{
|
||||
href: string
|
||||
name: string
|
||||
}>()
|
||||
|
||||
// See https://inclusive-components.design/cards/
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
class="relative w-80 rounded-lg rounded-b-lg bg-light-card-bg shadow-lg hover:shadow-glow dark:bg-dark-card-bg"
|
||||
>
|
||||
<div
|
||||
class="flex h-32 items-center justify-center rounded-t-lg dark:bg-dark-ui"
|
||||
>
|
||||
<slot />
|
||||
</div>
|
||||
<div class="p-4">
|
||||
<NuxtLink
|
||||
:href="$props.href"
|
||||
class="text-2xl after:absolute after:bottom-0 after:left-0 after:right-0 after:top-0"
|
||||
>
|
||||
{{ $props.name }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue