Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
import Link from "next/link";
/**
* Next.js's global 404 page, also reused by `pages/view/**` to render blocked
* or expired links.
*
* The label props exist so the viewer can hand in translated copy (see
* `components/view/viewer-not-found.tsx`). Next.js renders this page itself for
* genuine 404s, where no translation context exists, so every prop falls back
* to English.
*/
export default function NotFound({
message,
eyebrow = "404 error",
title = "Page not found.",
homeLabel = "Go back home",
}: {
message?: string;
eyebrow?: string;
title?: string;
homeLabel?: string;
}) {
return (
<>
<div className="flex min-h-screen flex-col pb-12 pt-16">
<main className="mx-auto flex w-full max-w-7xl flex-grow flex-col justify-center px-4 sm:px-6 lg:px-8">
<div className="py-16">
<div className="text-center">
<p className="text-sm font-semibold uppercase tracking-wide text-indigo-600">
{eyebrow}
</p>
<h1 className="mt-2 text-4xl font-extrabold tracking-tight text-slate-950 dark:text-gray-100 sm:text-5xl">
{title}
</h1>
<p className="mt-2 text-base text-gray-600">
{message ||
"Sorry, we couldn’t find the page you’re looking for."}
</p>
<div className="mt-6">
<Link
href="/"
className="text-base font-medium text-indigo-600 hover:text-indigo-500"
>
{homeLabel} <span aria-hidden="true"> →</span>
</Link>
</div>
</div>
</div>
</main>
</div>
</>
);
}