404Page.jsx 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import Breadcrumbs from "../components/Breadcrumbs";
  2. import imgUrl from "../img/not-found/1.png"
  3. import {Box, Container, Typography, useMediaQuery} from "@mui/material";
  4. const Page404 = () => {
  5. const matches = useMediaQuery('(max-width:899px)');
  6. const matches2 = useMediaQuery('(max-width:450px)');
  7. return (
  8. <>
  9. <Breadcrumbs links={['404 page']} title={'PAGE NOT FOUND'} />
  10. <main style={{backgroundColor: "#f3f3f3", padding: matches ? "20px 0" : "50px 0"}}>
  11. <Container maxWidth="lg">
  12. <Box sx={{
  13. backgroundColor: "#fff",
  14. height: matches2 ? "250px" : "350px",
  15. display: "flex",
  16. flexDirection: "column",
  17. justifyContent: "center",
  18. alignItems: "center"
  19. }}>
  20. <img style={{
  21. maxWidth: matches2 ? "100px" : "150px"
  22. }} src={imgUrl} alt="PAGE NOT FOUND"/>
  23. <Typography
  24. variant={matches2 ? "h6" : "h5"}
  25. fontFamily="sarif"
  26. fontWeight="300"
  27. marginBottom="20px"
  28. marginTop="20px"
  29. textAlign="center"
  30. >
  31. OOPS! THAT PAGE CAN’T BE FOUND
  32. </Typography>
  33. <Typography
  34. variant={matches2 ? "body1" : "h7"}
  35. textAlign="center"
  36. fontWeight="300"
  37. >
  38. The page you are trying to reach is not available.
  39. </Typography>
  40. </Box>
  41. </Container>
  42. </main>
  43. </>
  44. )
  45. }
  46. export default Page404