Files

35 lines
1.2 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Link from "next/link";
export default function NotFound({ message }: { message?: 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">
404 error
</p>
<h1 className="mt-2 text-4xl font-extrabold tracking-tight text-slate-950 dark:text-gray-100 sm:text-5xl">
Page not found.
</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"
>
Go back home <span aria-hidden="true"> &rarr;</span>
</Link>
</div>
</div>
</div>
</main>
</div>
</>
);
}