Skip to content

Commit 4fae94b

Browse files
committed
Uses Link for linking to homepage
1 parent 1199e52 commit 4fae94b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pages/404.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import Link from 'next/link'
2+
13
export default function ErrorPage() {
24
return (
35
<>
@@ -7,12 +9,12 @@ export default function ErrorPage() {
79
<h1 className="mt-4 text-3xl font-bold tracking-tight text-gray-900 sm:text-5xl">Page not found</h1>
810
<p className="mt-6 text-base leading-7 text-gray-600">Sorry, we couldn’t find the page you’re looking for.</p>
911
<div className="mt-10 flex items-center justify-center gap-x-6">
10-
<a
12+
<Link
1113
href="/"
1214
className="rounded-md bg-brand-red-500 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-brand-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-red-600"
1315
>
1416
Go back home
15-
</a>
17+
</Link>
1618
</div>
1719
</div>
1820
</main>

0 commit comments

Comments
 (0)