-
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.
adding not found and no tasks messages
- Loading branch information
1 parent
02bc7bd
commit c7dc835
Showing
14 changed files
with
234 additions
and
61 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.
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
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
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
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
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,20 @@ | ||
import { NotFoundContainer } from './styles' | ||
import { useNavigate } from 'react-router-dom' | ||
import ChimpRelaxing from '../../../public/chimp_relaxing.svg' | ||
|
||
export function NotFoundPage() { | ||
const navigate = useNavigate() | ||
|
||
function handleGoToHome() { | ||
navigate('/') | ||
} | ||
return ( | ||
<NotFoundContainer> | ||
<h1>404</h1> | ||
<h1>There's a lot of fun here... </h1> | ||
<img src={ChimpRelaxing} alt="Coolest Chimp logo smiling to you" /> | ||
<h1>...but none's for you. Go back to work!</h1> | ||
<button onClick={handleGoToHome}>Go to Tasks</button> | ||
</NotFoundContainer> | ||
) | ||
} |
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,35 @@ | ||
import styled from 'styled-components' | ||
|
||
export const NotFoundContainer = styled.div` | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
text-align: center; | ||
flex-direction: column; | ||
justify-items: center; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 3rem; | ||
button { | ||
border: 0; | ||
border-radius: 8px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: 0.5rem; | ||
font-weight: bold; | ||
cursor: pointer; | ||
color: ${(props) => props.theme.white}; | ||
background-color: ${(props) => props.theme['green-500']}; | ||
padding: 1rem 1.75rem; | ||
:hover { | ||
background-color: ${(props) => props.theme['green-300']}; | ||
cursor: pointer; | ||
} | ||
} | ||
` |
Oops, something went wrong.