This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/apps/website/app/[locale]/not-found.tsx
Théo LUDWIG bd32e067c4
All checks were successful
Chromatic / chromatic (push) Successful in 2m33s
CI / ci (push) Successful in 3m13s
CI / commitlint (push) Successful in 14s
Release / release (push) Successful in 55s
feat: initial release
2024-07-24 12:59:33 +02:00

25 lines
694 B
TypeScript

import { Link } from "@repo/ui/design/Link"
import { MainLayout } from "@repo/ui/MainLayout"
import { useTranslations } from "next-intl"
/**
* Note that `app/[locale]/[...rest]/page.tsx` is necessary for this page to render.
*/
const NotFound: React.FC = () => {
const t = useTranslations()
return (
<MainLayout className="items-center justify-center text-center">
<h1 className="text-3xl font-semibold">
{t("errors.error")} 404 - {t("errors.not-found")}
</h1>
<p className="mb-4 mt-2">
{t("errors.page-doesnt-exist")}{" "}
<Link href="/">{t("errors.return-to-home-page")}</Link>
</p>
</MainLayout>
)
}
export default NotFound