Files
EpicNext-Cms/src/app/not-found.tsx
T
SimoandCursor 1f552c2822
Local Build and Deploy / deploy (push) Successful in 1m31s
Polish public error and 404 screens with brand atmosphere.
Shared ErrorScreen composition, i18n for en/nl/it, Sentry on route errors, and a self-contained global-error fallback that matches the hotel gold theme.

Co-authored-by: Cursor <[email protected]>
2026-07-18 20:00:04 +02:00

30 lines
744 B
TypeScript

import { Home, Newspaper } from "lucide-react";
import Link from "next/link";
import { getTranslations } from "next-intl/server";
import { ErrorScreen } from "@/components/error-screen";
export default async function NotFound() {
const t = await getTranslations("pages.notFound");
return (
<ErrorScreen
code={t("code")}
title={t("title")}
subtitle={t("subtitle")}
body={t("body")}
actions={
<>
<Link className="btn btn-primary" href="/">
<Home className="error-screen-btn-icon" aria-hidden />
{t("backHome")}
</Link>
<Link className="btn btn-outline" href="/news">
<Newspaper className="error-screen-btn-icon" aria-hidden />
{t("latestNews")}
</Link>
</>
}
/>
);
}