diff --git a/client/src/App.jsx b/client/src/App.jsx index 9549a86..1b93f97 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -27,6 +27,7 @@ import { useAtom } from 'jotai'; import { modeAtom } from './atom/Atom'; import ForgotPassword from './component/forgotpass'; import VerifyEmail from './component/Verify'; +import NotFound from './component/NotFound'; // Main Layout Component const Layout = ({ children, mode, setProgress, toggleMode, showAlert }) => { const location = useLocation(); // Use location inside Router @@ -123,7 +124,10 @@ function App() { } /> } /> } /> + {/* 404 Route */} + } /> + diff --git a/client/src/component/NotFound.jsx b/client/src/component/NotFound.jsx new file mode 100644 index 0000000..1df6141 --- /dev/null +++ b/client/src/component/NotFound.jsx @@ -0,0 +1,23 @@ +// src/components/NotFound.jsx + +import React from 'react'; + +const NotFound = () => { + return ( + + 404 + Oops! Page Not Found + + The page you are looking for might have been removed or is temporarily unavailable. + + + Go to Homepage + + + ); +}; + +export default NotFound;
Oops! Page Not Found
+ The page you are looking for might have been removed or is temporarily unavailable. +