-
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
Showing
4 changed files
with
52 additions
and
3 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
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,23 @@ | ||
import DogFood from '~assets/dog_food.svg?react' | ||
import { ActionButton } from '~components/Button/ActionButton' | ||
import { Typo24 } from '~components/Typo' | ||
import * as S from './styles' | ||
import { useNavigate } from 'react-router-dom' | ||
|
||
export default function NotFoundPage() { | ||
const navigate = useNavigate() | ||
return ( | ||
<S.NotFoundPage> | ||
<S.ErrorMessage>404!</S.ErrorMessage> | ||
<Typo24 $textAlign='center' $weight='800' style={{ marginBottom: 24 }}> | ||
요청하신 페이지를 찾을 수 없어요 | ||
</Typo24> | ||
<ActionButton $type='roundedRect' onClick={() => navigate(-1)}> | ||
되돌아가기 | ||
</ActionButton> | ||
<S.Wrapper> | ||
<DogFood /> | ||
</S.Wrapper> | ||
</S.NotFoundPage> | ||
) | ||
} |
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,21 @@ | ||
import { styled } from 'styled-components' | ||
|
||
export const NotFoundPage = styled.div` | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
padding: 0 20px 30%; | ||
` | ||
|
||
export const ErrorMessage = styled.p` | ||
font-size: 64px; | ||
text-align: center; | ||
font-weight: 800; | ||
color: ${({ theme }) => theme.colors.brand.default}; | ||
` | ||
export const Wrapper = styled.div` | ||
position: absolute; | ||
bottom: 12%; | ||
` |
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