Skip to content

Commit f1f6405

Browse files
committed
fix(header): remove hardcoded avatar
1 parent e746893 commit f1f6405

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/app/components/app-header/app-header.component.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
</a>
2222
</div>
2323
<div class="header-right">
24-
<div class="header-item">
24+
<div class="header-item" *ngIf="user">
2525
<span class="header-user-span user-item" (click)="menuDropped = !menuDropped">
26-
<img src="https://avatars1.githubusercontent.com/u/1796022?s=460&v=4" alt="Jan Kuri" class="avatar-img">
26+
<img [src]="user.avatar" class="avatar-img">
2727
<i class="ionicon ion-chevron-down"></i>
2828
</span>
2929
<div class="header-dropdown-menu" *ngIf="menuDropped">
@@ -43,6 +43,10 @@
4343
</a>
4444
</div>
4545
</div>
46+
<div class="header-item" *ngIf="!user" routerLink="/login">
47+
<img src="/images/icons/login.svg" class="nav-item-icon">
48+
Login
49+
</div>
4650
</div>
4751
</div>
4852
</header>

src/app/styles/nav.sass

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030

3131
.header-item
3232
margin-left: 30px
33+
font-weight: 700
34+
font-size: 13px
35+
font-family: $font-family-semibold
36+
color: $white
37+
38+
.nav-item-icon
39+
width: 20px
40+
height: 20px
41+
margin-right: 10px
3342

3443
.header-item
3544
display: inline-flex

0 commit comments

Comments
 (0)