File size: 643 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import React from "react";
import error from "../imgs/error.png";
import "./error.css";
import { useNavigate } from "react-router-dom";

function Error() {
  const navigate = useNavigate();

  document.title = "404! Page not found"

  return (
    <>
      <div className="error-page">
        <p className="big-error">404</p>
        <p className="medium-error">Something went</p>
        <p className="wrong">WRONG!</p>
        <button
          onClick={() => {
            navigate("/");
          }}
          className="back-home"
        >
          Back to Homepage
        </button>
      </div>
    </>
  );
}

export default Error;