|
1 | | -/* eslint-disable react/prop-types */ |
2 | 1 | import React from "react"; |
3 | | -import Redirect from "../../helpers/Redirect"; |
| 2 | +import useScroll from "src/use-hooks/useScroll"; |
| 3 | +import { navigate } from "@reach/router"; |
| 4 | +import ALLButton from "src/components/all-components/ALLButton"; |
| 5 | + |
| 6 | +const Error = () => { |
| 7 | + useScroll(); |
4 | 8 |
|
5 | | -const Error = (props) => { |
6 | | - const { actions } = props; |
7 | 9 | return ( |
8 | | - <div className="errorpage tw-w-full"> |
9 | | - <div> |
10 | | - <h1>Invalid Page</h1> |
11 | | - <hr className="horiz" /> |
12 | | - <p>Please click the button to navigate home</p> |
13 | | - <hr className="horiz" /> |
14 | | - <button |
15 | | - className="btn btn-second btn-xl text-uppercase" |
16 | | - onClick={() => Redirect(actions, 99, 0)} |
17 | | - > |
18 | | - Return Home |
19 | | - </button> |
| 10 | + <section |
| 11 | + className={ |
| 12 | + "tw-w-screen tw-flex tw-flex-col tw-items-end tw-bg-primary-blue tw-py-20" |
| 13 | + } |
| 14 | + > |
| 15 | + <div |
| 16 | + className={ |
| 17 | + "tw-flex tw-flex tw-flex-col md:tw-flex-row tw-justify-between tw-w-[90%] tw-gap-[5rem]" |
| 18 | + } |
| 19 | + > |
| 20 | + {/* Left Side */} |
| 21 | + <div className={"tw-relative tw-flex"}> |
| 22 | + <div |
| 23 | + className={ |
| 24 | + "tw-z-1 tw-min-w-full tw-bg-white tw-rounded-l-md tw-min-h-[12rem]" |
| 25 | + } |
| 26 | + > |
| 27 | + <div |
| 28 | + className={ |
| 29 | + "tw-h-full tw-flex tw-flex-col tw-px-6 tw-justify-center tw-items-center" |
| 30 | + } |
| 31 | + > |
| 32 | + <h1 className={"tw-title tw-text-[6rem]"}>404</h1> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + <div |
| 36 | + className={ |
| 37 | + "tw-absolute -tw-bottom-4 -tw-left-4 tw-right-0 tw-h-[12rem] tw-min-w-full tw-bg-primary-yellow tw-rounded-bl-lg" |
| 38 | + } |
| 39 | + /> |
| 40 | + </div> |
| 41 | + |
| 42 | + {/* Right Side */} |
| 43 | + <div className={"tw-relative tw-flex tw-grow md:tw-ml-[10%]"}> |
| 44 | + <div className={"tw-z-1 tw-min-w-full tw-bg-white tw-rounded-l-md"}> |
| 45 | + <div |
| 46 | + className={ |
| 47 | + "tw-flex tw-flex-col tw-gap-y-6 tw-py-12 tw-px-6 tw-text-left" |
| 48 | + } |
| 49 | + > |
| 50 | + <h2 className={"tw-title xs:tw-text-xl md:tw-text-[2rem]"}> |
| 51 | + Invalid Page |
| 52 | + </h2> |
| 53 | + <p className={"tw-body-text md:tw-w-1/2"}> |
| 54 | + The URL you entered either does not exist or is not accessible! |
| 55 | + Please click the button to navigate home. |
| 56 | + </p> |
| 57 | + <div |
| 58 | + className={"xs:tw-w-full md:tw-w-1/2 tw-flex tw-justify-end"} |
| 59 | + > |
| 60 | + <ALLButton label="Return Home" onClick={() => navigate("/")} /> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | + <div |
| 65 | + className={ |
| 66 | + "tw-absolute -tw-bottom-4 -tw-left-4 tw-right-0 tw-h-[12rem] tw-min-w-full tw-bg-primary-yellow tw-rounded-bl-lg" |
| 67 | + } |
| 68 | + /> |
| 69 | + </div> |
20 | 70 | </div> |
21 | | - </div> |
| 71 | + </section> |
22 | 72 | ); |
23 | 73 | }; |
24 | 74 |
|
|
0 commit comments