Skip to content

Commit

Permalink
fix(skeleton): added blog skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
HoseaCodes committed Dec 17, 2021
1 parent a876101 commit 48ff28f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Components/Skeleton/skeleton.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
/* overflow: hidden; */
}

.skeleton-blog {
background: #23292f;
border-radius: 5%;
height: 100%;
}

.shimmer {
width: 50%;
height: 100%;
Expand Down
27 changes: 27 additions & 0 deletions src/Components/Skeleton/skeletonBlog.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react';
import SkeletonElement from './skeletonElement';
import Shimmer from './shimmer';

const SkeletonBlog = () => {
return (
<div className="skeleton-wrapper skeleton-blog col-lg-11 ">
<div style={{display: 'flex'}}>
<div className="article-card">
<SkeletonElement type="avatar"/>
</div>

<div className='article-content'>
<SkeletonElement type="title" />
<SkeletonElement type="text" />
<SkeletonElement type="text" />
<SkeletonElement type="text" />
<SkeletonElement type="text" />
<SkeletonElement type="text" />
</div>
</div>
<Shimmer/>
</div>
)
}

export default SkeletonBlog;

0 comments on commit 48ff28f

Please sign in to comment.