Skip to content

Commit

Permalink
[site/pages,#170][s]: create new 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilcodes committed Jan 14, 2023
1 parent 3ace129 commit 4f347d5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions site/pages/404.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Link from "next/link"

export default function PageNotFound () {
return (
<section className="flex items-center h-full p-16 text-primary lg:max-h-[calc(100vh-350px)]">
<div className="container flex flex-col items-center justify-center px-5 mx-auto my-8">
<div className="max-w-md text-center">
<h2 className="mb-4 font-extrabold text-7xl md:text-9xl">
<span className="sr-only">Error</span>404
</h2>
<p className="text-2xl font-semibold md:text-3xl">Sorry, we couldn't find this page.</p>
<p className="mt-2 mb-8 text-gray-500">But dont worry, you can find plenty of other things on our homepage.</p>
<Link href="/" className="px-8 py-3 font-semibold rounded bg-secondary">Back to homepage</Link>
</div>
</div>
</section>
)
}

0 comments on commit 4f347d5

Please sign in to comment.