-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from firehawk89/add-404-page
Add 404 Page
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// TODO: Add 404 page | ||
|
||
import type { Metadata } from 'next' | ||
|
||
import Footer from '@/components/footer' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { buttonVariants } from '@/components/ui/button' | ||
import Content from '@/components/ui/content' | ||
import Heading from '@/components/ui/heading' | ||
import { LINK } from '@/types/enums/Link' | ||
import { cn } from '@/utils' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
|
||
export default function NotFound() { | ||
return ( | ||
<div className="relative h-full bg-ghost pt-header dark:bg-dark"> | ||
<Image | ||
alt="Background" | ||
className="-z-5 object-cover object-center" | ||
fill | ||
sizes="100vw" | ||
src="/hero-bg.svg" | ||
/> | ||
<Content className="relative flex h-full flex-col items-center justify-center gap-3 text-center md:gap-5"> | ||
<Heading>Page Not Found</Heading> | ||
<p className="text-lg md:text-xl"> | ||
The page you were looking for does not exists. | ||
</p> | ||
<Link className={cn(buttonVariants())} href={LINK.index}> | ||
Return Home | ||
</Link> | ||
</Content> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters