From e11dcdf071ece004b00035545ed213dfb73789c8 Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk Date: Sat, 15 Feb 2025 00:33:10 +0100 Subject: [PATCH] feat: add better loading and 404 page --- src/app/[locale]/loading.tsx | 2 +- src/app/[locale]/not-found.tsx | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/[locale]/loading.tsx b/src/app/[locale]/loading.tsx index 3d2cd5a..6235b8a 100644 --- a/src/app/[locale]/loading.tsx +++ b/src/app/[locale]/loading.tsx @@ -5,7 +5,7 @@ import Image from "next/image" export default function Loading() { return (
-
+
Loading...
diff --git a/src/app/[locale]/not-found.tsx b/src/app/[locale]/not-found.tsx index c363b3b..ad040e8 100644 --- a/src/app/[locale]/not-found.tsx +++ b/src/app/[locale]/not-found.tsx @@ -1,5 +1,21 @@ +"use client" +import { jgs7 } from "@/fonts" +import Image from "next/image" export default function NotFound() { - return
Not Found
+ return ( +
+
+
+ 404 + Page not found +
+
+ Loading... +
+
+
+ ) } +