implemented error and updated todo to use error

Signed-off-by: Ash Entwisle <ash.entwisle@protonmail.com>
pull/1/head
Ash Entwisle 2024-02-20 14:35:26 +00:00
parent fb678c0211
commit f9e074ea18
No known key found for this signature in database
GPG Key ID: 0E3CBB6B4BE9FE33
2 changed files with 14 additions and 17 deletions

View File

@ -1,20 +1,8 @@
---
// import Error from "../components/Error.astro"; //! TODO: sort this out
import Boilerplate from "./Boilerplate.astro";
import Error from "../components/Error.astro";
const keywords: string[] = [];
import Error from "./Error.astro";
---
<Boilerplate
title="502"
description="Page not yet avaliable"
keywords={keywords}
>
<Error code="502">
<p class="text-xl p-250">
Sorry, the page `<code>{Astro.url}</code>` does not yet exist, but it issoon to be added.
Click <a href="/">here</a> to go back to the homepage.
</p>
</Error>
</Boilerplate>
<Error code="501" title="Page not Implemented">
Sorry, the page `<code>{Astro.url}</code>` is currently under construction.
Click <a href="/">here</a> to go back to the homepage.
</Error>

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

@ -0,0 +1,9 @@
---
import Error from "../layouts/Error.astro"
---
<Error code="404" title="Page Not Found">
Sorry, the page `<code>{Astro.url}</code>` does not exist,
Click <a href="/">here</a> to go back to the homepage.
</Error>