404Page.jsx 2.1 KB

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