-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* assets: not found 이미지 추가 * feat: not found 페이지 구현
- Loading branch information
Showing
4 changed files
with
56 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,53 @@ | ||
import Button from '@/components/common/Button/Button'; | ||
import { usePageRouter } from '@/hooks/usePageRouter'; | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import notFound from '@/assets/not-found.jpg'; | ||
|
||
const NotFoundPage = () => { | ||
const { goToMainPage } = usePageRouter(); | ||
|
||
return ( | ||
<S.NotFoundPageContainer> | ||
<S.NotFoundImage src={notFound} /> | ||
<S.Message> | ||
<S.Bold>페이지를 찾을 수 없습니다 😢</S.Bold> | ||
</S.Message> | ||
<Button colorTheme="WHITE" onClick={goToMainPage}> | ||
홈으로 가기 | ||
</Button> | ||
</S.NotFoundPageContainer> | ||
); | ||
}; | ||
|
||
export default NotFoundPage; | ||
|
||
const S = { | ||
NotFoundPageContainer: styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 50px; | ||
margin-top: 10vh; | ||
`, | ||
|
||
NotFoundImage: styled.img` | ||
height: 40vh; | ||
`, | ||
|
||
Message: styled.h1` | ||
font-size: 30px; | ||
line-height: 1.5; | ||
white-space: pre-wrap; | ||
text-align: center; | ||
@media (max-width: 768px) { | ||
font-size: 24px; | ||
} | ||
`, | ||
|
||
Bold: styled.span` | ||
font-weight: 700; | ||
`, | ||
}; |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
declare module '*.svg'; | ||
declare module '*.png'; | ||
declare module '*.webp'; | ||
declare module '*.jpg'; |