Skip to content

Commit

Permalink
Merge pull request #241 from RamakrushnaBiswal/ram-dev
Browse files Browse the repository at this point in the history
404 not found page added
  • Loading branch information
Harshil-Jani authored Jun 6, 2024
2 parents f2fb401 + a6f5d90 commit 86e99a6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file added public/assets/404.webp
Binary file not shown.
10 changes: 10 additions & 0 deletions src/Pages/NotFound.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Link } from "react-router-dom";

export default function NotFound() {
return (
<div>
<img src="./assets/404.webp" alt="404" className="w-1/3 mx-auto " />
<Link to="/" className="text-white bg-green-500 mx-auto text-2xl justify-center flex items-center px-4 py-3 rounded-2xl w-1/6">Go Home</Link>
</div>
);
}
2 changes: 2 additions & 0 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import Guidelines from "./Pages/Guidelines.jsx";
import Services from "./Pages/Services.jsx";
import Faq from "./Pages/Faq.jsx";
import FeedbackPage from "./Pages/FeedbackForm.jsx"; // Import FeedbackPage
import NotFound from "./Pages/NotFound.jsx";
import Nurses from "./Pages/Nurses.jsx";
import Patients from "./Pages/Patients.jsx";

Expand All @@ -52,6 +53,7 @@ const router = createBrowserRouter(
<Route path="findpatients" element={<Patients/>}/>
<Route path="faq" element={<Faq/>}/>
<Route path="feedback" element={<FeedbackPage />} /> {/* Feedback route */}
<Route path="*" element={<NotFound />} />
</Route>
)
);
Expand Down

0 comments on commit 86e99a6

Please sign in to comment.