1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-16 04:10:35 +01:00
pingvin-share/frontend/src/pages/404.tsx
2023-03-10 09:01:33 +01:00

64 lines
1.3 KiB
TypeScript

import {
Button,
Container,
createStyles,
Group,
Text,
Title,
} from "@mantine/core";
import Link from "next/link";
import Meta from "../components/Meta";
const useStyles = createStyles((theme) => ({
root: {
paddingTop: 80,
paddingBottom: 80,
},
label: {
textAlign: "center",
fontWeight: 900,
fontSize: 220,
lineHeight: 1,
marginBottom: `calc(${theme.spacing.xl} * 100)`,
color: theme.colors.gray[2],
[theme.fn.smallerThan("sm")]: {
fontSize: 120,
},
},
description: {
maxWidth: 500,
margin: "auto",
marginBottom: `calc(${theme.spacing.xl} * 100)`,
},
}));
const ErrorNotFound = () => {
const { classes } = useStyles();
return (
<>
<Meta title="Not found" />
<Container className={classes.root}>
<div className={classes.label}>404</div>
<Title align="center" order={3}>
Oops this page doesn't exist.
</Title>
<Text
color="dimmed"
align="center"
className={classes.description}
></Text>
<Group position="center">
<Button component={Link} href="/" variant="light">
Bring me back
</Button>
</Group>
</Container>
</>
);
};
export default ErrorNotFound;