diff --git a/src/pages/Error404/Error404.css b/src/pages/Error404/Error404.css new file mode 100644 index 0000000..dce8012 --- /dev/null +++ b/src/pages/Error404/Error404.css @@ -0,0 +1,20 @@ +html, body { + height: 100%; + margin: 0; + padding: 0; + background-color: #1b1c1f; + } + + #root { + height: 100%; + } + + .error-404-container { + min-height: 100%; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + color: #ffffff; + } + \ No newline at end of file diff --git a/src/pages/Error404/Error404.tsx b/src/pages/Error404/Error404.tsx new file mode 100644 index 0000000..753e7aa --- /dev/null +++ b/src/pages/Error404/Error404.tsx @@ -0,0 +1,23 @@ +import { Link } from "react-router-dom"; +import { Button } from "@mantine/core"; +import "./Error404.css"; + +const Error404 = () => { + return ( +
+

404 Not Found

+

This is not the page you are looking for

+ + + +
+ ); +}; + +export default Error404; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 113fd2c..9b235dc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,5 @@ import Landing from "./Landing/Landing"; import Login from "./Admin/Login/Login"; import AdminPage from "./Admin/AdminPage"; - -export { Landing, Login, AdminPage }; +import Error404 from "./Error404/Error404"; +export { Landing, Login, AdminPage, Error404 }; diff --git a/src/utils/Router.tsx b/src/utils/Router.tsx index a91eb71..01f2187 100644 --- a/src/utils/Router.tsx +++ b/src/utils/Router.tsx @@ -7,7 +7,7 @@ import { Route, Routes, } from "react-router-dom"; -import { AdminPage, Landing, Login } from "@/pages"; +import { AdminPage, Landing, Login, Error404 } from "@/pages"; import { mantineTheme } from "./Mantine"; import AuthProvider, { useAuth } from "@/pages/Admin/AuthProvider"; @@ -34,10 +34,12 @@ const Router = () => { } /> + } /> } /> }> } /> + } />