Skip to content

Commit c7ca243

Browse files
authored
feat: add 404 Page (#186)
1 parent 3a610e5 commit c7ca243

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/assets/images/404.png

1.39 MB
Loading

src/pages/404.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
import Layout from "@/layouts/Layout.astro";
3+
import { Image } from "astro:assets";
4+
import NotFoundImage from "@/assets/images/404.png";
5+
---
6+
7+
<Layout title="404 - Page Not Found" keywords={["404"]} description="The page you are looking for does not exist." canonical="/404">
8+
<section id="message" class="mt-20 text-center">
9+
<Image src={NotFoundImage} alt={"Not Found Image"} class="max-h-32 place-self-center lg:max-h-none lg:max-w-[12rem]" />
10+
<h2 class="text-4xl leading-normal font-medium lg:text-5xl lg:leading-normal">404</h2>
11+
<p class="mt-4 text-xl">
12+
Page not found. Check the URL or return to <a href="/" class="text-gray-700 underline dark:text-gray-400">home</a>.
13+
</p>
14+
</section>
15+
</Layout>

0 commit comments

Comments
 (0)