Skip to content

Commit a044264

Browse files
Docs: not found page (#1476)
* remove unused imports * add not found page
1 parent e204ee4 commit a044264

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

apps/web/app/docs/[[...slug]]/page.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { allDocs, type Doc } from "contentlayer/generated";
2-
import { Footer } from "flowbite-react";
32
import type { Metadata } from "next";
4-
import Image from "next/image";
53
import Link from "next/link";
64
import { notFound } from "next/navigation";
75
import Markdown from "react-markdown";

apps/web/app/not-found.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { HomeNavbar } from "~/components/homepage";
2+
import { MainFooter } from "~/components/main-footer";
3+
4+
export default function NotFoundPage() {
5+
return (
6+
<div className="relative flex min-h-screen flex-col">
7+
<HomeNavbar />
8+
<div className="mx-auto flex max-w-screen-sm flex-1 flex-col justify-center px-4 py-8 text-center sm:py-16 lg:px-6 xl:px-0">
9+
<h1 className="mb-4 text-4xl font-extrabold text-primary-600">404 - Page Not Found</h1>
10+
<p className="text-gray-500 md:text-xl dark:text-gray-400">
11+
Whoops! That page doesn’t exist. But do not fret, check out our other resources to get started.
12+
</p>
13+
</div>
14+
<MainFooter />
15+
</div>
16+
);
17+
}

0 commit comments

Comments
 (0)