pub.solar/_includes/layouts/error.tsx
Benjamin Bädorf 1ffa938248
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
feat: maintenance page
2023-10-27 22:41:34 +02:00

41 lines
822 B
TypeScript

import { md } from '../../filters.ts';
import Head from '../Head.tsx';
import Background from '../Background.tsx';
export default ({
title,
content,
code,
theme,
extraStylesheets,
extraScripts,
cacheBust,
}) => <>
<html>
<Head
title={title}
theme={theme}
extraStylesheets={extraStylesheets}
cacheBust={cacheBust}
extraScripts={extraScripts}
/>
<body className="ps-main">
<Background />
<main className="ps-main--page ps-page ps-page_home">
<section
lang="en"
id="en"
className="ps-page--section"
>
<div
dangerouslySetInnerHTML={{ __html: md(content) }}
className="ps-page--section-contents"
></div>
</section>
</main>
</body>
</html>
</>;