aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/NotFound.tsx
blob: 6947a382a230d87bc7847c6eb057c139e4d6480c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/** @jsx jsx */
import {jsx, css} from "@emotion/react";
import {Link} from "react-router-dom";

import HeaderBar from "../components/HeaderBar";
import {mainTextStyles, navigationStyles, returnButtonStyles, unselectable} from "../commonStyles";

interface NotFoundProps {
    message: string
}


/** Simple 404 page. */
export default function NotFound(props: NotFoundProps): JSX.Element {
    return <div>
        <HeaderBar/>
        <div css={css`width: 80%; margin: auto;`}>
            <div css={mainTextStyles}>
                <p>{props.message}</p>
            </div>
            <div css={[unselectable, navigationStyles]}>
                <Link css={returnButtonStyles} to="/">Return Home</Link>
            </div>
        </div>
    </div>;
}