mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 18:59:59 +01:00
- Removed Tailwind CSS tag from the artchat project metadata. - Updated @nuxtjs/mdc package version from ^0.19.1 to 0.19.2 in package.json. - Added migrations_table and migrations_dir properties to the D1 database configuration in wrangler.jsonc.
40 lines
758 B
Vue
40 lines
758 B
Vue
<script setup lang="ts">
|
|
defineProps({
|
|
label: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
href: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
blanked: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLink
|
|
:href="href"
|
|
:target="blanked ? '_blank' : '_self'"
|
|
class="sofia flex gap-1 items-center group"
|
|
>
|
|
<Icon
|
|
v-if="icon"
|
|
:name="icon"
|
|
size="20"
|
|
/>
|
|
<span
|
|
class="duration-300 underline-offset-2 font-semibold text-md text-black dark:text-white underline decoration-neutral-300 dark:decoration-neutral-700 group-hover:decoration-black dark:group-hover:decoration-white"
|
|
>
|
|
{{ label }}
|
|
</span>
|
|
</NuxtLink>
|
|
</template>
|