1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-03 16:37:40 +01:00
smov/src/pages/About.tsx

45 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-11-26 16:33:04 +01:00
import { useTranslation } from "react-i18next";
2023-10-24 13:15:13 +02:00
2023-09-06 20:27:17 +02:00
import { ThinContainer } from "@/components/layout/ThinContainer";
2023-10-24 13:15:13 +02:00
import { Ol } from "@/components/utils/Ol";
2023-09-06 20:27:17 +02:00
import { Heading1, Heading2, Paragraph } from "@/components/utils/Text";
2023-11-29 18:49:04 +01:00
import { PageTitle } from "@/pages/parts/util/PageTitle";
2023-09-06 20:27:17 +02:00
import { SubPageLayout } from "./layouts/SubPageLayout";
2023-10-24 13:15:13 +02:00
function Question(props: { title: string; children: React.ReactNode }) {
return (
<>
<p className="text-white mb-2 font-medium">{props.title}</p>
<div className="text-type-text">{props.children}</div>
</>
);
}
2023-09-06 20:27:17 +02:00
export function AboutPage() {
2023-11-26 16:33:04 +01:00
const { t } = useTranslation();
2023-09-06 20:27:17 +02:00
return (
<SubPageLayout>
2023-11-29 18:49:04 +01:00
<PageTitle subpage k="global.pages.about" />
2023-09-06 20:27:17 +02:00
<ThinContainer>
2023-12-06 22:59:58 +01:00
<Heading1>{t("about.title")}</Heading1>
<Paragraph>{t("about.description")}</Paragraph>
<Heading2>{t("about.faqTitle")}</Heading2>
2023-10-24 13:15:13 +02:00
<Ol
items={[
2023-12-06 22:59:58 +01:00
<Question title={t("about.q1.title")}>
{t("about.q1.body")}
</Question>,
<Question title={t("about.q2.title")}>
{t("about.q2.body")}
</Question>,
<Question title={t("about.q3.title")}>
{t("about.q3.body")}
</Question>,
2023-10-24 13:15:13 +02:00
]}
/>
2023-09-06 20:27:17 +02:00
</ThinContainer>
</SubPageLayout>
);
}