Permalink
Browse files

fix(header): remove hardcoded avatar

  • Loading branch information...
jkuri committed Nov 6, 2017
1 parent e746893 commit f1f64059cc7f3e883a97d910c9638e5810689714
Showing with 15 additions and 2 deletions.
  1. +6 −2 src/app/components/app-header/app-header.component.html
  2. +9 −0 src/app/styles/nav.sass
@@ -21,9 +21,9 @@
</a>
</div>
<div class="header-right">
<div class="header-item">
<div class="header-item" *ngIf="user">
<span class="header-user-span user-item" (click)="menuDropped = !menuDropped">
<img src="https://avatars1.githubusercontent.com/u/1796022?s=460&v=4" alt="Jan Kuri" class="avatar-img">
<img [src]="user.avatar" class="avatar-img">
<i class="ionicon ion-chevron-down"></i>
</span>
<div class="header-dropdown-menu" *ngIf="menuDropped">
@@ -43,6 +43,10 @@
</a>
</div>
</div>
<div class="header-item" *ngIf="!user" routerLink="/login">
<img src="/images/icons/login.svg" class="nav-item-icon">
Login
</div>
</div>
</div>
</header>
@@ -30,6 +30,15 @@

.header-item
margin-left: 30px
font-weight: 700
font-size: 13px
font-family: $font-family-semibold
color: $white

.nav-item-icon
width: 20px
height: 20px
margin-right: 10px

.header-item
display: inline-flex

0 comments on commit f1f6405

Please sign in to comment.