feat: custom 404

This commit is contained in:
iCrawl
2022-08-22 23:58:33 +02:00
parent 43a78be70b
commit 29c51be1f4

View File

@@ -0,0 +1,35 @@
import { Container, Title, Group, Button, Box, createStyles } from '@mantine/core';
import Link from 'next/link';
const useStyles = createStyles((theme) => ({
label: {
textAlign: 'center',
fontWeight: 900,
fontSize: 220,
lineHeight: 1,
marginBottom: theme.spacing.xl * 1.5,
color: theme.colorScheme === 'dark' ? theme.colors.dark![4] : theme.colors.gray![2],
[theme.fn.smallerThan('sm')]: {
fontSize: 120,
},
},
}));
export default function FourOhFourPage() {
const { classes } = useStyles();
return (
<Container pt={96} pb={96}>
<Box className={classes.label}>404</Box>
<Title align="center">Not found.</Title>
<Group position="center">
<Link href="/docs/packages" passHref>
<Button component="a" variant="filled" size="md" mt="xl">
Take me back
</Button>
</Link>
</Group>
</Container>
);
}