Refactor post list view
This commit is contained in:
parent
2ee6ed8104
commit
391cc98e35
4 changed files with 10 additions and 9 deletions
|
|
@ -26,7 +26,7 @@ class PostItem extends React.Component {
|
|||
|
||||
<div className="posts-info">
|
||||
<span className="posts-info__date" title={publicationDate}>
|
||||
{publicationDate}
|
||||
{publicationDate} {post.author && `By ${post.author}`}
|
||||
</span>
|
||||
<a
|
||||
className="posts-info__link"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
.posts-info {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
|
||||
width: 20%;
|
||||
margin: 10px 0;
|
||||
gap: 15px;
|
||||
|
||||
&__date {
|
||||
align-self: center;
|
||||
|
|
@ -12,4 +12,8 @@
|
|||
&__link {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
& .gg-link {
|
||||
transform: rotate(-45deg) scale(var(--ggs, 0.9));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@
|
|||
}
|
||||
|
||||
&__name {
|
||||
padding: 20px 0 10px 0;
|
||||
padding: 0 10px 10px 10px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,9 @@
|
|||
|
||||
&__item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column-reverse;
|
||||
|
||||
padding: 10px 0 10px 0;
|
||||
|
||||
border-radius: 2px;
|
||||
border-bottom: 2px solid $azureish-white;
|
||||
padding: 10px;
|
||||
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue