add 404 page. fixes #19

This commit is contained in:
Surjith S M
2023-04-12 20:28:57 +05:30
parent 45eb2649cf
commit 90c348d20b
2 changed files with 21 additions and 1 deletions

View File

@@ -9,9 +9,10 @@ const menuitems = [
title: "Features",
path: "#",
children: [
{ title: "Action", path: "#" },
{ title: "Action", path: "/" },
{ title: "Another action", path: "#" },
{ title: "Dropdown Submenu", path: "#" },
{ title: "404 Page", path: "/404" },
],
},
{

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

@@ -0,0 +1,19 @@
---
import { Icon } from "astro-icon";
import Layout from "@layouts/Layout.astro";
import Container from "@components/container.astro";
import Sectionhead from "@components/sectionhead.astro";
import Button from "@components/ui/button.astro";
import Contactform from "@components/contactform.astro";
---
<Layout title="404 Not Found">
<Container>
<div class="min-h-[calc(100vh-16rem)] flex items-center justify-center">
<div class="mt-16 text-center">
<h1 class="text-4xl lg:text-5xl font-bold lg:tracking-tight">404</h1>
<p class="text-lg mt-4 text-slate-600">Page not found.</p>
</div>
</div>
</Container>
</Layout>