forked from pub-solar/pub.solar
72 lines
1.5 KiB
TypeScript
72 lines
1.5 KiB
TypeScript
import { md } from '../../filters.ts';
|
|
import Head from '../Head.tsx';
|
|
import Background from '../Background.tsx';
|
|
import Homelink from '../Homelink.tsx';
|
|
import HakkenDates from '../HakkenDates.tsx';
|
|
|
|
export default ({
|
|
title,
|
|
content,
|
|
|
|
theme,
|
|
extraStylesheets,
|
|
extraScripts,
|
|
cacheBust,
|
|
|
|
showHakkenDates,
|
|
}) => <>
|
|
<html>
|
|
<Head
|
|
title={title}
|
|
theme={theme}
|
|
extraStylesheets={extraStylesheets}
|
|
cacheBust={cacheBust}
|
|
extraScripts={extraScripts}
|
|
/>
|
|
<body className="ps-main">
|
|
|
|
<Background />
|
|
|
|
<Homelink />
|
|
|
|
<main className="ps-main--page ps-page">
|
|
<section
|
|
lang="en"
|
|
id="en"
|
|
className="ps-page--section"
|
|
>
|
|
<a
|
|
className="ps-page--section-link"
|
|
href="#de"
|
|
>Deutsche übersetzung unten</a>
|
|
|
|
<div
|
|
dangerouslySetInnerHTML={{ __html: md(content.en) }}
|
|
className="ps-page--section-contents"
|
|
></div>
|
|
|
|
{showHakkenDates ? <HakkenDates lang="en" /> : null}
|
|
</section>
|
|
|
|
<section
|
|
lang="de"
|
|
id="de"
|
|
className="ps-page--section"
|
|
>
|
|
<a
|
|
className="ps-page--section-link"
|
|
href="#en"
|
|
>English translation above</a>
|
|
|
|
<div
|
|
dangerouslySetInnerHTML={{ __html: md(content.de) }}
|
|
className="ps-page--section-contents"
|
|
></div>
|
|
|
|
{showHakkenDates ? <HakkenDates lang="de" /> : null}
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|
|
</>;
|