From 09385cc3fba09b4f0182fa8f05da3a7b9ea69d6c Mon Sep 17 00:00:00 2001 From: jaaaaavier Date: Mon, 23 Dec 2024 14:01:20 +0100 Subject: [PATCH] Update HeroSection.tsx --- src/components/sustainability/HeroSection.tsx | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/components/sustainability/HeroSection.tsx b/src/components/sustainability/HeroSection.tsx index 686108a47..bac37f7fc 100644 --- a/src/components/sustainability/HeroSection.tsx +++ b/src/components/sustainability/HeroSection.tsx @@ -30,7 +30,7 @@ const FeatureSection = ({ textContent }: HeroSectionsProps) => { {/* Display goals */} -
+
{goals.slice(0, 3).map((goal, index) => { const bgColor = index === 1 || index === 3 ? 'bg-green-25' : 'bg-green-40'; @@ -67,6 +67,46 @@ const FeatureSection = ({ textContent }: HeroSectionsProps) => { })}
+
+
+ {goals.slice(0, 3).map((goal, index) => { + const bgColor = index === 1 || index === 3 ? 'bg-green-25' : 'bg-green-40'; + + const isFirstOrThirdGoal = index === 0 || index === 2; + + if (isFirstOrThirdGoal) return null; + + return ( +
+ +

{goal.title}

+
+ ); + })} +
+ +
+ {goals.slice(3, 5).map((goal, index) => { + const bgColor = index === 1 ? 'bg-green-40' : 'bg-green-55'; + + return ( +
+ +

{goal.title}

+
+ ); + })} +
+
+ );