Skip to content

Commit

Permalink
doc: 404
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 30, 2024
1 parent 7ad91b5 commit 25356b8
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ const withFumaMDX = createNextDocsMDX({
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
redirects: async () => [
{
source: '/demos/:slug*',
destination: '/playground/:slug*',
permanent: true
}
],
images: {
remotePatterns: [
{
Expand Down
46 changes: 46 additions & 0 deletions packages/docs/src/app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { Button } from '../components/ui/button'
import PageLayout from './(pages)/layout'

export default function NotFoundPage() {
return (
<PageLayout>
<main className="container relative flex h-[75vh] items-center">
<NotFoundComponent />
</main>
</PageLayout>
)
}

/**
* v0 by Vercel.
* @see https://v0.dev/t/4RlmIQ6YYxD
* Documentation: https://v0.dev/docs#integrating-generated-code-into-your-nextjs-app
*/
import Link from 'next/link'

export function NotFoundComponent() {
return (
<section className="w-full py-12 md:py-24 lg:py-32">
<div className="container px-4 md:px-6">
<div className="flex flex-col items-center justify-center space-y-4 text-center">
<div className="relative space-y-2">
<div className="absolute -top-12 left-0 z-0 flex h-full w-full items-end justify-center">
<span className="select-none text-9xl font-bold text-zinc-200 opacity-20 dark:text-zinc-800">
404
</span>
</div>
<h1 className="relative z-10 text-3xl font-bold tracking-tighter sm:text-5xl">
Page Not Found
</h1>
<p className="relative z-10 max-w-[600px] text-zinc-500 dark:text-zinc-400 md:text-xl">
The page you are looking for does not exist.
</p>
</div>
<Button asChild>
<Link href="/">Return to Home</Link>
</Button>
</div>
</div>
</section>
)
}

0 comments on commit 25356b8

Please sign in to comment.