-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/readme
- Loading branch information
Showing
3 changed files
with
116 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
'use client' | ||
import { useEffect } from 'react' | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
import { captureException } from '@sentry/nextjs' | ||
|
||
const Error = ({ error }: { error: Error & { digest?: string } }) => { | ||
useEffect(() => { | ||
captureException(error) | ||
}, [error]) | ||
|
||
return ( | ||
<div className="w-full"> | ||
{/* background */} | ||
<Image | ||
src="/turtle-background.webp" | ||
alt="Turtle Background" | ||
className="relative z-0" | ||
fill | ||
style={{ objectFit: 'cover' }} | ||
sizes="100vw" | ||
priority | ||
/> | ||
{/* background overlay*/} | ||
<div className="turtle-dark-overlay absolute h-full w-full" /> | ||
|
||
{/* Content */} | ||
<section className="absolute inset-0 z-20 flex flex-col items-center justify-center text-center"> | ||
<div className="flex flex-col items-center justify-center gap-8 text-white"> | ||
<h1 className="text-xl font-bold leading-5">500</h1> | ||
<h2 className="text-4xl font-medium leading-[56px] tracking-tighter sm:text-[56px]"> | ||
Oops, something went wrong. | ||
</h2> | ||
<div className="flex flex-col justify-center gap-6 text-xl leading-5"> | ||
<Link href="/" className="underline"> | ||
Try again | ||
</Link> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
) | ||
} | ||
|
||
export default Error |
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
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,39 @@ | ||
import Image from 'next/image' | ||
import Link from 'next/link' | ||
|
||
const NotFound = () => { | ||
return ( | ||
<div className="w-full"> | ||
{/* background */} | ||
<Image | ||
src="/turtle-background.webp" | ||
alt="Turtle Background for not found 404 page" | ||
className="relative z-0" | ||
fill | ||
style={{ objectFit: 'cover' }} | ||
sizes="100vw" | ||
priority | ||
/> | ||
{/* background overlay*/} | ||
<div className="turtle-dark-overlay absolute h-full w-full" /> | ||
|
||
{/* Content */} | ||
<section className="absolute inset-0 z-20 flex flex-col items-center justify-center text-center"> | ||
<div className="flex flex-col items-center justify-center gap-8 text-white"> | ||
<h1 className="text-xl font-bold leading-5">404</h1> | ||
<h2 className="text-4xl font-medium leading-[56px] tracking-tighter sm:text-[56px]"> | ||
Oops, this page is missing. | ||
</h2> | ||
<div className="flex flex-col justify-center gap-6 text-xl leading-5"> | ||
<p>Maybe you clicked on an old link!</p> | ||
<Link href="/" className="underline"> | ||
Back home | ||
</Link> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
) | ||
} | ||
|
||
export default NotFound |