mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat: custom 404
This commit is contained in:
35
packages/website/src/pages/404.tsx
Normal file
35
packages/website/src/pages/404.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user