From 94eb1ae21f63fb209b353c626efc81a491a4b866 Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 2 Feb 2024 08:38:41 -0500 Subject: [PATCH] Add Card and Card Grid components --- src/components/Card.astro | 56 +++++++++++++++++++++++++++++++++++ src/components/CardGrid.astro | 16 ++++++++++ 2 files changed, 72 insertions(+) create mode 100644 src/components/Card.astro create mode 100644 src/components/CardGrid.astro diff --git a/src/components/Card.astro b/src/components/Card.astro new file mode 100644 index 0000000..118042e --- /dev/null +++ b/src/components/Card.astro @@ -0,0 +1,56 @@ +--- +const { + Title, + Description, + CallToAction, + CallToAction_Primary_Text, + CallToAction_Primary_Link, + CallToAction_Secondary_Text, + CallToAction_Secondary_Link +} = Astro.props +--- + +
+ +

{Title}

+

{Description}

+ {CallToAction ? + + : + null + } +
+ + \ No newline at end of file diff --git a/src/components/CardGrid.astro b/src/components/CardGrid.astro new file mode 100644 index 0000000..0179076 --- /dev/null +++ b/src/components/CardGrid.astro @@ -0,0 +1,16 @@ +
+ +
+ + \ No newline at end of file