-
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]: error page add * [feat]: LoadingPage add
- Loading branch information
Showing
14 changed files
with
141 additions
and
6 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
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
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,8 @@ | ||
import ErrorLogoSvg from '@/assets/logo/error.svg?react'; | ||
import { IconProps } from '../types'; | ||
|
||
const ErrorLogoIcon = ({ width, height, className }: IconProps) => { | ||
return <ErrorLogoSvg className={className} width={width} height={height} />; | ||
}; | ||
|
||
export default ErrorLogoIcon; |
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,2 +1,3 @@ | ||
export { default as ReactLogoIcon } from './ReactLogoIcon'; | ||
export { default as ViteLogoIcon } from './ViteLogoIcon'; | ||
export { default as ErrorLogoIcon } from './ErrorLogoIcon'; |
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 '@/styles/theme.scss'; | ||
|
||
.ErrorWrapper { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100dvh; | ||
|
||
> .ErrorContent { | ||
margin-top: 29px; | ||
text-align: center; | ||
|
||
color: $gray600; | ||
font-size: 16px; | ||
font-weight: 600; | ||
line-height: 32px; | ||
|
||
> .ErrorTitle { | ||
font-size: 20px; | ||
} | ||
} | ||
} |
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,26 @@ | ||
import { ErrorLogoIcon } from '@/icons/logo'; | ||
import React from 'react'; | ||
import styles from './Error.module.scss'; | ||
|
||
interface ErrorProps { | ||
type?: 'notFound' | 'error'; | ||
} | ||
|
||
const ErrorPage = ({ type = 'error' }: ErrorProps) => { | ||
const errorType = { | ||
notFound: '페이지를 찾을 수 없습니다.', | ||
error: '비정상적인 접근입니다.', | ||
}; | ||
return ( | ||
<div className={styles.ErrorWrapper}> | ||
<ErrorLogoIcon width={66} height={64} /> | ||
<div className={styles.ErrorContent}> | ||
<div className={styles.ErrorTitle}>불편을 드려 죄송합니다</div> | ||
<div>{errorType[type]}</div> | ||
<div>잠시후, 다시 시도해 주세요.</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ErrorPage; |
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,12 @@ | ||
.LoadingSpinnerWrapper { | ||
position: fixed; | ||
left: 0px; | ||
top: 0px; | ||
width: 100dvw; | ||
height: 100dvh; | ||
background-color: rgba($color: #fff, $alpha: 0.8); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
pointer-events: none; | ||
} |
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,13 @@ | ||
import Lottie from 'lottie-react'; | ||
import spinnerData from './mongleloading.json'; | ||
import styles from './Loading.module.scss'; | ||
|
||
const LoadingSpinner = () => { | ||
return ( | ||
<div className={styles.LoadingSpinnerWrapper}> | ||
<Lottie loop={true} animationData={spinnerData} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoadingSpinner; |
Large diffs are not rendered by default.
Oops, something went wrong.
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