docs/.vitepress/theme/components/link-card/Card.vue

1ab1d19dff5fdd6756cf7c8bfdfe1d1e144bbc76
wotaku/docs/.vitepress/theme/components/link-card/Card.vue history · blame · raw

19 lines · 744 bytes

 1<script setup lang="ts">
 2const props = defineProps<{
 3  href: string
 4  title: string
 5  download?: boolean
 6}>()
 7</script>
 8
 9<template>
10  <a role="article" :href="props.href" :download="props.download ? '' : undefined"
11    class="hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98] transition-all! flex flex-col gap-1 text-neutral-600! text-sm px-4 py-3 rounded-2xl border border-neutral-200 dark:bg-neutral-800 dark:border-neutral-800 dark:text-neutral-300! interact:shadow-xl shadow-neutral-700/5 duration-300 font-normal! no-underline!">
12    <h3 class="text-black! dark:text-white! no-underline! font-medium! text-lg my-0!">
13      {{ props.title }}
14    </h3>
15    <p class="m-0! leading-normal!">
16      <slot />
17    </p>
18  </a>
19</template>