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

fcd8aa0213f5256561bd3a97b7542444f77bf030
wotaku/docs/.vitepress/theme/components/link-card/Card.vue
taskylizard fix oopsie, format5b7264f968 1 year ago

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