Migration to nuxt 4
Used codemods CLI and reworked most alias'd path that stopped working
This commit is contained in:
21
app/components/global/AddCard.vue
Normal file
21
app/components/global/AddCard.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<script lang="ts" setup>
|
||||
import { PhPlusCircle } from "@phosphor-icons/vue";
|
||||
|
||||
const emit = defineEmits(["on-click"])
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UiCard
|
||||
class="h-full lg:w-fit transition-all bg-transparent hover:text-slate-900 text-slate-500 dark:hover:text-slate-100 dark:text-slate-500 dark:focus-within:outline-gray-900 hover:-translate-y-0"
|
||||
has-click
|
||||
@on-click="emit('on-click')"
|
||||
>
|
||||
<UiCardHeader class="h-full justify-center items-center text-center gap-0">
|
||||
<PhPlusCircle size="38" weight="fill" />
|
||||
|
||||
<UiCardTitle class="text-xl">
|
||||
<slot />
|
||||
</UiCardTitle>
|
||||
</UiCardHeader>
|
||||
</UiCard>
|
||||
</template>
|
||||
Reference in New Issue
Block a user