diff --git a/Frontend/src/App.jsx b/Frontend/src/App.jsx index 059a4db..ab9345c 100644 --- a/Frontend/src/App.jsx +++ b/Frontend/src/App.jsx @@ -1,12 +1,13 @@ // import React from 'react'; -import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; -import Header from './components/Header'; -import Home from './components/Home'; -import Appointments from './components/Appointments'; -import Patients from './components/Patients'; -import Doctors from './components/Doctors'; -import Admin from './components/Admin'; -import Footer from './components/Footer'; +import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import Header from "./components/Header"; +import Home from "./components/Home"; +import Appointments from "./components/Appointments"; +import Patients from "./components/Patients"; +import Doctors from "./components/Doctors"; +import Admin from "./components/Admin"; +import Footer from "./components/Footer"; +import NotFound from "./components/NotFound"; function App() { return ( @@ -20,6 +21,7 @@ function App() { } /> } /> } /> + } /> @@ -28,5 +30,4 @@ function App() { ); } - export default App; diff --git a/Frontend/src/components/NotFound.jsx b/Frontend/src/components/NotFound.jsx new file mode 100644 index 0000000..3b1f72f --- /dev/null +++ b/Frontend/src/components/NotFound.jsx @@ -0,0 +1,31 @@ +import { Link } from "react-router-dom"; + +const NotFound = () => { + return ( + + + + + 404 + + + {"Something's missing."} + + + { + " Sorry, we can't find that page. You'll find lots to explore on the home page." + } + + + Back to Homepage + + + + + ); +}; + +export default NotFound;
+ {"Something's missing."} +
+ { + " Sorry, we can't find that page. You'll find lots to explore on the home page." + } +