From cd9da6e22fb4fc4aa1a4a990916f12d3fe04cee6 Mon Sep 17 00:00:00 2001 From: Artemis <75265624+artiemis@users.noreply.github.com> Date: Tue, 7 Mar 2023 14:10:33 +0100 Subject: [PATCH] add 404 page (#1) --- src/layouts/Layout.astro | 10 +++++++++- src/pages/404.astro | 14 ++++++++++++++ src/pages/index.astro | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/pages/404.astro diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0ad6d42..ca6d92b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,3 +1,11 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + @@ -22,7 +30,7 @@ /> - artie + {title} diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..c105ca4 --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,14 @@ +--- +import Heart from "../components/Heart.astro"; +import Prompt from "../components/Prompt.astro"; +import Layout from "../layouts/Layout.astro"; +--- + + + +

+ 404 +

+ Home + +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 2f5ea80..42731db 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -6,7 +6,7 @@ import Icons from "../components/Icons.astro"; import Heart from "../components/Heart.astro"; --- - +