404 page
This commit is contained in:
@@ -1 +1 @@
|
|||||||
public-hoist-pattern[]=*@nextui-org/*
|
public-hoist-pattern[]=*@heroui/*
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Route, Routes } from "react-router-dom";
|
import { Route, Routes } from "react-router-dom";
|
||||||
import DefaultLayout from "./layouts/DefaultLayout";
|
import DefaultLayout from "./layouts/DefaultLayout";
|
||||||
import HomePage from "./pages/HomePage";
|
import HomePage from "./pages/HomePage";
|
||||||
|
import ErrorPage from "./pages/ErrorPage";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
@@ -9,6 +10,7 @@ export default function App() {
|
|||||||
<Route path="/">
|
<Route path="/">
|
||||||
<Route element={<DefaultLayout />}>
|
<Route element={<DefaultLayout />}>
|
||||||
<Route index element={<HomePage />} />
|
<Route index element={<HomePage />} />
|
||||||
|
<Route path="*" element={<ErrorPage />} />
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
35
AceJobAgency.client/src/pages/ErrorPage.tsx
Normal file
35
AceJobAgency.client/src/pages/ErrorPage.tsx
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
import { Button, Card } from "@heroui/react";
|
||||||
|
import { useNavigate } from "react-router-dom";
|
||||||
|
|
||||||
|
export default function ErrorPage() {
|
||||||
|
const navigate = useNavigate();
|
||||||
|
return (
|
||||||
|
<div className="absolute inset-0 w-full h-full flex flex-col justify-center">
|
||||||
|
<div className="relative m-auto w-max h-max flex flex-col gap-8 justify-center text-center *:mx-auto">
|
||||||
|
<div className="flex flex-col gap-2">
|
||||||
|
<p className="opacity-70 text-lg">Error 404 - Not Found</p>
|
||||||
|
<p className="text-4xl font-bold">Something's not right!</p>
|
||||||
|
<p className="text-xl">What you're looking for is not here.</p>
|
||||||
|
</div>
|
||||||
|
<Card className="flex flex-row gap-4 justify-center w-max p-4">
|
||||||
|
<Button
|
||||||
|
variant="light"
|
||||||
|
onPress={() => {
|
||||||
|
navigate(-1);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Go back
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
color="primary"
|
||||||
|
onPress={() => {
|
||||||
|
navigate("/");
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Go home
|
||||||
|
</Button>
|
||||||
|
</Card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user