Files
artsite/app/components/home/Link.vue
Arthur DANJOU d3a8243abf Enhance: Update Activity component and ProseIcon styles
- Added optional 'assets' field to LanyardActivity interface for small text.
- Introduced 'Cursor' IDE to the IDEs list.
- Improved color variant styles in ProseIcon component for better visibility.
- Refactored Activity component to handle 'Cursor' IDE and updated activity message formatting.
2025-04-06 20:06:54 +02:00

39 lines
739 B
Vue

<script setup lang="ts">
defineProps({
label: {
type: String,
required: true,
},
href: {
type: String,
required: true,
},
icon: {
type: String,
},
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-bold text-md text-black dark:text-white underline decoration-gray-300 dark:decoration-neutral-700 group-hover:decoration-black dark:group-hover:decoration-white"
>
{{ label }}
</span>
</NuxtLink>
</template>