-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #411 from ttaerrim/410-404
[Feat] 404 페이지 추가
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 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,31 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
import { vars } from '@/styles'; | ||
import { sansBold16, sansRegular16 } from '@/styles/font.css'; | ||
|
||
const { morakGreen } = vars.color; | ||
|
||
export const button = style([ | ||
sansBold16, | ||
{ | ||
textDecorationLine: 'underline', | ||
color: morakGreen, | ||
cursor: 'pointer', | ||
}, | ||
]); | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
height: '100vh', | ||
}); | ||
|
||
export const text = style([ | ||
sansRegular16, | ||
{ | ||
textAlign: 'center', | ||
whiteSpace: 'break-spaces', | ||
lineHeight: '2rem', | ||
}, | ||
]); |
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 { useNavigate } from 'react-router-dom'; | ||
|
||
import { MessageWrapper } from '@/components'; | ||
|
||
import * as styles from './index.css'; | ||
|
||
export function NotFound() { | ||
const navigate = useNavigate(); | ||
|
||
const onClickMain = () => { | ||
navigate('/'); | ||
}; | ||
return ( | ||
<div className={styles.container}> | ||
<MessageWrapper> | ||
<p className={styles.text}> | ||
{`페이지를 찾을 수 없습니다.\n`} | ||
<button type="button" onClick={onClickMain} className={styles.button}> | ||
메인 페이지로 이동하기 | ||
</button> | ||
</p> | ||
</MessageWrapper> | ||
</div> | ||
); | ||
} |
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