2025-08-04 17:45:44 +02:00
|
|
|
import Link from "next/link";
|
|
|
|
|
import { useRouter } from "next/router";
|
|
|
|
|
import { QuestionMarkCircleIcon } from "~/components/IconComponents";
|
2025-08-28 18:27:07 +02:00
|
|
|
import { useTranslation } from "~/providers/I18nProvider";
|
2025-08-04 17:45:44 +02:00
|
|
|
export default function Custom404() {
|
2025-08-28 18:27:07 +02:00
|
|
|
const router = useRouter();
|
|
|
|
|
const { t } = useTranslation();
|
|
|
|
|
return (
|
|
|
|
|
<main>
|
2026-03-09 16:00:54 +01:00
|
|
|
<div className="mx-auto flex h-screen max-w-7xl items-center justify-start px-4 md:px-8">
|
2025-08-28 18:27:07 +02:00
|
|
|
<div className="mx-auto max-w-lg space-y-3 text-center">
|
|
|
|
|
<QuestionMarkCircleIcon className="mx-auto size-20 text-indigo-600" />
|
2025-10-10 16:18:43 +02:00
|
|
|
<h3 className="font-semibold text-4xl text-accent-foreground sm:text-5xl">
|
2025-08-28 18:27:07 +02:00
|
|
|
{t[404].titolo}
|
|
|
|
|
</h3>
|
2025-12-15 17:07:08 +01:00
|
|
|
<p className="text-muted-foreground">{t[404].sottotitolo}</p>
|
2025-08-28 18:27:07 +02:00
|
|
|
<div className="flex flex-wrap items-center justify-center gap-3">
|
|
|
|
|
<button
|
2025-08-29 16:18:32 +02:00
|
|
|
className="block rounded-lg bg-indigo-600 px-4 py-2 font-medium text-white duration-150 hover:bg-indigo-500 active:bg-indigo-700"
|
2025-08-28 18:27:07 +02:00
|
|
|
onClick={() => {
|
|
|
|
|
router.back();
|
|
|
|
|
}}
|
2025-08-29 16:18:32 +02:00
|
|
|
type="button"
|
2025-08-28 18:27:07 +02:00
|
|
|
>
|
|
|
|
|
{t[404].CTA}
|
|
|
|
|
</button>
|
|
|
|
|
<Link
|
2025-12-15 17:07:08 +01:00
|
|
|
className="block rounded-lg border px-4 py-2 font-medium duration-150 hover:bg-neutral-50 active:bg-neutral-100"
|
2025-08-29 16:18:32 +02:00
|
|
|
href="/"
|
2025-08-28 18:27:07 +02:00
|
|
|
>
|
|
|
|
|
{t[404].home}
|
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
);
|
2025-08-04 17:45:44 +02:00
|
|
|
}
|