-
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.
[FEAT] 404 not found page & 500 server error page
- Loading branch information
1 parent
dfbdc1c
commit 54e4db2
Showing
9 changed files
with
106 additions
and
11 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
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,43 @@ | ||
import { css } from '@emotion/react' | ||
import main_image from '../../assets/main_image.svg' | ||
import { Link } from 'wouter' | ||
import { Color } from '../../palette' | ||
|
||
export const NotFound = () => { | ||
return ( | ||
<div css={Wrapper}> | ||
<img src={main_image} alt='404' /> | ||
<div css={TextContainer}> | ||
<h1>404</h1> | ||
<p>페이지를 찾을 수 없습니다.</p> | ||
<Link to='/'>홈으로 돌아가기</Link> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
const Wrapper = css` | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
` | ||
|
||
const TextContainer = css` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: 1.5rem; | ||
a { | ||
font-weight: 600; | ||
color: ${Color.Primary}; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
` |
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,43 @@ | ||
import { css } from '@emotion/react' | ||
import main_image from '../../assets/main_image.svg' | ||
import { Link } from 'wouter' | ||
import { Color } from '../../palette' | ||
|
||
export const ServerError = () => { | ||
return ( | ||
<div css={Wrapper}> | ||
<img src={main_image} alt='404' /> | ||
<div css={TextContainer}> | ||
<h1>500</h1> | ||
<p>에러가 발생했습니다.</p> | ||
<Link to='/'>홈으로 돌아가기</Link> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
const Wrapper = css` | ||
width: 100%; | ||
height: 100vh; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
` | ||
|
||
const TextContainer = css` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
font-size: 1.5rem; | ||
a { | ||
font-weight: 600; | ||
color: ${Color.Primary}; | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
` |