-
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 #88 from Kernel360/ui-details-loading
공통 컴포넌트: DetailsLoading
- Loading branch information
Showing
4 changed files
with
57 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.
12 changes: 12 additions & 0 deletions
12
src/components/details/details-loading/DetailsLoading.module.scss
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 @@ | ||
.loadingContainer { | ||
img { | ||
display: block; | ||
margin: 0 auto; | ||
} | ||
|
||
span { | ||
display: block; | ||
width: fit-content; | ||
margin: 0 auto; | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/components/details/details-loading/DetailsLoading.stories.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,22 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import DetailsLoading from './DetailsLoading'; | ||
|
||
const meta = { | ||
title: 'details/DetailsLoading', | ||
component: DetailsLoading, | ||
parameters: { | ||
}, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
}, | ||
} satisfies Meta<typeof DetailsLoading>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const defaultComponent: Story = { | ||
args: { | ||
|
||
}, | ||
}; |
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 classNames from 'classnames/bind'; | ||
import Image from 'next/image'; | ||
|
||
import Spacing from '@shared/spacing/Spacing'; | ||
import Text from '@shared/text/Text'; | ||
|
||
import styles from './DetailsLoading.module.scss'; | ||
|
||
const cx = classNames.bind(styles); | ||
|
||
function DetailsLoading() { | ||
return ( | ||
<div className={cx('loadingContainer')}> | ||
<Spacing size={243} /> | ||
<Image src="/assets/DetailsLoading.png" alt="로딩 중.." width={242} height={200} /> | ||
<Spacing size={16} /> | ||
<Text typography="t3" color="primary" bold>잠시만 기다려 주세요.</Text> | ||
<Text typography="t6" color="tertiary">해당 페이지로 이동 중입니다.</Text> | ||
</div> | ||
); | ||
} | ||
|
||
export default DetailsLoading; |