This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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
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 |
---|---|---|
@@ -1,22 +1,70 @@ | ||
import { Card, Stack, Typography } from "@mui/material"; | ||
import { Avatar, Card, Grid, Stack, Typography } from "@mui/material"; | ||
import Page from "../../components/common/Page"; | ||
import PersonIcon from "@mui/icons-material/Person"; | ||
import InfoIcon from "@mui/icons-material/Info"; | ||
import Diversity3Icon from "@mui/icons-material/Diversity3"; | ||
import { useTranslation } from "react-i18next"; | ||
import { Pages } from "../../type/page"; | ||
import { Line, PageTitle, SectionTitle } from "../../components/Text"; | ||
|
||
export default function About() { | ||
const {t} = useTranslation("pages"); | ||
const description: string[] = t("about.description", {returnObjects: true}); | ||
|
||
const team = [ | ||
{ | ||
name: "Nicholas Krebs", | ||
image: "/media/team/nicholas-krebs.webp", | ||
position: t("about.team.nicholas.role"), | ||
description: t("about.team.nicholas.description"), | ||
}, | ||
{ | ||
name: "Ronald Krebs", | ||
image: "/media/team/ronald-krebs.webp", | ||
position: t("about.team.ronald.role"), | ||
description: t("about.team.ronald.description"), | ||
}, | ||
]; | ||
|
||
return ( | ||
<Page page={Pages.About}> | ||
<section> | ||
<PageTitle>{t("about.title")}</PageTitle> | ||
<Line bottom={2} /> | ||
</section> | ||
<article> | ||
<Stack spacing={3}> | ||
<Card id={"about"} sx={{padding: "2rem"}}> | ||
<h2> | ||
<PersonIcon /> {t("about.title")} | ||
</h2> | ||
<SectionTitle> | ||
<InfoIcon /> {t("about.title")} | ||
</SectionTitle> | ||
{description.map((paragraph, i) => <Typography key={i} dangerouslySetInnerHTML={{__html: paragraph}} sx={{mb: "1rem"}} />)} | ||
<Typography> | ||
<address> | ||
Crabston GmbH <br /> | ||
Städtli 16 <br /> | ||
3380 Wangen an der Aare <br /> | ||
<a href="tel:+41787188007">078 718 80 07</a> <br /> | ||
<a href="mailto:[email protected]">[email protected]</a> | ||
</address> | ||
</Typography> | ||
</Card> | ||
<Card id={"about"} sx={{padding: "2rem"}}> | ||
<SectionTitle> | ||
<Diversity3Icon /> {t("about.team.title")} | ||
</SectionTitle> | ||
<Typography>{t("about.team.description")}</Typography> | ||
<Grid container spacing={2}> | ||
{team.map((member, i) => ( | ||
<Grid key={i} item xs={12} md={6}> | ||
<Card sx={{padding: "2rem 1rem", display: "flex", flexDirection: "column", alignItems: "center", height: "100%"}}> | ||
<Avatar src={member.image} alt={member.name} sx={{width: 150, height: 150}} /> | ||
<Typography variant={"h4"} component={"h3"}>{member.name}</Typography> | ||
<Typography variant={"h6"} component={"h4"}>{member.position}</Typography> | ||
<Typography maxWidth="75%">{member.description}</Typography> | ||
</Card> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Card> | ||
</Stack> | ||
</article> | ||
|
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