feat: Add custom 404 not found page

This commit is contained in:
2026-07-09 13:19:41 +02:00
parent ef905fb30b
commit 57fe6dc9ac
3 changed files with 21 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { Typography } from "@mui/joy";
import { useTranslation } from "react-i18next";
export const NotFound = () => {
const { t } = useTranslation();
return (
<div className={"flex flex-col items-center gap-2"}>
<Typography color={"primary"} level={"h1"}>
{t("not-found-header")}
</Typography>
<Typography className={"text-slate-900"} level={"body-lg"}>
{t("not-found-body")}
</Typography>
</div>
);
};
@@ -58,6 +58,8 @@
"success": "Erfolg", "success": "Erfolg",
"submit": "Absenden", "submit": "Absenden",
"logout-success-text": "Logout erfolgreich!", "logout-success-text": "Logout erfolgreich!",
"not-found-header": "404 - Nicht gefunden",
"not-found-body": "Die Seite nach der du gesucht hast, gibt es nicht.",
"SU005": "Das Passwort wurde erfolgreich geändert!", "SU005": "Das Passwort wurde erfolgreich geändert!",
"SE001": "Die Einstellungen wurden erfolgreich geändert!", "SE001": "Die Einstellungen wurden erfolgreich geändert!",
"EG001": "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.", "EG001": "Ein unerwarteter Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.",
@@ -58,6 +58,8 @@
"success": "Success", "success": "Success",
"submit": "Submit", "submit": "Submit",
"logout-success-text": "Logout successful!", "logout-success-text": "Logout successful!",
"not-found-header": "404 - Not found",
"not-found-body": "The page you were looking for, does not exist.",
"SU005": "Your password is updated successfully!", "SU005": "Your password is updated successfully!",
"SE001": "The settings are updated successfully!", "SE001": "The settings are updated successfully!",
"EG001": "An unexpected error occurred. Please try again later.", "EG001": "An unexpected error occurred. Please try again later.",