forked from pub-solar/pub.solar
Benjamin Yule Bädorf
e6279896d6
* Separate german and english language pages * Add a services page with details per service * Move hakken dates into the same container as the text * Introductory text on the homepage
56 lines
1.3 KiB
TypeScript
56 lines
1.3 KiB
TypeScript
import { md } from '../../filters.ts';
|
|
import Head from '../Head.tsx';
|
|
import Background from '../Background.tsx';
|
|
import Homelink from '../Homelink.tsx';
|
|
import Langlink from '../Langlink.tsx';
|
|
import HakkenDates from '../HakkenDates.tsx';
|
|
import Services from '../Services.tsx';
|
|
|
|
export default ({
|
|
title,
|
|
content,
|
|
|
|
language,
|
|
otherLang,
|
|
baseURL,
|
|
theme,
|
|
extraStylesheets,
|
|
extraScripts,
|
|
cacheBust,
|
|
|
|
showHakkenDates,
|
|
hakken,
|
|
|
|
showServices,
|
|
services,
|
|
}) => <>
|
|
<html lang={language.slug}>
|
|
<Head
|
|
title={title}
|
|
theme={theme}
|
|
otherLang={otherLang}
|
|
baseURL={baseURL}
|
|
extraStylesheets={extraStylesheets}
|
|
cacheBust={cacheBust}
|
|
extraScripts={[...(extraScripts || []), '/scripts/copy-code.js']}
|
|
/>
|
|
<body className="ps-main">
|
|
|
|
<Background />
|
|
|
|
<Homelink />
|
|
|
|
<Langlink otherLang={otherLang} baseURL={baseURL} />
|
|
|
|
<main className="ps-main--page ps-page">
|
|
<div className="ps-page--contents">
|
|
<section dangerouslySetInnerHTML={{ __html: md(content) }}></section>
|
|
{showServices ? <Services lang="en" language={language} data={services} /> : null}
|
|
{showHakkenDates ? <HakkenDates lang="en" data={hakken} /> : null}
|
|
</div>
|
|
|
|
</main>
|
|
</body>
|
|
</html>
|
|
</>;
|