Skip to content

Commit

Permalink
Added Predicted Wealth Section
Browse files Browse the repository at this point in the history
  • Loading branch information
William-McGonagle committed Aug 17, 2023
1 parent a908c9c commit 58ad170
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/pages/impact.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function ImpactPage({location}) {
let childrenImpact = generalData.impact.children;
let adultImpact = generalData.impact.adults;

let economicImpact = impactNumber * (100008.00 - 81847.00);

return (
<Layout location={location} crumbLabel="Impact">
Expand Down Expand Up @@ -109,6 +110,25 @@ function ImpactPage({location}) {
</div>
</div>
</section>
<section className="bg-active px-4 py-16 text-white">
<div
class="mx-auto max-w-screen-xl px-4 lg:flex lg:items-center"
>
<div class="mx-auto max-w-5xl text-center">
<h2 className="text-xl uppercase font-bold tracking-wider mb-4">Our Economic Impact</h2>
<div className="w-full flex flex-col md:flex-row gap-8">
<div className="w-full h-full flex align-center justify-center flex-col">
<p class="text-4xl font-extrabold sm:text-6xl">
{new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(economicImpact)}
</p>
<p class="mt-4 text-lg">
of predicted global wealth generated since 2022.
</p>
</div>
</div>
</div>
</div>
</section>
</Layout>
)
}
Expand Down

0 comments on commit 58ad170

Please sign in to comment.