-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(website): add reporting page (#656)
- Loading branch information
Showing
7 changed files
with
179 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"title": "Dokumente", | ||
"table-columns": { | ||
"title": "Dokument", | ||
"language": "Sprache", | ||
"href": "Link" | ||
}, | ||
"table-caption": "Neue Berichte werden kontinuierlich hinzugefügt.", | ||
"download-pdf": "PDF", | ||
"reports": [ | ||
{ | ||
"title": "Finanzbericht 2022", | ||
"href": "https://drive.google.com/file/d/13OJlzxznbsRhE3ywYHOF3ggh7e89zZtn/view", | ||
"language": "Englisch" | ||
}, | ||
{ | ||
"title": "Finanzbericht 2022", | ||
"href": "https://drive.google.com/file/d/1ivgdOqI3WkJ5ymSuDMNS0BP3SffVxCKk/view", | ||
"language": "Deutsch" | ||
}, | ||
{ | ||
"title": "Jahresbericht 2021", | ||
"href": "https://drive.google.com/file/d/1WmuWDMvbngCY73scZM5_qD3BpIambigG/view", | ||
"language": "Englisch/Deutsch" | ||
}, | ||
{ | ||
"title": "Finanzbericht 2021", | ||
"href": "https://drive.google.com/file/d/1WdTi_NWhpGX7nHQh1Duu9W-klmGQT1Ik/view", | ||
"language": "Englisch" | ||
}, | ||
{ | ||
"title": "Finanzbericht 2021", | ||
"href": "https://drive.google.com/file/d/1WfUPKVuEcCICqNn4PR_dPU1Rg2ji1q6W/view", | ||
"language": "Deutsch" | ||
}, | ||
{ | ||
"title": "Prüfbericht 2021", | ||
"href": "https://drive.google.com/file/d/16b-w5B2PhkRBZbBQOTmBXfxTGrDvf2FE/view", | ||
"language": "Deutsch" | ||
}, | ||
{ | ||
"title": "Jahresbericht 2020", | ||
"href": "https://drive.google.com/file/d/15_v8B7eLJxDJVNfoYWABwKNcfHbz1U_o/view", | ||
"language": "Englisch/Deutsch" | ||
}, | ||
{ | ||
"title": "Prüfbericht 2020", | ||
"href": "https://drive.google.com/file/d/15aaPhuCCTicG74lNeg6OA9vEsq4nkE0o/view", | ||
"language": "Deutsch" | ||
}, | ||
{ | ||
"title": "Bestätigung Steuerbefreiung", | ||
"href": "https://drive.google.com/file/d/1-YAtyYjUL_LqMKyG0IN41Cohr58EAy7S/view", | ||
"language": "Deutsch" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"title": "Reporting", | ||
"table-columns": { | ||
"title": "Document", | ||
"language": "Language", | ||
"href": "Link" | ||
}, | ||
"table-caption": "New reports are continuously added.", | ||
"download-pdf": "PDF", | ||
"reports": [ | ||
{ | ||
"title": "Financial Statement 2022", | ||
"href": "https://drive.google.com/file/d/13OJlzxznbsRhE3ywYHOF3ggh7e89zZtn/view", | ||
"language": "English" | ||
}, | ||
{ | ||
"title": "Financial Statement 2022", | ||
"href": "https://drive.google.com/file/d/1ivgdOqI3WkJ5ymSuDMNS0BP3SffVxCKk/view", | ||
"language": "German" | ||
}, | ||
{ | ||
"title": "Annual Report 2021", | ||
"href": "https://drive.google.com/file/d/1WmuWDMvbngCY73scZM5_qD3BpIambigG/view", | ||
"language": "English/German" | ||
}, | ||
{ | ||
"title": "Financial Statement 2021", | ||
"href": "https://drive.google.com/file/d/1WdTi_NWhpGX7nHQh1Duu9W-klmGQT1Ik/view", | ||
"language": "English" | ||
}, | ||
{ | ||
"title": "Financial Statement 2021", | ||
"href": "https://drive.google.com/file/d/1WfUPKVuEcCICqNn4PR_dPU1Rg2ji1q6W/view", | ||
"language": "German" | ||
}, | ||
{ | ||
"title": "Audit Report 2021", | ||
"href": "https://drive.google.com/file/d/16b-w5B2PhkRBZbBQOTmBXfxTGrDvf2FE/view", | ||
"language": "German" | ||
}, | ||
{ | ||
"title": "Annual Report 2020", | ||
"href": "https://drive.google.com/file/d/15_v8B7eLJxDJVNfoYWABwKNcfHbz1U_o/view", | ||
"language": "English/German" | ||
}, | ||
{ | ||
"title": "Audit Report 2020", | ||
"href": "https://drive.google.com/file/d/15aaPhuCCTicG74lNeg6OA9vEsq4nkE0o/view", | ||
"language": "German" | ||
}, | ||
{ | ||
"title": "Confirmation Tax Exemption", | ||
"href": "https://drive.google.com/file/d/1-YAtyYjUL_LqMKyG0IN41Cohr58EAy7S/view", | ||
"language": "German" | ||
} | ||
] | ||
} |
58 changes: 58 additions & 0 deletions
58
website/src/app/[lang]/[region]/(website)/transparency/reporting/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { DefaultPageProps } from '@/app/[lang]/[region]'; | ||
import { getMetadata } from '@/metadata'; | ||
import { Translator } from '@socialincome/shared/src/utils/i18n'; | ||
import { | ||
BaseContainer, | ||
Table, | ||
TableBody, | ||
TableCaption, | ||
TableCell, | ||
TableHead, | ||
TableHeader, | ||
TableRow, | ||
Typography, | ||
} from '@socialincome/ui'; | ||
import Link from 'next/link'; | ||
|
||
export async function generateMetadata({ params }: DefaultPageProps) { | ||
return getMetadata(params.lang, 'website-reporting'); | ||
} | ||
|
||
export default async function Page({ params }: DefaultPageProps) { | ||
const translator = await Translator.getInstance({ | ||
language: params.lang, | ||
namespaces: ['website-reporting'], | ||
}); | ||
|
||
return ( | ||
<BaseContainer className="mx-auto flex max-w-2xl flex-col space-y-12 pb-16"> | ||
<Typography size="4xl" weight="bold"> | ||
{translator.t('title')} | ||
</Typography> | ||
<Table> | ||
<TableCaption>{translator.t('table-caption')}</TableCaption> | ||
<TableHeader> | ||
<TableRow> | ||
<TableHead>{translator.t('table-columns.title')}</TableHead> | ||
<TableHead>{translator.t('table-columns.language')}</TableHead> | ||
<TableHead className="text-right">{translator.t('table-columns.href')}</TableHead> | ||
</TableRow> | ||
</TableHeader> | ||
|
||
<TableBody> | ||
{translator.t<{ title: string; href: string; language: string }[]>('reports').map((report, index) => ( | ||
<TableRow key={index}> | ||
<TableCell className="font-medium">{report.title}</TableCell> | ||
<TableCell>{report.language}</TableCell> | ||
<TableCell className="text-right"> | ||
<Link href={report.href} target="_blank" className="text-primary underline"> | ||
{translator.t('download-pdf')} | ||
</Link> | ||
</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</BaseContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters