diff --git a/src/app/layout.js b/src/app/layout.js index c5ebf23..f53d693 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -5,7 +5,7 @@ import { AuthProvider } from "./context/AuthContext"; import ClientLayout from "./ClientLayout"; export const metadata = { - title: "Report Management System", + title: "PatientPro", description: "Generated by create next app", }; diff --git a/src/app/not-found.js b/src/app/not-found.js new file mode 100644 index 0000000..3f61aba --- /dev/null +++ b/src/app/not-found.js @@ -0,0 +1,66 @@ +// app/not-found.js (not in a 'page.js' file) +"use client"; // Add this since you're using client-side features + +import Link from "next/link"; +import Image from "next/image"; +import { useEffect } from "react"; + +export default function NotFound() { + useEffect(() => { + // Client-side dark mode initialization + const darkMode = JSON.parse(localStorage.getItem('darkMode')); + if (darkMode) { + document.documentElement.classList.add('dark'); + document.documentElement.classList.add('bg-gray-900'); + } + }, []); + + return ( +
+ We can't seem to find the page you are looking for! +
+ + + Back to Home Page + ++ © {new Date().getFullYear()} - TailAdmin +
+- We can't seem to find the page you are looking for! -
- - - Back to Home Page - -- © {new Date().getFullYear()} - TailAdmin -
-