Skip to content

Commit 58ad170

Browse files
Added Predicted Wealth Section
1 parent a908c9c commit 58ad170

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/pages/impact.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function ImpactPage({location}) {
1414
let childrenImpact = generalData.impact.children;
1515
let adultImpact = generalData.impact.adults;
1616

17+
let economicImpact = impactNumber * (100008.00 - 81847.00);
1718

1819
return (
1920
<Layout location={location} crumbLabel="Impact">
@@ -109,6 +110,25 @@ function ImpactPage({location}) {
109110
</div>
110111
</div>
111112
</section>
113+
<section className="bg-active px-4 py-16 text-white">
114+
<div
115+
class="mx-auto max-w-screen-xl px-4 lg:flex lg:items-center"
116+
>
117+
<div class="mx-auto max-w-5xl text-center">
118+
<h2 className="text-xl uppercase font-bold tracking-wider mb-4">Our Economic Impact</h2>
119+
<div className="w-full flex flex-col md:flex-row gap-8">
120+
<div className="w-full h-full flex align-center justify-center flex-col">
121+
<p class="text-4xl font-extrabold sm:text-6xl">
122+
{new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(economicImpact)}
123+
</p>
124+
<p class="mt-4 text-lg">
125+
of predicted global wealth generated since 2022.
126+
</p>
127+
</div>
128+
</div>
129+
</div>
130+
</div>
131+
</section>
112132
</Layout>
113133
)
114134
}

0 commit comments

Comments
 (0)