Merge pull request #331 from dhanyamd/feat/not-found-modified

NotFound Error page improvements
This commit is contained in:
Badr B. 2024-10-10 17:07:33 +02:00 committed by GitHub
commit 1b0a4c7f45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,39 @@
import { ArrowRight } from 'lucide-react'
import Image from 'next/image'
import Link from 'next/link'
import learnhouseIcon from 'public/black_logo.png'
export default function NotFound() {
return (
<div className="flex min-h-screen w-full flex-col items-center justify-center
bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-zinc-200 to-slate-300">
<div className="nx-flex nx-items-center hover:nx-opacity-75 ltr:nx-mr-auto rtl:nx-ml-auto pb-20">
<Image quality={100}
width={270}
height={100}
src={learnhouseIcon}
alt="logo"
/>
</div>
<div className="space-y-6 text-center">
<h1 className="text-8xl leading-7 font-bold text-black drop-shadow-md">
404!
</h1>
<p className='text-lg pt-8 text-black tracking-tight font-medium leading-normal'>
We are very sorry for the inconvinience. It looks like you're trying to
<div>access a page that has been deleted or never existed before</div>
</p>
</div>
<div className='pt-8 flex flex-col items-center'>
<button className="flex w-fit h-[50px] text-xl space-x-2 bg-black px-6 py-2 text-md rounded-lg font-bold text-white items-center shadow-md">
<Link className='flex gap-2' href="/" >
Go back to homepage
<ArrowRight className='tracking-tight group-hover:translate-x-0.5
transition-transform duration-150 ease-in-out ml-1' />
</Link>
</button>
</div>
</div>
)
}