forked from codediodeio/angular-firestarter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.component.html
More file actions
70 lines (59 loc) · 2.43 KB
/
Copy pathshell.component.html
File metadata and controls
70 lines (59 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<mat-sidenav-container class="sidenav-container">
<mat-sidenav #drawer class="sidenav" fixedInViewport
[attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'"
[mode]="(isHandset$ | async) ? 'over' : 'side'"
[opened]="false">
<mat-toolbar>Menu</mat-toolbar>
<mat-nav-list>
<a mat-list-item routerLink="/" (click)="drawer.close()">Home</a>
<a mat-list-item routerLink="/login" (click)="drawer.close()">Login</a>
<a mat-list-item routerLink="/kanban" (click)="drawer.close()">Kanban Demo</a>
<a mat-list-item routerLink="/customers" (click)="drawer.close()">SSR Demo</a>
</mat-nav-list>
</mat-sidenav>
<mat-sidenav-content>
<mat-toolbar>
<button
type="button"
aria-label="Toggle sidenav"
mat-icon-button
(click)="drawer.toggle()"
*ngIf="isHandset$ | async">
<mat-icon aria-label="Side nav toggle icon">menu</mat-icon>
</button>
<span class="logo" routerLink="/">🔥 Angular Firestarter</span>
<span class="fill-space"></span>
<div *ngIf="!(isHandset$ | async)">
<a mat-button routerLink="/kanban">🍱 Kanban Demo</a>
<a mat-button routerLink="/customers">⚡ SSR Demo</a>
<a mat-button routerLink="/login" *ngIf="!(afAuth.authState | async)">🔑 Login</a>
<a mat-button routerLink="/login" *ngIf="afAuth.authState | async as user" >
<img class="avatar" [src]="user.photoURL || 'assets/default-user.svg'">
Profile
</a>
</div>
<button mat-icon-button [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
<mat-icon>more_vert</mat-icon>
</button>
<mat-menu #menu="matMenu">
<a mat-menu-item href="https://fireship.page.link/slack">
<i>💬</i>
<span>Chat on Slack</span>
</a>
<a mat-menu-item href="https://github.com/codediodeio/angular-firestarter">
<i>💾</i>
<span>Code on Github</span>
</a>
<a mat-menu-item href="https://fireship.io/courses/angular">
<i>🔥</i>
<span>Full Course on Fireship</span>
</a>
<a mat-menu-item href="https://www.youtube.com/channel/UCsBjURrPoezykLs9EqgamOA">
<i>📺</i>
<span>Watch on the YouTube</span>
</a>
</mat-menu>
</mat-toolbar>
<ng-content></ng-content>
</mat-sidenav-content>
</mat-sidenav-container>