Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

공통 컴포넌트: DetailsLoading #88

Merged
merged 4 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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;
}
}
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;
Loading