From 03233a4a2331d849dabb3700279496c59d7f216a Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Sun, 1 Dec 2024 18:32:04 +0800 Subject: [PATCH] feat: image card Signed-off-by: ZTL-UwU --- components/content/Card.vue | 70 +++++++++++++++++------------ content/2.components/2.docs/card.md | 22 +++++++++ 2 files changed, 63 insertions(+), 29 deletions(-) diff --git a/components/content/Card.vue b/components/content/Card.vue index eaadf3dc..01072fc5 100644 --- a/components/content/Card.vue +++ b/components/content/Card.vue @@ -1,35 +1,45 @@ @@ -43,5 +53,7 @@ defineProps<{ target?: Target; icon?: string; inStack?: boolean; + img?: string; }>(); +const [UseTemplate, CardInner] = createReusableTemplate(); diff --git a/content/2.components/2.docs/card.md b/content/2.components/2.docs/card.md index 149dafdc..b3662831 100644 --- a/content/2.components/2.docs/card.md +++ b/content/2.components/2.docs/card.md @@ -51,6 +51,17 @@ badges: #content Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. :: + + ::card + --- + img: /og-nuxt.png + --- + #title + Image Card + + #content + Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + :: :: ```mdc [Code] @@ -86,6 +97,17 @@ badges: #title Card with link + #content + Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. + :: + + ::card + --- + img: /og-nuxt.png + --- + #title + Image Card + #content Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. ::