Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

feat: add 404 page (#145)

Manuel60dec6e3be68
diff --git a/apps/nextjs/src/app/[locale]/manage/[...not-found]/page.tsx b/apps/nextjs/src/app/[locale]/manage/[...not-found]/page.tsx
new file mode 100644
index 000000000..8bc3bd558
--- /dev/null
+++ b/apps/nextjs/src/app/[locale]/manage/[...not-found]/page.tsx
@@ -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>
+ );
+}
diff --git a/packages/translation/src/lang/en.ts b/packages/translation/src/lang/en.ts
index 1c1dc6417..2b1e6d38f 100644
--- a/packages/translation/src/lang/en.ts
+++ b/packages/translation/src/lang/en.ts
@@ -350,6 +350,10 @@ export default {
afternoon: "Good afternoon, {username}",
evening: "Good evening, {username}",
},
+ notFound: {
+ title: "Not Found",
+ text: "Could not find requested resource",
+ },
navbar: {
items: {
home: "Home",