Skip to content

Commit

Permalink
Merge pull request #88 from Kernel360/ui-details-loading
Browse files Browse the repository at this point in the history
공통 컴포넌트: DetailsLoading
  • Loading branch information
bottlewook authored Jan 17, 2024
2 parents dd0a711 + f9df0e7 commit b1c3a5b
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
Binary file added public/assets/loading.png
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 src/components/details/details-loading/DetailsLoading.module.scss
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 src/components/details/details-loading/DetailsLoading.stories.tsx
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: {

},
};
23 changes: 23 additions & 0 deletions src/components/details/details-loading/DetailsLoading.tsx
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;

0 comments on commit b1c3a5b

Please sign in to comment.