app.component.html 2.12 KB
Newer Older
Chris Hines's avatar
Chris Hines committed
1
<!-- <router-outlet class="fill-remaining-space"></router-outlet> -->
2
<!--<div *ngIf="(tesService.theme | async) == 'strudel-dark-theme'" class="strudel-dark-theme" style="width: 100vw; height: 100vh">
Chris Hines's avatar
Chris Hines committed
3
<router-outlet></router-outlet>
4
5
6
7
8
</div>
<div *ngIf="(tesService.theme | async) == 'strudel-light-theme'" class="strudel-light-theme" style="width: 100vw; height: 100vh">
<router-outlet></router-outlet>
</div> -->

9
<!--<app-launcher></app-launcher>-->
Chris Hines's avatar
Chris Hines committed
10
11
12
13
14
<mat-sidenav-container style="height: 100vh; width: 100%">
    <!--<mat-sidenav-container>-->
    <mat-sidenav closed>
        1st sidenav
    </mat-sidenav>
15
    <mat-sidenav-content>
Chris Hines's avatar
Chris Hines committed
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
        <div fxLayout="column" fxLayoutAlign="space-between stretch" style="height: 100%; width: 100%">
        <mat-toolbar color="primary">
            <div fxLayout="row" style="width: 100%">
              <mat-toolbar-row style="width: 100%">
                    <img src="assets/MASSIVElogoTransparent128x128.png" style="width: auto; height: 90%">
                    <span>Strudel2</span>
                    <span fxFlex></span>
                    <span class="fill-horizontal-space"></span>
                    <button  mat-icon-button [matMenuTriggerFor]="actionmenu">
                        <mat-icon>person</mat-icon>
                    </button>

                    <mat-menu #actionmenu="matMenu">
                        <div *ngFor="let az of (authService.loggedInAuthZ | async)">
                            <button mat-menu-item routerLink="/logout"><mat-icon>logout</mat-icon>Log out of {{ az.name }}</button>
                        </div>
                        <button mat-menu-item routerLink="/settings"><mat-icon>settings</mat-icon>Settings</button>
                        <button *ngIf="(authService.loggedOutAuthZ | async).length > 0" mat-menu-item routerLink="/login"><mat-icon>exit_to_app</mat-icon>More services</button>
                    </mat-menu>
                </mat-toolbar-row>
            </div>
          </mat-toolbar>
          <div style="height: 100%">
          <router-outlet></router-outlet>
          </div>
        </div>
42
43
    </mat-sidenav-content>
</mat-sidenav-container>