-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f51982
commit e42ee1f
Showing
2 changed files
with
69 additions
and
5 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,11 +1,37 @@ | ||
import styles from '@/styles/notFound.module.scss' | ||
import { AnimateWrapper } from '@/components/animateWrapper/animateWrapper' | ||
import { Container } from '@/components/container/container' | ||
import { Overlay } from '@/components/overlay/overlay' | ||
import { SEO } from '@/components/seo' | ||
import { useScrollTop } from '@/hooks/useScrollTop' | ||
import { Link } from 'react-router-dom' | ||
|
||
const metaData = { | ||
title: 'Not Found', | ||
description: 'Page not found', | ||
path: '/404', | ||
} | ||
|
||
export default function NotFound() { | ||
useScrollTop() | ||
|
||
return ( | ||
<div> | ||
<h1>404</h1> | ||
<p>Page not found</p> | ||
</div> | ||
<> | ||
<SEO title={metaData.title} description={metaData.description} path={metaData.path} /> | ||
|
||
<Overlay> | ||
<AnimateWrapper> | ||
<Container> | ||
<div className={styles.notFoundMainContainer}> | ||
<h1>404</h1> | ||
<p>Page not found</p> | ||
<Link to={'/'}> | ||
Back to home page | ||
</Link> | ||
</div> | ||
</Container> | ||
</AnimateWrapper> | ||
</Overlay> | ||
</> | ||
) | ||
} | ||
} |
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,38 @@ | ||
@import "variables.scss"; | ||
@import "mixins.scss"; | ||
|
||
.notFoundMainContainer { | ||
height: calc(100vh - 64px - 73px - 100px); | ||
@include flex(column, center, center); | ||
|
||
h1 { | ||
@include font(700, 112px, 100%, center); | ||
color: $neutral-900; | ||
} | ||
|
||
p { | ||
margin: 0 0 24px 0; | ||
font: 500 16px/24px $font-family; | ||
color: $neutral-500 | ||
} | ||
|
||
a { | ||
padding: 8px 16px; | ||
border-radius: 12px; | ||
border: 1px solid $neutral-200; | ||
font: 500 14px/20px $font-family; | ||
background-color: $white; | ||
box-shadow: $drop-shadow-small; | ||
|
||
transition: background-color .2s; | ||
|
||
img { | ||
width: 100%; | ||
max-width: 400px; | ||
} | ||
&:is(:hover, :focus) { | ||
background-color: $neutral-100; | ||
} | ||
} | ||
|
||
} |