1
|
<mat-sidenav-container class="sidenav-container">
|
2
|
<mat-sidenav #drawer class="sidenav position-fixed" fixedInViewport
|
3
|
[attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'"
|
4
|
[mode]="(isHandset$ | async) ? 'over' : 'side'"
|
5
|
[opened]="(isHandset$ | async) === false"
|
6
|
[ngClass]="{hidden: !(isHandset$ | async)}">
|
7
|
<mat-toolbar>Menu</mat-toolbar>
|
8
|
<mat-nav-list (click)="drawer.close()">
|
9
|
<a mat-list-item routerLink="">
|
10
|
<mat-icon>home</mat-icon>
|
11
|
{{'app-main-nav.home' | translate}}</a>
|
12
|
<a mat-list-item routerLink="search">
|
13
|
<mat-icon>search</mat-icon>
|
14
|
{{'app-main-nav.search' | translate}}</a>
|
15
|
<a mat-list-item routerLink="browse">
|
16
|
<mat-icon>list</mat-icon>
|
17
|
{{'app-main-nav.browse' | translate}}</a>
|
18
|
<a mat-list-item routerLink="upload">
|
19
|
<mat-icon>backup</mat-icon>
|
20
|
{{'app-main-nav.upload' | translate}}</a>
|
21
|
<a mat-list-item (click)="openAboutDialog()">
|
22
|
<mat-icon>info</mat-icon>
|
23
|
{{'app-main-nav.about' | translate}}</a>
|
24
|
<a mat-list-item routerLink="help">
|
25
|
<mat-icon>help</mat-icon>
|
26
|
{{'app-main-nav.help' | translate}}</a>
|
27
|
</mat-nav-list>
|
28
|
</mat-sidenav>
|
29
|
<mat-sidenav-content>
|
30
|
<mat-toolbar color="primary" class="position-fixed">
|
31
|
<button
|
32
|
type="button"
|
33
|
aria-label="Toggle sidenav"
|
34
|
mat-icon-button
|
35
|
(click)="drawer.toggle()"
|
36
|
*ngIf="isHandset$ | async">
|
37
|
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
38
|
</button>
|
39
|
<!-- app logo -->
|
40
|
<div class="app-logo" routerLink="" style="outline: none">
|
41
|
<span style="display: flex;">
|
42
|
<mat-icon>search</mat-icon>
|
43
|
<div>{{'app-main-nav.title1' | translate}}<br> {{'app-main-nav.title2' | translate}}</div>
|
44
|
</span>
|
45
|
</div>
|
46
|
<!-- left navigation items -->
|
47
|
<a mat-button class="noHover active" routerLink="search" *ngIf="!(isHandset$ | async)">{{'app-main-nav.search' | translate}}</a>
|
48
|
<a mat-button routerLink="browse" *ngIf="!(isHandset$ | async)">{{'app-main-nav.browse' | translate}}</a>
|
49
|
<a mat-button routerLink="upload" *ngIf="!(isHandset$ | async)">{{'app-main-nav.upload' | translate}}</a>
|
50
|
<!-- navigation items space -->
|
51
|
<div class="space"></div>
|
52
|
<!-- right navigation items -->
|
53
|
<a mat-button (click)="openAboutDialog()" *ngIf="!(isHandset$ | async)">{{'app-main-nav.about' | translate}}</a>
|
54
|
<a mat-button routerLink="help" *ngIf="!(isHandset$ | async)">{{'app-main-nav.help' | translate}}</a>
|
55
|
<select #langSelect (change)="onLanguageSelect($event, langSelect)">
|
56
|
<option *ngFor="let lang of translate.getLangs()" [value]="lang" [selected]="lang === translate.currentLang">{{lang | uppercase}}</option>
|
57
|
</select>
|
58
|
</mat-toolbar>
|
59
|
<ng-content></ng-content>
|
60
|
</mat-sidenav-content>
|
61
|
</mat-sidenav-container>
|