From e02ef11d9f7417789d0a0e3b549d9a715c863d01 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Sat, 8 Feb 2025 19:16:12 +0800 Subject: [PATCH] 404 page --- AceJobAgency.client/.npmrc | 2 +- AceJobAgency.client/src/App.tsx | 2 ++ AceJobAgency.client/src/pages/ErrorPage.tsx | 35 +++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 AceJobAgency.client/src/pages/ErrorPage.tsx diff --git a/AceJobAgency.client/.npmrc b/AceJobAgency.client/.npmrc index cb15887..7cb61a2 100644 --- a/AceJobAgency.client/.npmrc +++ b/AceJobAgency.client/.npmrc @@ -1 +1 @@ -public-hoist-pattern[]=*@nextui-org/* \ No newline at end of file +public-hoist-pattern[]=*@heroui/* \ No newline at end of file diff --git a/AceJobAgency.client/src/App.tsx b/AceJobAgency.client/src/App.tsx index dd1f01c..b33c6bf 100644 --- a/AceJobAgency.client/src/App.tsx +++ b/AceJobAgency.client/src/App.tsx @@ -1,6 +1,7 @@ import { Route, Routes } from "react-router-dom"; import DefaultLayout from "./layouts/DefaultLayout"; import HomePage from "./pages/HomePage"; +import ErrorPage from "./pages/ErrorPage"; export default function App() { return ( @@ -9,6 +10,7 @@ export default function App() { }> } /> + } /> diff --git a/AceJobAgency.client/src/pages/ErrorPage.tsx b/AceJobAgency.client/src/pages/ErrorPage.tsx new file mode 100644 index 0000000..0202b8f --- /dev/null +++ b/AceJobAgency.client/src/pages/ErrorPage.tsx @@ -0,0 +1,35 @@ +import { Button, Card } from "@heroui/react"; +import { useNavigate } from "react-router-dom"; + +export default function ErrorPage() { + const navigate = useNavigate(); + return ( +
+
+
+

Error 404 - Not Found

+

Something's not right!

+

What you're looking for is not here.

+
+ + + + +
+
+ ); +}