-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial
not-found
page + design component
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
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 Footer from "@/components/layout/footer"; | ||
import { buttonVariants } from "@/ui/button"; | ||
import ExternalLink from "@/ui/external-link"; | ||
import { ArrowUpRight, HomeIcon } from "lucide-react"; | ||
import { headers } from "next/headers"; | ||
import Link from "next/link"; | ||
|
||
const NotFoundPage = async () => { | ||
const headersList = headers(); | ||
const domain = headersList.get("host"); | ||
return ( | ||
<> | ||
<div className="mx-auto max-w-screen-xl px-4 py-8 lg:py-16"> | ||
<div className="mx-auto max-w-screen-sm text-center"> | ||
<h1 className="mb-4 font-mono text-6xl font-bold tracking-tight lg:text-7xl"> | ||
404 | ||
</h1> | ||
<p className="mb-4 text-3xl font-medium tracking-tight text-gray-900 dark:text-white md:text-4xl"> | ||
Page not found | ||
</p> | ||
<p className="mb-4 font-mono text-sm font-light text-gray-500 dark:text-gray-400"> | ||
{`The page you're looking for doesn't exist on ${domain}.`} | ||
</p> | ||
<div className="flex items-center justify-center space-x-2"> | ||
<Link className={buttonVariants({ variant: "outline" })} href="/"> | ||
<HomeIcon size={18} /> | ||
<span>Go back home</span> | ||
</Link> | ||
<ExternalLink | ||
className={buttonVariants({ variant: "outline" })} | ||
href="https://github.com/pheralb/slug/issues/new/choose" | ||
> | ||
<span>Create issue</span> | ||
<ArrowUpRight size={18} /> | ||
</ExternalLink> | ||
</div> | ||
</div> | ||
</div> | ||
<Footer className="fixed bottom-0 mt-4 py-4" /> | ||
</> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; |