Skip to content

Commit

Permalink
Docs: not found page (#1476)
Browse files Browse the repository at this point in the history
* remove unused imports

* add not found page
  • Loading branch information
SutuSebastian authored Aug 26, 2024
1 parent e204ee4 commit a044264
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 0 additions & 2 deletions apps/web/app/docs/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { allDocs, type Doc } from "contentlayer/generated";
import { Footer } from "flowbite-react";
import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { notFound } from "next/navigation";
import Markdown from "react-markdown";
Expand Down
17 changes: 17 additions & 0 deletions apps/web/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { HomeNavbar } from "~/components/homepage";
import { MainFooter } from "~/components/main-footer";

export default function NotFoundPage() {
return (
<div className="relative flex min-h-screen flex-col">
<HomeNavbar />
<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">
<h1 className="mb-4 text-4xl font-extrabold text-primary-600">404 - Page Not Found</h1>
<p className="text-gray-500 md:text-xl dark:text-gray-400">
Whoops! That page doesn’t exist. But do not fret, check out our other resources to get started.
</p>
</div>
<MainFooter />
</div>
);
}

0 comments on commit a044264

Please sign in to comment.