Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 4x | import React from "react";
import { Box, Button, Stack, Typography } from "@mui/material";
import SadFaceIcon from "@mui/icons-material/SentimentDissatisfied";
import { useNavigate } from "react-router-dom";
const PageError = () => {
const navigate = useNavigate();
return (
<Box
sx={{
minHeight: "70vh",
display: "flex",
flexDirection: "column",
alignItems: "center",
justifyContent: "center",
gap: 2,
px: 3,
textAlign: "center",
}}
>
<SadFaceIcon sx={{ fontSize: 80, color: "text.disabled" }} />
<Typography
variant="h1"
sx={{ fontSize: { xs: "5rem", sm: "7rem" }, fontWeight: 700, color: "text.disabled", lineHeight: 1 }}
>
404
</Typography>
<Typography variant="h5" fontWeight={600}>
Page Not Found
</Typography>
<Typography variant="body1" color="text.secondary" maxWidth={420}>
The page you are looking for might have been removed, changed, or is temporarily unavailable.
</Typography>
<Stack direction="row" spacing={2} mt={1}>
<Button variant="outlined" onClick={() => navigate(-1)}>
Go Back
</Button>
</Stack>
</Box>
);
};
export default PageError;
|