Create home page
This commit is contained in:
3
central_frontend/src/routes/HomeRoute.tsx
Normal file
3
central_frontend/src/routes/HomeRoute.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
export function HomeRoute(): React.ReactElement {
|
||||
return <>home authenticated todo</>;
|
||||
}
|
23
central_frontend/src/routes/NotFoundRoute.tsx
Normal file
23
central_frontend/src/routes/NotFoundRoute.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import { Button } from "@mui/material";
|
||||
import { RouterLink } from "../widgets/RouterLink";
|
||||
|
||||
export function NotFoundRoute(): React.ReactElement {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
textAlign: "center",
|
||||
flex: "1",
|
||||
display: "flex",
|
||||
flexDirection: "column",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<h1>404 Not found</h1>
|
||||
<p>The page you requested was not found!</p>
|
||||
<RouterLink to="/">
|
||||
<Button>Go back home</Button>
|
||||
</RouterLink>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user