Skip to content

Commit

Permalink
Basic page for article (poverty statistics)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandino committed Nov 26, 2023
1 parent 37480ea commit 625e9cd
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
22 changes: 22 additions & 0 deletions shared/locales/en/website-poverty-statistics-2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"metadata": {
"title": "World Poverty Statistics 2023 | Social Income",
"description": "World Poverty Statistics 2023",
"og-image": "/assets/metadata/og/evidence-en.jpg",
"twitter-image": "/assets/metadata/twitter/evidence-en.jpg"
},
"title": "World Poverty Statistics 2023",
"lead": "Facing the harsh reality of extreme poverty, over 700 million individuals globally survive on under $1.90 per day, a crisis impacting mainly children. The goal to eradicate this by 2030 underlines the vital global effort of Sustainable Development Goal 1.",
"paragraphs": [
"According to the latest poverty statistics, approximately 9.2% of the global population, or about 700 million people, live in extreme poverty. Extreme poverty is defined as living on less than $1.90 per day. This population is largely concentrated in developing countries, with about 90% of people living in extreme poverty residing in sub-Saharan Africa and South Asia.",
"In addition to those living in extreme poverty, about 26% of the global population, or about 1.3 billion people, live in moderate poverty. Moderate poverty is defined as living on between $1.90 and $3.20 per day.",
"Poverty disproportionately affects children, with about half of the world's poor being children under the age of 18. Poverty has serious consequences for children's health, education, and overall well-being. It can also have intergenerational impacts, as children who grow up in poverty are more likely to experience poverty as adults.",
"Efforts to reduce poverty and income inequality have made significant progress in recent decades, with the percentage of the global population living in extreme poverty falling from about 36% in 1990 to 9.2% in 2022. However, much work remains to be done to address poverty and ensure that all people have the opportunity to lead healthy, enjoyable lives.",
"The Sustainable Development Goal (SDG) 1, also known as the “No Poverty“ goal, is a global effort to eradicate extreme poverty and reduce income inequality by 2030. This goal is of utmost importance because poverty is a pervasive and complex issue that affects billions of people around the world. It can have serious consequences for individuals, communities, and economies, including poor health, limited access to education and other essential services, and reduced economic opportunity."
],
"author": "Written by Riccardo Tamburini",
"quote": "« The opposite of poverty is justice »",
"quote-source": "Bryan Stevenson",
"difference": "Everyone of us can make a big difference in the fight to eradicate poverty:",
"take-action": "Take Action"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { DefaultPageProps } from '@/app/[lang]/[region]';
import { Translator } from '@socialincome/shared/src/utils/i18n';
import { BaseContainer, Button, Typography } from "@socialincome/ui";
import Link from "next/link";

export default async function Page({ params }: DefaultPageProps) {
const translator = await Translator.getInstance({
language: params.lang,
namespaces: ['website-poverty-statistics-2023'],
});

return (
<BaseContainer className="mx-auto flex max-w-2xl flex-col space-y-12 py-16">
<Typography as="h1" size="5xl" weight="bold" className="leading-normal">
{translator.t('title')}
</Typography>
<Typography as="h2" size="3xl" weight="semibold" className="leading-normal">
{translator.t('lead')}
</Typography>
<div className="flex flex-col space-y-4">
{translator.t<string[]>('paragraphs').map((text, index) => (
<Typography as="h3" key={index} size="2xl" className="leading-normal">
{text}
</Typography>
))}
</div>
<Typography size="xl" className="leading-normal">
{translator.t('author')}
</Typography>
<hr className="my-4" />
<div className="p-4">
<Typography size="5xl" className="leading-normal text-center my-4">
{translator.t('quote')}
</Typography>
<Typography size="xl" className="leading-normal text-center mb-4">
{translator.t('quote-source')}
</Typography>
</div>
<hr className="my-4" />
<Typography size="2xl" className="leading-normal">
{translator.t('difference')}
</Typography>
<Link href="/donate/individual">
<Button size="lg" className="w-full">
{translator.t('take-action')}
</Button>
</Link>
</BaseContainer>
);
}

0 comments on commit 625e9cd

Please sign in to comment.