diff options
| author | Bertrand Yuan <bert.yuan@outlook.com> | 2025-12-16 00:25:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-16 00:25:04 +0800 |
| commit | 39c83fbb69ef06d2d56790d75abc254ba7e34394 (patch) | |
| tree | dd006593448c3500bdcb414af3b4656f7a7683d4 /src/app/not-found.tsx | |
| parent | 48b07bc308a35734a6a7a305c8fdccbfa47de7d8 (diff) | |
| parent | 785371bb3eccca455e5ce5fccbe9b6e3752a03f6 (diff) | |
Merge pull request #1 from bertyuan/feat-introduce-payloadv1.0
Feat: introduce payload
Diffstat (limited to 'src/app/not-found.tsx')
| -rw-r--r-- | src/app/not-found.tsx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/app/not-found.tsx b/src/app/not-found.tsx deleted file mode 100644 index ecec57a..0000000 --- a/src/app/not-found.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { Header } from '@/components/sections/header'; -import { createMetadata } from '@/lib/metadata'; -import { HomeLayout } from 'fumadocs-ui/layouts/home'; -import { getLinks } from 'fumadocs-ui/layouts/shared'; -import type { Metadata } from 'next'; -import { baseOptions, linkItems } from './layout.config'; - -export default function NotFound() { - return ( - <HomeLayout - {...baseOptions} - links={linkItems} - nav={{ - component: ( - <Header - finalLinks={getLinks(linkItems, baseOptions.githubUrl)} - {...baseOptions} - /> - ), - }} - className='pt-0' - > - <main className='flex flex-1 px-4 sm:px-8 md:px-12 lg:px-16 2xl:px-24'> - <div className='container flex min-h-full flex-1 items-center justify-center border-border/70 border-x border-b border-dashed dark:border-border'> - <div className='flex flex-auto flex-col items-center justify-center px-4 text-center sm:flex-row'> - <h1 className='border-border font-extrabold text-2xl text-foreground tracking-tight sm:mr-6 sm:border-r sm:pr-6 sm:text-3xl'> - 404 - </h1> - <h2 className='mt-2 text-muted-foreground sm:mt-0'> - This page could not be found. - </h2> - </div> - </div> - </main> - </HomeLayout> - ); -} - -export async function generateMetadata(props: { - params: Promise<{ slug?: string[] }>; -}): Promise<Metadata> { - const params = await props.params; - const description = 'The page you are looking for could not be found.'; - - return createMetadata({ - title: 'Not Found', - description, - }); -} |
