Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

47 lignes
1.5 KiB

  1. import {
  2. ButtonBase
  3. } from '@mui/material'
  4. import { useNavigate } from "react-router-dom";
  5. import MainCard from 'components/MainCard';
  6. //import errorImg from '@src/assets/images/pages/error.svg'
  7. const ErrorPage = () => {
  8. let navigate = useNavigate();
  9. const handleToHomePage = () =>{
  10. let path = `/`;
  11. navigate(path);
  12. }
  13. return (
  14. <MainCard>
  15. <div>
  16. <a href='/'>
  17. <h2>LIONER</h2>
  18. </a>
  19. <div >
  20. <div >
  21. <h2 >Page Not Found 🕵🏻‍♀️</h2>
  22. <p >Oops! 😖 The requested URL was not found on this server.</p>
  23. <ButtonBase
  24. sx={{
  25. p: 0.25,
  26. bgcolor: 'red',
  27. borderRadius: 30,
  28. '&:hover': { bgcolor: 'secondary.lighter' }
  29. }}
  30. aria-label="Back to home"
  31. aria-controls={open ? 'profile-grow' : undefined}
  32. aria-haspopup="true"
  33. onClick={handleToHomePage}>
  34. Back to home
  35. </ButtonBase>
  36. {/*<img className='img-fluid' src={errorImg} alt='Not authorized page' />*/}
  37. </div>
  38. </div>
  39. </div>
  40. </MainCard>
  41. )
  42. }
  43. export default ErrorPage;