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

b47a873646ceac62972f6fe79a1868e8421d2bbd
wotaku/docs/.vitepress/theme/components/link-card/Card.vue
taskylizard wotaku 2bea9706e6c 1 year ago

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>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form