frontend_v2/src/app/components/nav/header-static/header-static.component.html
<div class="main-header padding-lr-header">
<nav [class.grad-shadow-1]="scrolledState">
<div class="nav-wrapper">
<a (click)="menuExpander()" class="button-collapse main-header-link"><i class="fa fa-bars"></i></a>
<ul class="hide-on-med-and-down">
<li>
<a class="waves-effect waves-dark main-header-link evalai-logo" routerLink="/" routerLinkActive="active"
><img src="assets/images/evalai-logo-single.png"
/></a>
</li>
<li>
<a class="waves-effect waves-dark main-header-link" routerLink="/challenges/all" routerLinkActive="active"
[ngClass] = "{'active': tabHighlight == 'allChallenges' && !isChallengeComponent == true}">All Challenges</a>
</li>
<!-- show after authenticate user -->
<li>
<a
class="waves-effect waves-dark main-header-link"
href="https://evalai.readthedocs.io/en/latest/"
target="_blank"
>Docs</a
>
</li>
<li>
<a class="waves-effect waves-dark main-header-link" href="https://evalai-forum.cloudcv.org/" target="_blank"
>Discuss</a
>
</li>
</ul>
<ul class="right hide-on-med-and-down">
<li *ngIf="!authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/auth/signup" routerLinkActive="active"
>Sign Up</a
>
</li>
<li *ngIf="!authService.isAuth">
<a
class="btn ev-btn-dark waves-effect waves-dark grad-btn grad-btn-dark fs-14"
routerLink="/auth/login"
routerLinkActive="active"
>Log In</a
>
</li>
<!-- show after authenticate user -->
<li *ngIf="authService.isAuth">
<a
class="dropdown-button waves-effect waves-dark main-header-link"
data-activates="ev-dropdown"
routerLink="/profile"
routerLinkActive="active"
>
<span class="text-light-black">Hi</span><strong>{{ ' ' + user.username }}</strong>
</a>
</li>
<li *ngIf="authService.isAuth">
<div class="btn ev-btn-dark waves-effect waves-dark grad-btn grad-btn-dark fs-14" (click)="logOut()">
Logout
</div>
</li>
</ul>
<ul class="side-nav expand-menu" (click)="menuExpander()" *ngIf="!isMenuExpanded">
<li>
<div class="userView">
<div class="background">
<a class="white-text name">EvalAI</a>
</div>
</div>
</li>
<li>
<a class="waves-effect waves-dark" routerLink="/" routerLinkActive="active"><i class="fa fa-home"></i>Home</a>
</li>
<li *ngIf="!authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/challenges"
><i class="fa fa-globe"></i>All Challenges</a
>
</li>
<li *ngIf="!authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/auth/signup" routerLinkActive="active"
><i class="fa fa-sign-out"></i>Sign Up</a
>
</li>
<li *ngIf="!authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/auth/login" routerLinkActive="active"
><i class="fa fa-sign-in"></i>Log In</a
>
</li>
<!-- show after authenticate user -->
<li *ngIf="authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/challenges" routerLinkActive="active"
><i class="fa fa-globe"></i>All Challenges</a
>
</li>
<li *ngIf="authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/teams" routerLinkActive="active"
><i class="fa fa-users"></i>Participant Teams</a
>
</li>
<li *ngIf="authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/challenge-create" routerLinkActive="active"
><i class="fa fa-paper-plane"></i>Create Challenge</a
>
</li>
<li *ngIf="authService.isAuth">
<a class="waves-effect waves-dark main-header-link" routerLink="/profile" routerLinkActive="active"
><i class="fa fa-user"></i>Hi {{ user.username }}!</a
>
</li>
</ul>
</div>
</nav>
</div>