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

25 lines
694 B
TypeScript
Raw Normal View History

2024-07-24 12:58:29 +02:00
import { Link } from "@repo/ui/design/Link"
2024-07-24 12:35:33 +02:00
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 (
2024-07-24 12:58:29 +02:00
<MainLayout className="items-center justify-center text-center">
<h1 className="text-3xl font-semibold">
2024-07-24 12:35:33 +02:00
{t("errors.error")} 404 - {t("errors.not-found")}
</h1>
<p className="mb-4 mt-2">
{t("errors.page-doesnt-exist")}{" "}
2024-07-24 12:58:29 +02:00
<Link href="/">{t("errors.return-to-home-page")}</Link>
2024-07-24 12:35:33 +02:00
</p>
</MainLayout>
)
}
export default NotFound