Skip to content

Commit

Permalink
feat: 온보딩 전용 스켈레톤 ui 컴포넌트 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
ExceptAnyone committed Mar 11, 2024
1 parent 15f867f commit 1412348
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/components/OnBoardingSteps/Skeleton/Skeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import Skeleton from 'react-loading-skeleton';
import 'react-loading-skeleton/dist/skeleton.css';
import styled from 'styled-components';

const OnboardingSkeleton = () => {
return (
<OnboardingSkeletonWrapper>
<TitleWrapper>
<Skeleton
count={1}
style={{
width: '12.3rem',
height: '2.4rem',
}}
/>
<Skeleton
count={1}
style={{
width: '10.2rem',
height: '2.4rem',
}}
/>
<Skeleton
count={1}
style={{
width: '18.9rem',
height: '2.4rem',
}}
/>
</TitleWrapper>
<DetailWrapper>
<Skeleton style={{ width: '100%', height: '0.1rem' }} />
</DetailWrapper>
</OnboardingSkeletonWrapper>
);
};

export default OnboardingSkeleton;

const OnboardingSkeletonWrapper = styled.div`
gap: 11.6rem;
`;

const TitleWrapper = styled.div`
${({ theme }) => theme.mixin.flexBox({ direction: 'column' })};
gap: 0.9rem;
border-radius: 4px;
`;

const DetailWrapper = styled.div`
margin-top: 11.6rem;
`;

0 comments on commit 1412348

Please sign in to comment.