1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-14 00:03:12 +01:00
.profile/app/not-found.tsx

33 lines
812 B
TypeScript
Raw Normal View History

import Link from "next/link"
2023-08-01 18:18:16 +02:00
import { getI18n } from "@/i18n/i18n.server"
const NotFound = (): JSX.Element => {
const i18n = getI18n()
return (
<main className="flex flex-1 flex-col items-center justify-center">
<h1 className="my-6 text-4xl font-semibold">
{i18n.translate("errors.error")}{" "}
2023-08-01 18:18:16 +02:00
<span
2024-04-06 20:25:02 +02:00
className="text-primary dark:text-primary-dark"
data-cy="status-code"
2023-08-01 18:18:16 +02:00
>
404
</span>
</h1>
<p className="text-center text-lg">
{i18n.translate("errors.not-found")}{" "}
2023-08-01 18:18:16 +02:00
<Link
href="/"
2024-04-06 20:25:02 +02:00
className="text-primary hover:underline dark:text-primary-dark"
2023-08-01 18:18:16 +02:00
>
{i18n.translate("errors.return-to-home-page")}
2023-08-01 18:18:16 +02:00
</Link>
</p>
</main>
)
}
export default NotFound