aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/navbar/navbar.component.html
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 18:35:56 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-03-22 18:35:56 +0200
commita19b16923b1e190ffc31c58acbf0651760abd4ac (patch)
treea2bdec9c5bbd0c533adf970fad85f8a7fa3abd60 /src/app/components/navbar/navbar.component.html
parent72bc161e3b33a65783647615736cff6f8581f8be (diff)
downloadDevHive-Angular-a19b16923b1e190ffc31c58acbf0651760abd4ac.tar
DevHive-Angular-a19b16923b1e190ffc31c58acbf0651760abd4ac.tar.gz
DevHive-Angular-a19b16923b1e190ffc31c58acbf0651760abd4ac.zip
Navbar shows only the login button with text when use isn't logged in
Diffstat (limited to 'src/app/components/navbar/navbar.component.html')
-rw-r--r--src/app/components/navbar/navbar.component.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app/components/navbar/navbar.component.html b/src/app/components/navbar/navbar.component.html
index a30f845..89a15e1 100644
--- a/src/app/components/navbar/navbar.component.html
+++ b/src/app/components/navbar/navbar.component.html
@@ -1,8 +1,5 @@
<nav id="navbar">
<div id="nav-contents" class="centered-content flex-row padding-smaller flex-center-align-items">
- <div class="flexible" *ngIf="!loggedIn">
- <!-- This element serves as a spacer -->
- </div>
<div class="nav-item border-radius-small flex-row flex-center-align-items light-hover hover-half-opacity click-effect" (click)="goToProfile()" *ngIf="loggedIn">
<div id="nav-profile-picture" class="flex-col">
<img class="round-image" [src]="user.profilePictureURL">
@@ -13,7 +10,7 @@
</div>
</div>
</div>
- <div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="goToFeed()">
+ <div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="goToFeed()" *ngIf="loggedIn">
<img src="/assets/icons/tabler-icon-home.svg">
</div>
<div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" style="display: none">
@@ -37,7 +34,8 @@
<div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="logout()" *ngIf="loggedIn">
<img src="/assets/icons/tabler-icon-logout.svg">
</div>
- <div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="goToLogin()" *ngIf="!loggedIn">
+ <div class="nav-item flex-row flex-center-align-items border-radius-small light-hover hover-half-opacity click-effect side-padding-smaller" (click)="goToLogin()" *ngIf="!loggedIn">
+ Login&nbsp;
<img src="/assets/icons/tabler-icon-login.svg">
</div>
<div class="flexible" *ngIf="!loggedIn">