mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-29 01:28:59 -05:00
Add not found page
This commit is contained in:
parent
7c67c5b312
commit
80f055899c
1 changed files with 58 additions and 0 deletions
58
src/pages/404.tsx
Normal file
58
src/pages/404.tsx
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
import React from "react";
|
||||||
|
import {
|
||||||
|
createStyles,
|
||||||
|
Title,
|
||||||
|
Text,
|
||||||
|
Button,
|
||||||
|
Container,
|
||||||
|
Group,
|
||||||
|
} from "@mantine/core";
|
||||||
|
import Meta from "../components/Meta";
|
||||||
|
|
||||||
|
const useStyles = createStyles((theme) => ({
|
||||||
|
root: {
|
||||||
|
paddingTop: 80,
|
||||||
|
paddingBottom: 80,
|
||||||
|
},
|
||||||
|
|
||||||
|
label: {
|
||||||
|
textAlign: "center",
|
||||||
|
fontWeight: 900,
|
||||||
|
fontSize: 220,
|
||||||
|
lineHeight: 1,
|
||||||
|
marginBottom: theme.spacing.xl * 1.5,
|
||||||
|
color: theme.colors.gray[2],
|
||||||
|
|
||||||
|
[theme.fn.smallerThan("sm")]: {
|
||||||
|
fontSize: 120,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
description: {
|
||||||
|
maxWidth: 500,
|
||||||
|
margin: "auto",
|
||||||
|
marginBottom: theme.spacing.xl * 1.5,
|
||||||
|
},
|
||||||
|
}));
|
||||||
|
|
||||||
|
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 variant="light">Bring me back</Button>
|
||||||
|
</Group>
|
||||||
|
</Container>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
export default ErrorNotFound;
|
Loading…
Add table
Reference in a new issue