Skip to content

Commit

Permalink
Merge pull request #14 from CambioML/jojo-branch
Browse files Browse the repository at this point in the history
add custom 404 page
  • Loading branch information
Cambio ML authored Jan 25, 2024
2 parents f65094e + 7b6e24c commit eb45be9
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 eb45be9

Please sign in to comment.