feat: add 404 error page

This commit is contained in:
Stefan Imhoff
2023-04-07 17:09:36 +02:00
parent 8632a5cfb2
commit f1d7154f2b
2 changed files with 36 additions and 0 deletions

33
src/pages/404.astro Normal file
View File

@@ -0,0 +1,33 @@
---
import GridLayout from '../layouts/GridLayout.astro';
import PageTitle from '../components/PageTitle.astro';
import { Verse } from '../components';
import { Content as Haiku } from '../content/404/haiku.mdx';
import { mapping } from '../mdx-components';
---
<GridLayout title="Error 404" grid="wide" class="grid" innerGrid>
<PageTitle grid="wide" innerGrid>Not Found.</PageTitle>
<Verse
class="z-10 col-start-1 col-end-17 row-start-2 text-3 italic mbe-10 mbs-10 md:col-start-3 md:col-end-9"
>
<Haiku components={mapping} />
</Verse>
<span
aria-hidden="true"
class="col-start-10 col-end-13 row-start-1 row-end-3 text-9 font-black text-black/[0.05] dark:text-white/[0.05]"
role="img"
>
404
</span>
</GridLayout>
<style>
span {
line-height: 0.6;
user-select: none;
writing-mode: vertical-lr;
}
</style>