feat: maintenance page
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Benjamin Bädorf 2023-10-27 22:41:34 +02:00
parent 35e59fa306
commit 1ffa938248
No known key found for this signature in database
GPG key ID: 1B7BF5B77A521346
3 changed files with 56 additions and 2 deletions

View file

@ -0,0 +1,40 @@
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>
</>;

View file

@ -10,8 +10,6 @@ export default ({
extraStylesheets,
extraScripts,
cacheBust,
showHakkenDates,
}) => <>
<html>
<Head

16
maintenance.yml Normal file
View file

@ -0,0 +1,16 @@
layout: layouts/error.tsx
title: Scheduled maintenance
content: |
# Scheduled maintenance
This service is currently undergoing scheduled maintenance.
Sorry for the inconvenience :)
Check our [status page](https://stats.uptimerobot.com/G28ByiBg8j) for more information.
Love,
the pub.solar crew