-
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
5f311a2
commit bd73058
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,19 @@ | ||
.home { | ||
display: flex; | ||
width: 100%; | ||
height: 100vh; | ||
align-items: center; | ||
flex-direction: column; | ||
justify-content: center; | ||
background: var(--background); | ||
|
||
h1 { | ||
color: var(--orange); | ||
font-size: 48px; | ||
} | ||
|
||
img { | ||
width: 60%; | ||
height: 60%; | ||
} | ||
} |
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,25 @@ | ||
import barberImg from 'assets/barber-404.svg'; | ||
|
||
import { Button } from 'components/Button'; | ||
|
||
import { useTheme } from 'contexts/Theme'; | ||
|
||
import styles from './NotFound.module.scss'; | ||
|
||
export function NotFound() { | ||
const { theme } = useTheme(); | ||
|
||
return ( | ||
<div className={styles.home} data-theme={theme}> | ||
<h1>Erro 404</h1> | ||
<img src={barberImg} alt="Barbeiro cortando cabelo" /> | ||
<p>Ops, parece que você está procurando por algo que não existe.</p> | ||
|
||
<br /> | ||
|
||
<Button type="button" onClick={() => window.location.replace('/')}> | ||
Voltar para a página inicial | ||
</Button> | ||
</div> | ||
); | ||
} |