|
|
@ -1,5 +1,7 @@
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <!-- getting the google material fonts-->
|
|
|
|
<mat-sidenav-container class="sidenav-container" class="mat-typography">
|
|
|
|
<mat-sidenav-container class="mat-typography">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SIDENAV -->
|
|
|
|
<mat-sidenav #drawer class="sidenav"
|
|
|
|
<mat-sidenav #drawer class="sidenav"
|
|
|
|
fxShow="true" fxHide.gt-sm="true"
|
|
|
|
fxShow="true" fxHide.gt-sm="true"
|
|
|
|
fixedInViewport="false"
|
|
|
|
fixedInViewport="false"
|
|
|
@ -21,8 +23,12 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</mat-nav-list>
|
|
|
|
</mat-nav-list>
|
|
|
|
</mat-sidenav>
|
|
|
|
</mat-sidenav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- TOOLBAR -->
|
|
|
|
<mat-sidenav-content>
|
|
|
|
<mat-sidenav-content>
|
|
|
|
<mat-toolbar color="primary" class="mat-elevation-z4">
|
|
|
|
<mat-toolbar color="primary" class="mat-elevation-z4">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--content on SMALL SCREEN-->
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
type="button"
|
|
|
|
aria-label="Toggle sidenav"
|
|
|
|
aria-label="Toggle sidenav"
|
|
|
@ -32,7 +38,6 @@
|
|
|
|
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
|
|
|
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
<span>Greenvironment</span>
|
|
|
|
<span>Greenvironment</span>
|
|
|
|
<!--The following menu items will be hidden on both SM and XS screen sizes -->
|
|
|
|
|
|
|
|
<nav mat-tab-nav-bar backgroundColor="primary" fxShow="true" fxHide.lt-md="true">
|
|
|
|
<nav mat-tab-nav-bar backgroundColor="primary" fxShow="true" fxHide.lt-md="true">
|
|
|
|
<div [hidden]="!loggedIn">
|
|
|
|
<div [hidden]="!loggedIn">
|
|
|
|
<a mat-tab-link class="link"
|
|
|
|
<a mat-tab-link class="link"
|
|
|
@ -57,15 +62,19 @@
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--content on BIG SCREEN-->
|
|
|
|
<div id="menu-button-box">
|
|
|
|
<div id="menu-button-box">
|
|
|
|
<span class="mat-button" *ngIf="loggedIn" fxShow="true" fxHide.lt-md="true" routerLink={{profileUrl}}>Hello, {{user.username}}</span>
|
|
|
|
<span class="mat-button" *ngIf="loggedIn" fxShow="true" fxHide.lt-md="true" routerLink={{profileUrl}}>Hello, {{user.username}}</span>
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="requestMenu" [disabled]="!loggedIn" id="menu-button">
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="requestMenu" [disabled]="!loggedIn" id="menu-button">
|
|
|
|
<mat-icon [matBadge]="user.receivedRequests.length" [matBadgeHidden]="!(user.receivedRequests.length > 0)" matBadgeColor="accent">notifications</mat-icon>
|
|
|
|
<mat-icon [matBadge]="user.receivedRequests.length" [matBadgeHidden]="!(user.receivedRequests.length > 0)" matBadgeColor="accent">notifications</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="menu" id="menu-button">
|
|
|
|
<button mat-icon-button [matMenuTriggerFor]="menu" id="menu-button">
|
|
|
|
<mat-icon>more_vert</mat-icon>
|
|
|
|
<mat-icon>more_vert</mat-icon>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<mat-menu #requestMenu="matMenu">
|
|
|
|
<mat-menu #requestMenu="matMenu">
|
|
|
|
<span mat-menu-item disableRipple="true" disabled="true">friend requests:</span>
|
|
|
|
<span mat-menu-item disableRipple="true" disabled="true">friend requests:</span>
|
|
|
|
<button mat-menu-item *ngFor = "let request of user.receivedRequests" [class.selected]="request === selectedRequest" (click)="$event.stopPropagation();" disableRipple="true">
|
|
|
|
<button mat-menu-item *ngFor = "let request of user.receivedRequests" [class.selected]="request === selectedRequest" (click)="$event.stopPropagation();" disableRipple="true">
|
|
|
@ -96,6 +105,7 @@
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</mat-menu>
|
|
|
|
</mat-menu>
|
|
|
|
|
|
|
|
|
|
|
|
</mat-toolbar>
|
|
|
|
</mat-toolbar>
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
<router-outlet></router-outlet>
|
|
|
|
</mat-sidenav-content>
|
|
|
|
</mat-sidenav-content>
|
|
|
|