From 8878ea3828ac9bbe1d275e0a19076c0a21478fce Mon Sep 17 00:00:00 2001 From: Manuel Ernesto Garcia Date: Thu, 22 Sep 2022 12:45:55 -0400 Subject: [PATCH] improving card component --- src/components/Card.astro | 4 ++-- src/layouts/Page.astro | 2 +- src/pages/index.astro | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/Card.astro b/src/components/Card.astro index 138fe32..9e74bc1 100644 --- a/src/components/Card.astro +++ b/src/components/Card.astro @@ -1,5 +1,5 @@ --- -const { title, img, desc, url } = Astro.props; +const { title, img, desc, url, badge } = Astro.props; ---
@@ -9,7 +9,7 @@ const { title, img, desc, url } = Astro.props;

{title} -
NEW
+ {badge &&
{badge}
}

{desc}

diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro index aea9aa9..5bfe379 100644 --- a/src/layouts/Page.astro +++ b/src/layouts/Page.astro @@ -17,7 +17,7 @@ import { SITE_TITLE, SITE_DESCRIPTION } from "../config";
-
+