Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: not found page #1476

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>

Check warning on line 9 in apps/web/app/not-found.tsx

View workflow job for this annotation

GitHub Actions / 🕵 Lint

Classname 'text-primary-600' is not a Tailwind CSS class!
<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>
);
}
Loading