Skip to content

Commit

Permalink
feat: SkeletonProfileUser 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Legitgoons committed May 30, 2024
1 parent 2bf9184 commit 4f19f73
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
82 changes: 82 additions & 0 deletions src/widgets/profile-user/ui/SkeletonProfileUser.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
.skeleton-profile-user-wrapper {
height: 260px;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
box-shadow: 0px 20px 34.5px 0px #dddddd40;

.skeleton-profile-top-container {
height: 148px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;

.skeleton-proile {
@include skeletonAnimation();
background-color: $gray2;
position: relative;
width: 81px;
height: 81px;
border-radius: 50%;
overflow: hidden;
}

.skeleton-user-name {
@include skeletonAnimation();
background-color: $gray2;
width: 53px;
height: 14px;
border-radius: 4px;
}

.skeleton-profile-btn {
@include skeletonAnimation();
background-color: $gray2;
width: 68px;
height: 26px;
border-radius: 6px;
}
}

.skeleton-profile-count-container {
width: 220px;
height: 41px;
display: flex;
align-items: center;
justify-content: space-between;
text-align: center;
padding-top: 28px;

.skeleton-profile-count {
display: flex;
height: 100%;
flex-direction: column;
justify-content: space-between;
align-items: center;
gap: 8px;

.skeleton-count-number {
@include skeletonAnimation();
background-color: $gray2;
width: 26px;
height: 26px;
border-radius: 6px;
}
.skeleton-count-text {
@include skeletonAnimation();
background-color: $gray2;
width: 33px;
height: 14px;
border-radius: 4px;
}
}

.count-divider {
width: 0.5px;
height: 36px;
background-color: $gray4;
}
}
}
29 changes: 29 additions & 0 deletions src/widgets/profile-user/ui/SkeletonProfileUser.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import './SkeletonProfileUser.scss';

export const SkeletonProfileUser = () => {
return (
<section className='skeleton-profile-user-wrapper'>
<section className='skeleton-profile-top-container'>
<div className='skeleton-proile' />
<div className='skeleton-user-name' />
<div className='skeleton-profile-btn'></div>
</section>
<section className='skeleton-profile-count-container'>
<div className='skeleton-profile-count'>
<div className='skeleton-count-number' />
<div className='skeleton-count-text' />
</div>
<div className='count-divider' />
<div className='skeleton-profile-count'>
<div className='skeleton-count-number' />
<div className='skeleton-count-text' />
</div>
<div className='count-divider' />
<div className='skeleton-profile-count'>
<div className='skeleton-count-number' />
<div className='skeleton-count-text' />
</div>
</section>
</section>
);
};

0 comments on commit 4f19f73

Please sign in to comment.