Files
aso/frontend/dashboard/src/pages/Page404.tsx
2022-11-03 09:51:22 +07:00

53 lines
1.7 KiB
TypeScript
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { m } from 'framer-motion';
import { Link as RouterLink } from 'react-router-dom';
// @mui
import { styled } from '@mui/material/styles';
import { Box, Button, Typography, Container } from '@mui/material';
// components
import Page from '../components/Page';
import { MotionContainer, varBounce } from '../components/animate';
// assets
import { PageNotFoundIllustration } from '../assets';
// ----------------------------------------------------------------------
const RootStyle = styled('div')(({ theme }) => ({
display: 'flex',
minHeight: '100%',
alignItems: 'center',
paddingTop: theme.spacing(15),
paddingBottom: theme.spacing(10),
}));
// ----------------------------------------------------------------------
export default function Page404() {
return (
<Page title="404 Page Not Found" sx={{ height: 1 }}>
<RootStyle>
<Container component={MotionContainer}>
<Box sx={{ maxWidth: 480, margin: 'auto', textAlign: 'center' }}>
<m.div variants={varBounce().in}>
<Typography variant="h3" paragraph>
Sorry, page not found!
</Typography>
</m.div>
<Typography sx={{ color: 'text.secondary' }}>
Sorry, we couldnt find the page youre looking for. Perhaps youve mistyped the URL?
Be sure to check your spelling.
</Typography>
<m.div variants={varBounce().in}>
<PageNotFoundIllustration sx={{ height: 260, my: { xs: 5, sm: 10 } }} />
</m.div>
<Button to="/" size="large" variant="contained" component={RouterLink}>
Go to Home
</Button>
</Box>
</Container>
</RootStyle>
</Page>
);
}