-
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.
feat(web, web-domains): not-found 페이지 추가 (#137)
* chore: not-found 페이지 * fix: 경로 export 수정 Co-authored-by: Doeun Kim <doeunnkimm@gmail.com> * fix: Icon 컴포넌트 분리 * fix: Icon 이름 수정 --------- Co-authored-by: Doeun Kim <doeunnkimm@gmail.com>
- Loading branch information
1 parent
5830217
commit bdbd469
Showing
6 changed files
with
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Error404 } from '@sambad/web-domains/common'; | ||
|
||
const NotFoundPage = () => { | ||
return <Error404 />; | ||
}; | ||
|
||
export default NotFoundPage; |
14 changes: 14 additions & 0 deletions
14
packages/core/sds/src/components/Icon/assets/CrossCircle.tsx
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,14 @@ | ||
import { IconAssetProps } from '../types'; | ||
|
||
export const CrossCircle = (props: IconAssetProps) => { | ||
const { color, size } = props; | ||
|
||
return ( | ||
<svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 65 64" fill="none" {...props}> | ||
<path | ||
d="M32.5 0C14.8269 0 0.5 14.3269 0.5 32C0.5 49.6731 14.8269 64 32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.4809 14.3347 50.1653 0.019125 32.5 0ZM43.1666 38.8986C44.2503 39.896 44.3203 41.583 43.3229 42.6666C42.3255 43.7503 40.6385 43.8203 39.5549 42.8229C39.5006 42.773 39.4486 42.7209 39.3986 42.6666L32.5 35.7706L25.604 42.6666C24.5446 43.6898 22.8565 43.6604 21.8334 42.601C20.8354 41.5676 20.8354 39.9294 21.8334 38.896L28.7294 32L21.8334 25.104C20.8103 24.0446 20.8396 22.3565 21.899 21.3334C22.9324 20.3354 24.5706 20.3354 25.604 21.3334L32.5 28.2294L39.3986 21.3334C40.396 20.2498 42.083 20.1798 43.1666 21.1771C44.2503 22.1745 44.3203 23.8615 43.3229 24.9451C43.273 24.9994 43.2209 25.0514 43.1666 25.1014L36.2706 32L43.1666 38.8986Z" | ||
fill={color} | ||
/> | ||
</svg> | ||
); | ||
}; |
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 @@ | ||
'use client'; | ||
|
||
import { css } from '@emotion/react'; | ||
import { Icon, Txt } from '@sds/components'; | ||
import { colors, size } from '@sds/theme'; | ||
|
||
import { titleCss } from './styles'; | ||
|
||
export const Error404 = () => { | ||
return ( | ||
<div css={containerCss}> | ||
<Icon name="cross-circle" size={65} color={colors.grey400} style={{ marginBottom: size.sm }} /> | ||
<h1 css={titleCss}>페이지를 찾을 수 없습니다</h1> | ||
<Txt typography="body2" as="h2" color={colors.grey600} css={{ textAlign: 'center' }}> | ||
죄송합니다. 원하시는 페이지를 찾을 수 없습니다. | ||
<br /> | ||
요청하신 페이지가 사라졌거나, 잘못된 경로입니다. | ||
</Txt> | ||
</div> | ||
); | ||
}; | ||
|
||
const containerCss = css({ | ||
width: '100%', | ||
height: '100dvh', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
position: 'relative', | ||
}); |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export { Error500 } from './500'; | ||
export { Error404 } from './404'; |
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