Skip to content

Commit

Permalink
add custom 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
jojortz committed Jan 25, 2024
1 parent d4a20a2 commit 7b6e24c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use client';

import { useRouter } from 'next/navigation';
import Button from './components/Button';

export default function Custom404() {
const router = useRouter();
return (
<div className="h-[80vh] w-full flex flex-col gap-5 items-center justify-center">
<h1 className="text-6xl font-semibold">404</h1>
<h2 className="text-3xl text-neutral-500 pb-10">{`Oops! This page doesn't exist`}</h2>
<div className="w-[250px]">
<Button label="Go to Homepage" onClick={() => router.push('/')} small />
</div>
</div>
);
}

0 comments on commit 7b6e24c

Please sign in to comment.