From 77f2a8d79986a1b207b05226cf58acd68443a060 Mon Sep 17 00:00:00 2001 From: Guilherme Rodrigues Date: Sun, 7 Jan 2024 10:57:01 -0300 Subject: [PATCH] Add subtitle to hero --- sections/NRF/Hero.tsx | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/sections/NRF/Hero.tsx b/sections/NRF/Hero.tsx index bbc87732..63933829 100644 --- a/sections/NRF/Hero.tsx +++ b/sections/NRF/Hero.tsx @@ -9,31 +9,44 @@ export interface Props { * @format html */ title: string; + /** + * @format html + */ + subtitle?: string; // Add subtitle property cta?: CTA[]; alert?: { image?: string; text?: string; href?: string; - } + }; } -export default function Hero({ title, cta, alert }: Props) { +export default function Hero({ title, subtitle, cta, alert }: Props) { return (
- { - alert?.text && ( -
- {alert.text} -
- ) - } + {alert?.text && ( +
+ {alert.text} +
+ )}
+ > +
+ {subtitle && + ( +
+
+ )} {cta && cta?.map((item) => (