forked from pub-solar/pub.solar
feat: maintenance page
This commit is contained in:
parent
35e59fa306
commit
1ffa938248
40
_includes/layouts/error.tsx
Normal file
40
_includes/layouts/error.tsx
Normal 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>
|
||||||
|
</>;
|
|
@ -10,8 +10,6 @@ export default ({
|
||||||
extraStylesheets,
|
extraStylesheets,
|
||||||
extraScripts,
|
extraScripts,
|
||||||
cacheBust,
|
cacheBust,
|
||||||
|
|
||||||
showHakkenDates,
|
|
||||||
}) => <>
|
}) => <>
|
||||||
<html>
|
<html>
|
||||||
<Head
|
<Head
|
||||||
|
|
16
maintenance.yml
Normal file
16
maintenance.yml
Normal 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
|
Loading…
Reference in a new issue