feat: maintenance page #15

Merged
b12f merged 2 commits from feat/maintenance-page into main 2023-10-27 21:14:29 +00:00
3 changed files with 56 additions and 2 deletions
Showing only changes of commit 1ffa938248 - Show all commits

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