pub.solar/_includes/layouts/homepage.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

43 lines
982 B
TypeScript

import Head from '../Head.tsx';
import Background from '../Background.tsx';
export default ({
title,
content,
links,
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">
{links.map(({ href, title, openInNewTab }) =>
<a
href={href}
target={openInNewTab ? '_blank' : '_self'}
className="ps-page--link"
key={href}
>{title}</a>
)}
<footer className="ps-footer">
<a
href="https://greenbaum.cloud"
className="ps-page--link ps-footer--link"
>climate-neutral hosting by Greenbaum Cloud</a>
</footer>
</main>
</body>
</html>
</>;