-
-
Notifications
You must be signed in to change notification settings - Fork 263
/
Copy path404.page.tsx
51 lines (45 loc) · 1.49 KB
/
404.page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import React, { useEffect, useState } from 'react';
import Link from 'next/link';
import { useTheme } from 'next-themes';
const Logo = () => {
const { resolvedTheme } = useTheme();
const [imageSrc, setImageSrc] = useState('/img/logos/logo-blue.svg');
useEffect(() => {
const src =
resolvedTheme === 'dark'
? '/img/logos/logo-white.svg'
: '/img/logos/logo-blue.svg';
setImageSrc(src);
}, [resolvedTheme]);
return (
<Link href='/' className=''>
<img
src={imageSrc}
className='h-8 lg:h-12 top-12 absolute left-1/2 -translate-x-1/2'
/>
</Link>
);
};
export default function PageNotFound() {
return (
<div className='h-screen w-full flex flex-col gap-8 items-center justify-center font-semibold text-center'>
<Logo />
<h1 className='leading-header text-h1 hidden lg:block'>
404 - Page Not Found!
</h1>
<h1 className='lg:hidden text-h1 drop-shadow-[0px_0px_30px_rgba(148,163,184,0.9)]'>
404
</h1>
<h1 className='lg:hidden text-h5mobile'>Page Not Found!</h1>
<div className='font-light text-sm lg:text-xl'>
The page you were looking for doesn't exist.
</div>
<Link
href='/'
className='flex items-center justify-center rounded border-2 border-white dark:border-none hover:bg-blue-700 transition-all duration-300 ease-in-out text-white w-[194px] h-10 font-semibold bg-primary dark:shadow-2xl'
>
BACK TO HOME
</Link>
</div>
);
}