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