diff --git a/src/App.jsx b/src/App.jsx index 99d8d90b1..2da0e4b84 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -15,13 +15,14 @@ import VerticalTimeline from './Components/Timeline'; import Carousel from './Components/Carousel'; import Hero from './Components/Hero'; import Footer from "./Components/Footer" +import ErrorPageWithButton from './Components/ErrorPageWithButton'; const Homepage = () => { return (
- {/* Text Section between Hero and Carousel */} + {/* Text Section between Hero and Carousel */}

Welcome to Project X

@@ -51,6 +52,7 @@ function App() { } /> } /> } /> + } /> {/* } /> */} {/* } /> */} @@ -65,4 +67,4 @@ function App() { export default App; -{/*

*/ } \ No newline at end of file +{/*
*/ } diff --git a/src/Components/ErrorPageWithButton.jsx b/src/Components/ErrorPageWithButton.jsx new file mode 100644 index 000000000..d9a3f5caf --- /dev/null +++ b/src/Components/ErrorPageWithButton.jsx @@ -0,0 +1,26 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; + +const ErrorPageWithButton = () => { + const navigate = useNavigate(); + + return ( +
+

+ 404! +

+

+ Oops, Page Not Found! +

+ +
+ ); +}; + +export default ErrorPageWithButton;