Skip to content

Commit 9e0ba6c

Browse files
committed
Add header to not found
1 parent 0630e0a commit 9e0ba6c

File tree

1 file changed

+46
-42
lines changed

1 file changed

+46
-42
lines changed

src/app/not-found.tsx

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,57 @@
1+
import NavBar from '@/components/NavBar';
12
import { ArrowDown } from 'lucide-react';
23
import Link from 'next/link';
34

45
export default function NotFound() {
56
return (
6-
<div className="flex min-h-screen items-center justify-center bg-gray-50 px-4">
7-
<div className="mx-auto w-full max-w-lg text-center">
8-
<div className="mb-8">
9-
<div className="mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-full bg-gray-100">
10-
<svg
11-
className="h-10 w-10 text-gray-600"
12-
fill="none"
13-
stroke="currentColor"
14-
viewBox="0 0 24 24"
15-
>
16-
<path
17-
strokeLinecap="round"
18-
strokeLinejoin="round"
19-
strokeWidth={2}
20-
d="M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
21-
/>
22-
</svg>
23-
</div>
7+
<div className="flex h-dvh flex-col">
8+
<NavBar />
9+
<div className="flex flex-1 items-center justify-center bg-gray-50 px-4">
10+
<div className="mx-auto w-full max-w-lg text-center">
11+
<div className="mb-8">
12+
<div className="mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-full bg-gray-100">
13+
<svg
14+
className="h-10 w-10 text-gray-600"
15+
fill="none"
16+
stroke="currentColor"
17+
viewBox="0 0 24 24"
18+
>
19+
<path
20+
strokeLinecap="round"
21+
strokeLinejoin="round"
22+
strokeWidth={2}
23+
d="M9.172 16.172a4 4 0 015.656 0M9 10h.01M15 10h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
24+
/>
25+
</svg>
26+
</div>
2427

25-
<h1 className="mb-3 text-3xl font-semibold text-gray-900">404 - Page Not Found</h1>
28+
<h1 className="mb-3 text-3xl font-semibold text-gray-900">404 - Page Not Found</h1>
2629

27-
<p className="text-foreground-muted mb-8 text-lg">
28-
Looks like this keyboardist got lost on the way to the show. The Page you're looking for
29-
doesn't exist yet - maybe it's 1983.
30-
</p>
31-
</div>
30+
<p className="text-foreground-muted mb-8 text-lg">
31+
Looks like this keyboardist got lost on the way to the show. The Page you're looking
32+
for doesn't exist yet - maybe it's 1983.
33+
</p>
34+
</div>
3235

33-
<div className="space-y-4">
34-
<Link
35-
href="/"
36-
className="bg-relisten-600 inline-block w-full rounded-lg px-6 py-3 font-medium text-white transition-colors hover:bg-relisten-700 sm:w-auto"
37-
>
38-
Go to HomePage
39-
<div className="flex flex-col items-center">
40-
<ArrowDown />
41-
</div>
42-
<img
43-
src="/HomePage.jpg"
44-
alt="HomePage"
45-
width={140}
46-
height={225}
47-
sizes="(max-width: 640px) 100vw, 400px"
48-
className="mx-auto"
49-
/>
50-
</Link>
36+
<div className="space-y-4">
37+
<Link
38+
href="/"
39+
className="bg-relisten-600 inline-block w-full rounded-lg px-6 py-3 font-medium text-white transition-colors hover:bg-relisten-700 sm:w-auto"
40+
>
41+
Go to HomePage
42+
<div className="flex flex-col items-center">
43+
<ArrowDown />
44+
</div>
45+
<img
46+
src="/HomePage.jpg"
47+
alt="HomePage"
48+
width={140}
49+
height={225}
50+
sizes="(max-width: 640px) 100vw, 400px"
51+
className="mx-auto"
52+
/>
53+
</Link>
54+
</div>
5155
</div>
5256
</div>
5357
</div>

0 commit comments

Comments
 (0)