From 62770113481ff5a372b668e5739ae2e715bad4d3 Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Sun, 15 Dec 2024 15:01:17 +0800 Subject: [PATCH] feat: horizontal cards Signed-off-by: ZTL-UwU --- components/content/Card.vue | 30 ++++++++++++++++++----------- content/2.components/2.docs/card.md | 10 ++++++++++ 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/components/content/Card.vue b/components/content/Card.vue index 6e4fb0a6..587746be 100644 --- a/components/content/Card.vue +++ b/components/content/Card.vue @@ -12,16 +12,18 @@ :src="img" class="w-full" /> - - - - - {{ title }} - - - - {{ description }} - + + +
+ + + {{ title }} + + + + {{ description }} + +
@@ -44,7 +46,11 @@ diff --git a/content/2.components/2.docs/card.md b/content/2.components/2.docs/card.md index 3c87ed80..de644a6f 100644 --- a/content/2.components/2.docs/card.md +++ b/content/2.components/2.docs/card.md @@ -40,6 +40,16 @@ badges: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip. :: + ::card + --- + title: Horizontal Card + description: Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + icon: 'lucide:fold-horizontal' + icon-size: 26 + horizontal: true + --- + :: + ::card --- to: https://github.com/ZTL-UwU/shadcn-docs-nuxt