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
|
Home</a>
|
12
|
<a mat-list-item routerLink="search">
|
13
|
<mat-icon>search</mat-icon>
|
14
|
Search</a>
|
15
|
<a mat-list-item routerLink="browse">
|
16
|
<mat-icon>list</mat-icon>
|
17
|
Browse</a>
|
18
|
<a mat-list-item routerLink="upload">
|
19
|
<mat-icon>backup</mat-icon>
|
20
|
Upload</a>
|
21
|
<a mat-list-item (click)="openAboutDialog()">
|
22
|
<mat-icon>info</mat-icon>
|
23
|
About</a>
|
24
|
<a mat-list-item routerLink="help">
|
25
|
<mat-icon>help</mat-icon>
|
26
|
Help</a>
|
27
|
<a mat-list-item>
|
28
|
<mat-icon>translate</mat-icon>
|
29
|
EN</a>
|
30
|
</mat-nav-list>
|
31
|
</mat-sidenav>
|
32
|
<mat-sidenav-content>
|
33
|
<mat-toolbar color="primary" class="position-fixed">
|
34
|
<button
|
35
|
type="button"
|
36
|
aria-label="Toggle sidenav"
|
37
|
mat-icon-button
|
38
|
(click)="drawer.toggle()"
|
39
|
*ngIf="isHandset$ | async">
|
40
|
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
|
41
|
</button>
|
42
|
<!-- app logo -->
|
43
|
<div class="app-logo" routerLink="" style="outline: none">
|
44
|
<span style="display: flex;">
|
45
|
<mat-icon>search</mat-icon>
|
46
|
<div>FULL TEXT SEARCH<br> APPLICATION</div>
|
47
|
</span>
|
48
|
</div>
|
49
|
<!-- left navigation items -->
|
50
|
<a mat-button class="noHover active" routerLink="search" *ngIf="!(isHandset$ | async)">Search</a>
|
51
|
<a mat-button routerLink="browse" *ngIf="!(isHandset$ | async)">Browse</a>
|
52
|
<a mat-button routerLink="upload" *ngIf="!(isHandset$ | async)">Upload</a>
|
53
|
<!-- navigation items space -->
|
54
|
<div class="space" *ngIf="!(isHandset$ | async)"></div>
|
55
|
<!-- right navigation items -->
|
56
|
<a mat-button (click)="openAboutDialog()" *ngIf="!(isHandset$ | async)">About</a>
|
57
|
<a mat-button routerLink="help" *ngIf="!(isHandset$ | async)">Help</a>
|
58
|
<a mat-button *ngIf="!(isHandset$ | async)">EN</a>
|
59
|
</mat-toolbar>
|
60
|
<ng-content></ng-content>
|
61
|
</mat-sidenav-content>
|
62
|
</mat-sidenav-container>
|