From e868695b96f78a5740c5e70ad3e9676ff65228ab Mon Sep 17 00:00:00 2001 From: Korbs Date: Fri, 2 Feb 2024 16:10:42 -0500 Subject: [PATCH] Add option for alignment, image, toggle CTA buttons --- src/components/sections/Hero.astro | 48 +++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/src/components/sections/Hero.astro b/src/components/sections/Hero.astro index d6f85bf..c25fae9 100644 --- a/src/components/sections/Hero.astro +++ b/src/components/sections/Hero.astro @@ -2,42 +2,62 @@ const { Title, Description, - CallToAction, + CallToAction_Primary, + CallToAction_Secondary, CallToAction_Primary_Text, CallToAction_Primary_Link, CallToAction_Secondary_Text, - CallToAction_Secondary_Link + CallToAction_Secondary_Link, + Alignment, + Image } = Astro.props + +if (Alignment === 'left') { + var AlignmentIsLeft = true +} --- -
+

{Title}

{Description}

- {CallToAction ? -
+
+ {CallToAction_Primary ? {CallToAction_Primary_Text} + : + null + } + {CallToAction_Secondary ? {CallToAction_Secondary_Text} -
- : - null - } + : + null + } +
+{AlignmentIsLeft ? + + : + null +} +