-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.tsx
43 lines (36 loc) · 854 Bytes
/
404.tsx
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
32
33
34
35
36
37
38
39
40
41
42
43
import Link from "next/link";
import Head from "next/head";
import Image from "next/image";
import { useRouter } from "next/router";
const Error404 = () => {
const router = useRouter();
return (
<>
<Head>
<title>404 - Page Not Found</title>
</Head>
<div className="text-center">
<Image
src="/images/are_you_sure_about_that.gif"
alt="are_you_sure_about_that john cena image"
className="mx-auto "
width={177}
height={197}
/>
<div className="my-3">
<h1 className="text-7xl md:text-8xl font-bold ">404</h1>
<h3 className="">Page Not Found</h3>
</div>
<div>
<span className="link" onClick={() => router.back()}>
Go back
</span>
</div>
<Link href="/">
<a className="link">Go to Home Page</a>
</Link>
</div>
</>
);
};
export default Error404;