diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 2789dda..ad2063a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -21,6 +21,7 @@ const router = createBrowserRouter([ element: , }, { path: '/about', element: }, + { path: '/error', element: }, ], }, ]); diff --git a/frontend/src/Navbar.tsx b/frontend/src/Navbar.tsx index cb6298a..b5b59e8 100644 --- a/frontend/src/Navbar.tsx +++ b/frontend/src/Navbar.tsx @@ -88,6 +88,9 @@ const Navbar: React.FC = ({ fontSize="text-2xl" buttonSize="w-[170px] h-12" px="px-0" + onClick={() => { + window.location.href = '/error'; + }} />
@@ -97,6 +100,9 @@ const Navbar: React.FC = ({ fontSize="text-2xl" buttonSize="w-[170px] h-12" px="px-0" + onClick={() => { + window.location.href = '/error'; + }} />
diff --git a/frontend/src/pages/Error.tsx b/frontend/src/pages/Error.tsx index 6f6b8dd..d6d23c0 100644 --- a/frontend/src/pages/Error.tsx +++ b/frontend/src/pages/Error.tsx @@ -1,5 +1,5 @@ -import { Link } from 'react-router-dom'; import ErrorImage from '../assets/tornCard.svg'; +import Button from '../library/button'; function Error() { return ( @@ -21,9 +21,13 @@ function Error() { Sorry, the page you're looking for can't be found. Please return to the Homepage!

- +