Skip to content

Commit

Permalink
Finish evidence section-1
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkMenacer committed Oct 27, 2023
1 parent ba8ff18 commit 67ca974
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
7 changes: 7 additions & 0 deletions shared/locales/de/website-evidence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"section-1": {
"title": "Möchtest du erfahren, wie und warum Social Income funktioniert?",
"red-title": "Hier bist du richtig.",
"subtitle": "Auf dieser Seite möchten wir den aktuellen Stand der Forschung und den messbaren Impact von Social Income zeigen."
}
}
7 changes: 7 additions & 0 deletions shared/locales/en/website-evidence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"section-1": {
"title": "Want to learn how and why Social Income works? You’ve come ",
"red-title": "to the right place",
"subtitle": "Here we’ll run through some of the research that shows Social Income’s measurable impact in the real world."
}
}
7 changes: 7 additions & 0 deletions shared/locales/it/website-evidence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"section-1": {
"title": "Vuoi sapere come funziona Social Income e perché è così efficace? Sei nel",
"red-title": "posto giusto.",
"subtitle": "Qui analizzeremo alcune delle ricerche che mostrano l’impatto misurabile di Social Income nel mondo reale."
}
}
10 changes: 10 additions & 0 deletions website/src/app/[lang]/[country]/(website)/evidence/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { DefaultPageProps } from '@/app/[lang]/[country]';
import Section1 from './section-1';

export default async function Page(props: DefaultPageProps) {
return (
<>
<Section1 {...props} />
</>
);
}
26 changes: 26 additions & 0 deletions website/src/app/[lang]/[country]/(website)/evidence/section-1.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { DefaultPageProps } from '@/app/[lang]/[country]';
import { ClockIcon } from '@heroicons/react/24/solid';
import { Translator } from '@socialincome/shared/src/utils/i18n';
import { BaseContainer, Typography } from '@socialincome/ui';
import Link from 'next/link';

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

return (
<BaseContainer className="mt-12 flex flex-col items-center space-y-4">
<Typography as="h1" size="4xl" weight="bold" className="text-center w-2/3">
{translator.t('section-1.title')}
<div className="text-red-400">
{translator.t('section-1.red-title')}
</div>
</Typography>
<Typography as="h2" size="xl" className="max-w-2xl text-center">
{translator.t('section-1.subtitle')}
</Typography>
</BaseContainer>
);
}

0 comments on commit 67ca974

Please sign in to comment.