-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add a not-found catch-all route
- Loading branch information
1 parent
17ce4e6
commit 059ef17
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { FaArrowRight } from "react-icons/fa6"; | ||
|
||
import Logo from "@/components/logo"; | ||
import { Button } from "@/components/ui/button"; | ||
import { cn } from "@/lib/utils"; | ||
|
||
export default async function NotFound() { | ||
return ( | ||
<> | ||
<section | ||
className={cn( | ||
"h-full min-h-[40rem] w-full", | ||
"py-8 m:py-16 lg:py-24", | ||
"relative overflow-x-hidden overflow-y-visible", | ||
"bg-dot-black/[0.2] dark:bg-dot-white/[0.2]" | ||
)} | ||
> | ||
<div | ||
className={cn( | ||
"min-h-[40rem] w-full max-w-[103rem]", | ||
"pxPage mx-auto", | ||
"flex flex-col items-center justify-center py-[7rem]" | ||
)} | ||
> | ||
<Logo className="mb-12 h-[8rem] w-[8rem]" length={128} /> | ||
<span className="mb-2">404</span> | ||
<h1 className="mb-6"> | ||
<span className="special">Page</span>{" "} | ||
<span className="special">could</span>{" "} | ||
<span className="special">not</span>{" "} | ||
<span className="special">be</span>{" "} | ||
<span className="special">found</span> | ||
</h1> | ||
<p>This page does not exist. Try starting again from the homepage.</p> | ||
<Button asChild> | ||
<a href="/">Back to Home</a> | ||
<FaArrowRight /> | ||
</Button> | ||
<div className="pointer-events-none absolute inset-0 flex items-center justify-center bg-background [mask-image:radial-gradient(ellipse_at_center,transparent_20%,black)]"></div> | ||
</div> | ||
</section> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters