pub.solar/_includes/layouts/error.tsx

46 lines
931 B
TypeScript
Raw Normal View History

2023-10-27 20:41:34 +00:00
import { md } from '../../filters.ts';
import Head from '../Head.tsx';
import Background from '../Background.tsx';
export default ({
title,
content,
code,
language,
otherLang,
baseURL,
2023-10-27 20:41:34 +00:00
theme,
extraStylesheets,
extraScripts,
cacheBust,
}) => <>
<html lang={language.slug}>
2023-10-27 20:41:34 +00:00
<Head
title={title}
theme={theme}
otherLang={otherLang}
baseURL={baseURL}
2023-10-27 20:41:34 +00:00
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>
</>;