From e3f19d7054f3ef8b4bec9bdbdb0708a6eb04c9d8 Mon Sep 17 00:00:00 2001 From: lovesitecore Date: Thu, 2 May 2024 14:47:54 +0200 Subject: [PATCH] Fixed padding top and applied same component structure as Other Hero Variant --- .../src/components/Basic Components/Hero.tsx | 75 ++++++++++--------- 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/src/Project/Sugcon2024/Sugcon/src/components/Basic Components/Hero.tsx b/src/Project/Sugcon2024/Sugcon/src/components/Basic Components/Hero.tsx index e4efdbac..abccf113 100644 --- a/src/Project/Sugcon2024/Sugcon/src/components/Basic Components/Hero.tsx +++ b/src/Project/Sugcon2024/Sugcon/src/components/Basic Components/Hero.tsx @@ -91,52 +91,57 @@ export const HeroHomepage = (props: HeroProps): JSX.Element => { export const HeroEvent = (props: HeroProps): JSX.Element => { return ( - + - + - - - - - - {isSitecoreTextFieldPopulated(props.fields.Text) && ( - - - - )} - - - + + + + + {isSitecoreTextFieldPopulated(props.fields.EventDate) && ( + + + + )} + + {isSitecoreTextFieldPopulated(props.fields.Text) && ( + + + + )} + + {isSitecoreLinkFieldPopulated(props.fields.CallToAction) && ( + + + + )} + + {props.fields.Image?.value?.alt} - + + ); };