feat: maintenance page #15
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,
|
||||
extraScripts,
|
||||
cacheBust,
|
||||
|
||||
showHakkenDates,
|
||||
}) => <>
|
||||
<html>
|
||||
<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