Files
upstream-tldraw/apps/docs/app/not-found.tsx
upstream-mirror a774ac673a
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
snapshot of https://github.com/tldraw/tldraw.git (main, 2026-09-23; blobs > 131072B omitted)
2026-09-23 16:12:52 +05:00

73 lines
2.1 KiB
TypeScript

/* eslint-disable react/no-unescaped-entities */
'use client'
import { RocketLaunchIcon } from '@heroicons/react/16/solid'
import { AcademicCapIcon, BookOpenIcon, NewspaperIcon, PlayIcon } from '@heroicons/react/20/solid'
import Image from 'next/image'
import Link from 'next/link'
import { DiscordIcon } from '@/components/common/icon/discord'
import { DocsSearchBar } from '@/components/docs/docs-search-bar'
import { NavigationLink } from '@/components/navigation/link'
import Handwritten404 from '@/public/images/404.svg'
const links = [
{
caption: 'Quick start',
icon: RocketLaunchIcon,
href: '/quick-start',
},
{
caption: 'Guides',
icon: AcademicCapIcon,
href: '/docs/editor',
},
{
caption: 'Reference',
icon: BookOpenIcon,
href: '/reference/editor/Editor',
},
{
caption: 'Examples',
icon: PlayIcon,
href: '/examples/basic',
},
{
caption: 'Blog',
icon: NewspaperIcon,
href: '/blog',
},
]
export default function NotFound() {
return (
<div className="min-h-screen">
<DocsSearchBar />
<section className="flex flex-col items-center justify-center py-16 md:py-32 px-5">
<Image src={Handwritten404} alt="404 - Page not found" className="w-64" />
<h1 className="font-hand text-black dark:text-white text-2xl">page not found :(</h1>
<p className="mt-8 max-w-md text-center text-balance">
There's nothing here. You may want to look at these pages to find what you're looking for:
</p>
<ul className="mt-8 flex flex-wrap justify-center gap-8">
{links.map((item, index) => (
<li key={index}>
<NavigationLink {...item} active={false} />
</li>
))}
</ul>
<p className="mt-32 max-w-md text-center text-balance text-sm">
You can always ask for help in our welcoming community on{' '}
<Link
href="https://discord.tldraw.com/?utm_source=docs&utm_medium=organic&utm_campaign=sociallink"
className="text-blue-500 hover:text-blue-600 dark:hover:text-blue-400"
>
<DiscordIcon className="h-3.5 mb-0.5 ml-0.5 inline" />
<span> Discord</span>
</Link>
.
</p>
</section>
</div>
)
}