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

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

23 lines · 759 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
11    role="article"
12    :href="props.href"
13    :download="props.download ? '' : undefined"
14    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!"
15  >
16    <h3 class="text-black! dark:text-white! no-underline! font-medium! text-lg my-0!">
17      {{ props.title }}
18    </h3>
19    <p class="m-0! leading-normal!">
20      <slot />
21    </p>
22  </a>
23</template>