added 404

This commit is contained in:
2024-03-30 20:22:57 +01:00
parent e5020b267f
commit 84f645128c
2 changed files with 31 additions and 0 deletions

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

@@ -0,0 +1,23 @@
---
import Layout from "../layouts/Layout.astro";
import { Icon } from "astro-icon/components";
const unsortedDocs = await Astro.glob("./docs/*/index.{md,mdx}");
const docs = unsortedDocs.sort(
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date)
);
---
<Layout
title="ERROR 404"
description="This is my personal website with my projects, docs and other useful stuff."
>
<main>
<div class="center">
<h1 style="text-align: center;">ERROR 404</h1>
<br/>
<p style="font-size: 22px;">The page either never existed or was renamed.<br/>
Try something in the navabar above!</p>
</div>
</main>
</Layout>

View File

@@ -181,3 +181,11 @@ button {
transform: translateY(1px);
}
}
.center {
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}