Skip to content

Commit d97b7f5

Browse files
authored
feature(website): csr placeholder page (#621)
1 parent 8457186 commit d97b7f5

File tree

5 files changed

+68
-1
lines changed

5 files changed

+68
-1
lines changed

shared/locales/de/website-csr.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "Soziale Unternehmensverantwortung",
3+
"subtitle": "Hier kannst du bald nach Organisationen suchen, die direkt oder über ihre Mitarbeitenden Social Income unterstützen.",
4+
"issue-assigned": "arbeitet zur Zeit an daran",
5+
"issue-unassigned": "übernimm den Lead für dieses Issue"
6+
}

shared/locales/en/website-csr.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"title": "Social Corporate Responsibility",
3+
"subtitle": "This page will let you soon search for organizations that contribute directly or indirectly through their employees to Social Income.",
4+
"issue-assigned": "is currently working on this page",
5+
"issue-unassigned": "assign this issue to yourself"
6+
}

website/src/app/[lang]/[region]/(website)/about-us/(sections)/contact.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { BaseContainer, Button, Card, CardContent, CardHeader, Typography } from
77
import { FontColor } from '@socialincome/ui/src/interfaces/color';
88
import Link from 'next/link';
99

10-
function SocialMediaButton({ Icon, title, href }: { Icon: IconType; href: string; title: string }) {
10+
export function SocialMediaButton({ Icon, title, href }: { Icon: IconType; href: string; title: string }) {
1111
return (
1212
<Link href={href} target="_blank" className="flex flex-col">
1313
<Button Icon={Icon} variant="ghost" size="lg">
Loading
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { DefaultPageProps } from '@/app/[lang]/[region]';
2+
import { SocialMediaButton } from '@/app/[lang]/[region]/(website)/about-us/(sections)/contact';
3+
import { SiFigma, SiGithub } from '@icons-pack/react-simple-icons';
4+
import { Translator } from '@socialincome/shared/src/utils/i18n';
5+
import { BaseContainer, Typography } from '@socialincome/ui';
6+
import Image from 'next/image';
7+
import Link from 'next/link';
8+
import anthonyImage from './anthony.jpg';
9+
10+
export default async function Page({ params }: DefaultPageProps) {
11+
const translator = await Translator.getInstance({
12+
language: params.lang,
13+
namespaces: ['website-csr'],
14+
});
15+
16+
return (
17+
<BaseContainer className="min-h-screen-navbar flex flex-col items-center space-y-12 py-16 md:py-32">
18+
<Link
19+
href="https://github.com/anthonyray"
20+
target="_blank"
21+
rel="noopener noreferrer"
22+
className="bg-card hover:bg-accent border-accent flex items-center rounded-full border-2 p-2 text-center"
23+
>
24+
<Image
25+
src={anthonyImage}
26+
width={40}
27+
height={40}
28+
className="mr-2 h-10 w-10 rounded-full transition-transform duration-300"
29+
alt="Avatar"
30+
/>
31+
<span className="pl-3 pr-6 text-lg text-black/75">anthonyray {translator.t('issue-assigned')}</span>
32+
</Link>
33+
<div className="flex flex-col space-y-12">
34+
<Typography as="h1" size="5xl" weight="bold" className="text mx-auto text-center">
35+
{translator.t('title')}
36+
</Typography>
37+
<Typography as="h2" size="lg" lineHeight="snug" className="text mx-auto max-w-3xl text-center">
38+
{translator.t('subtitle')}
39+
</Typography>
40+
<div className="flex justify-center space-x-4">
41+
<SocialMediaButton
42+
Icon={SiGithub}
43+
href="https://github.com/socialincome-san/public/issues/550"
44+
title="GitHub Issue"
45+
/>
46+
<SocialMediaButton
47+
Icon={SiFigma}
48+
href="https://www.figma.com/proto/qGO3YI21AWIjWEyMPGUczM/Website-Social?type=design&node-id=376-2473&viewport=2567%2C-513%2C0.45&t=jG5pilvATJ4817xv-0&scaling=contain&starting-point-node-id=143%3A29044"
49+
title="Figma Design"
50+
/>
51+
</div>
52+
</div>
53+
</BaseContainer>
54+
);
55+
}

0 commit comments

Comments
 (0)