Skip to content

Commit

Permalink
Merge branch 'MoazamAli45-MoazamAli45'
Browse files Browse the repository at this point in the history
  • Loading branch information
yazdanhaider committed Oct 15, 2024
2 parents e1896db + ec19192 commit 066fd0b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand All @@ -20,6 +21,7 @@ function App() {
<Route path="/patients" element={<Patients />} />
<Route path="/doctors" element={<Doctors />} />
<Route path="/admin" element={<Admin />} />
<Route path="*" element={<NotFound />} />
</Routes>
</main>
<Footer />
Expand All @@ -28,5 +30,4 @@ function App() {
);
}


export default App;
31 changes: 31 additions & 0 deletions Frontend/src/components/NotFound.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { Link } from "react-router-dom";

const NotFound = () => {
return (
<section className="bg-transparent flex items-center justify-center h-full">
<div className="py-8 px-4 mx-auto max-w-screen-xl lg:py-16 lg:px-6">
<div className="mx-auto max-w-screen-sm text-center">
<h1 className="mb-4 text-7xl tracking-tight font-extrabold lg:text-9xl text-green-500">
404
</h1>
<p className="mb-4 text-3xl tracking-tight font-bold text-gray-900 md:text-4xl">
{"Something's missing."}
</p>
<p className="mb-4 text-lg font-light text-gray-500">
{
" Sorry, we can't find that page. You'll find lots to explore on the home page."
}
</p>
<Link
to={"/"}
className="inline-flex text-white bg-gradient-to-r from-green-500 to-green-700 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center my-4"
>
Back to Homepage
</Link>
</div>
</div>
</section>
);
};

export default NotFound;

0 comments on commit 066fd0b

Please sign in to comment.