feat: add 404 page (#145)
This commit is contained in:
16
apps/nextjs/src/app/[locale]/manage/[...not-found]/page.tsx
Normal file
16
apps/nextjs/src/app/[locale]/manage/[...not-found]/page.tsx
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
import { getScopedI18n } from "@homarr/translation/server";
|
||||||
|
import { Center, Stack, Text, Title } from "@homarr/ui";
|
||||||
|
|
||||||
|
export default async function NotFound() {
|
||||||
|
const t = await getScopedI18n("management.notFound");
|
||||||
|
return (
|
||||||
|
<Center h="100%">
|
||||||
|
<Stack align="center">
|
||||||
|
<Title order={1} tt="uppercase">
|
||||||
|
{t("title")}
|
||||||
|
</Title>
|
||||||
|
<Text>{t("text")}</Text>
|
||||||
|
</Stack>
|
||||||
|
</Center>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -350,6 +350,10 @@ export default {
|
|||||||
afternoon: "Good afternoon, {username}",
|
afternoon: "Good afternoon, {username}",
|
||||||
evening: "Good evening, {username}",
|
evening: "Good evening, {username}",
|
||||||
},
|
},
|
||||||
|
notFound: {
|
||||||
|
title: "Not Found",
|
||||||
|
text: "Could not find requested resource",
|
||||||
|
},
|
||||||
navbar: {
|
navbar: {
|
||||||
items: {
|
items: {
|
||||||
home: "Home",
|
home: "Home",
|
||||||
|
|||||||
Reference in New Issue
Block a user