Skip to content

Commit d6459a3

Browse files
committed
📘 doc: organize
1 parent b65a224 commit d6459a3

35 files changed

+461
-494
lines changed

components/nearl/card-deck.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<aside class="grid grid-cols-1 sm:grid-cols-2 w-full gap-4 items-start">
3+
<slot />
4+
</aside>
5+
</template>

components/nearl/card.vue

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<template>
2+
<a role="article" :href="props.href"
3+
class="flex flex-col gap-1 !text-gray-600 text-sm px-4 py-3 rounded-lg border dark:bg-gray-800 dark:border-gray-800 dark:!text-gray-300 hover:shadow-lg !transition-all focus:shadow-lg hover:-translate-y-1 focus:-translate-y-1 !font-normal !no-underline">
4+
<h3 class="!text-black dark:!text-white !font-medium text-sm !my-0">{{ props.title }}</h3>
5+
<p class="!m-0 !leading-normal">
6+
<slot />
7+
</p>
8+
</a>
9+
</template>
10+
11+
<script setup lang="ts">
12+
import { defineProps } from 'vue'
13+
14+
const props = defineProps<{
15+
href: string
16+
title: string
17+
}>()
18+
</script>

0 commit comments

Comments
 (0)