Skip to content

Commit

Permalink
Fix user meta on contributor page
Browse files Browse the repository at this point in the history
user profile with more readable context and fill the white space
  • Loading branch information
Fauz committed Oct 28, 2019
1 parent 640d7c3 commit 2410bbd
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions pages/contributors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ function ContributorCard(props) {
<div className="picture">
<img src={cont.user.avatar_url}/>
</div>
<div className="name">{cont.user.login}</div>
<div className="tricks-count">{cont.issues.length} {cont.issues.length === 1 ? 'trick' : 'tricks'}</div>
<div className="profile-url"><a href={`https://github.com/${cont.user.login}`} target="_blank">{`https://github.com/${cont.user.login}`}</a></div>
<div className="user-info">
<div className="name">{cont.user.login}</div>
<div className="tricks-count">{cont.issues.length} {cont.issues.length === 1 ? 'trick' : 'tricks'}</div>
<div className="profile-url"><a href={`https://github.com/${cont.user.login}`} target="_blank">{`https://github.com/${cont.user.login}`}</a></div>
</div>
</div>
</div>
))}
Expand Down Expand Up @@ -73,12 +75,31 @@ function ContributorCard(props) {
margin-bottom: 40px;
}
.user-meta {
display: flex;
vertical-align: middle;
align-items: center;
}
.user-meta .picture img {
width: 100px;
height: 100px;
border-radius: 52% 55% 77% 67% / 54% 84% 41% 72%;
border: 3px solid #4618B1
}
.user-info {
padding-left: 10px;
}
.user-info div {
padding: 3px 0;
}
.user-info .name {
font-weight: 600;
}
`}
</style>
</div>
Expand Down

0 comments on commit 2410bbd

Please sign in to comment.