Skip to content

Commit

Permalink
add css to user info
Browse files Browse the repository at this point in the history
  • Loading branch information
Suuuuha committed Apr 12, 2017
1 parent e01fe35 commit 917c4ee
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
27 changes: 27 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,30 @@ header p {
margin: 12px 0px;
box-sizing: border-box;
}

.user-info {
float: right;
}

.user-info:after {
content: "";
display: table;
clear: both;
}

.user-info img {
display:block;
float: right;
border-radius: 50%;
height: 64px;
}

.user-info:after {
content: "";
display: table;
clear: both;
}

.user-info strong {
display: block;
}
8 changes: 5 additions & 3 deletions src/views/partials/header.hbs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<header class="members-header container">
{{#if username}}
<strong>{{username}}</strong>
<img src="{{avatar_url}}" alt="{{username}}'s profile picture">
{{/if}}
<div class="user-info">
<strong>{{username}}</strong>
<img src="{{avatar_url}}" alt="{{username}}'s profile picture">
</div>
{{/if}}
<h1>{{title}}</h1>
<p>{{description}}</p>
</header>

0 comments on commit 917c4ee

Please sign in to comment.