Skip to content

Commit

Permalink
Merge pull request #18 from FACN1/css
Browse files Browse the repository at this point in the history
CSS for profile picture and username !
  • Loading branch information
macintoshhelper authored Apr 12, 2017
2 parents e01fe35 + 30f321e commit a3f4ecd
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">
<img src="{{avatar_url}}" alt="{{username}}'s profile picture">
<strong>{{username}}</strong>
</div>
{{/if}}
<h1>{{title}}</h1>
<p>{{description}}</p>
</header>

0 comments on commit a3f4ecd

Please sign in to comment.