Skip to content

Commit

Permalink
Feature/new logo (#186)
Browse files Browse the repository at this point in the history
* favicon + logo
  • Loading branch information
antoniasymeonidou authored Apr 22, 2021
1 parent e1b79c7 commit 4605365
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 19 deletions.
40 changes: 21 additions & 19 deletions ui/pi-web-agent-app/src/app/main-view/main-view.component.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
<div class="main-container" [class.main-is-mobile]="mobileQuery.matches">
<mat-toolbar color="primary" class="main-toolbar">
<button mat-icon-button (click)="snav.toggle()">
<mat-icon>menu</mat-icon>
</button>
<h1 class="main-app-name">{{title}}</h1>
</mat-toolbar>
<mat-toolbar color="primary" class="main-toolbar">
<button mat-icon-button (click)="snav.toggle()">
<mat-icon>menu</mat-icon>
</button>
<h1 class="main-app-name">{{title}}</h1><span class="example-spacer"></span>
<img src="/assets/images/logo 64x64.png">
</mat-toolbar>

<mat-sidenav-container class="main-sidenav-container" [style.marginTop.px]="mobileQuery.matches ? 56 : 0">
<mat-sidenav #snav [mode]="mobileQuery.matches ? 'over' : 'side'" [fixedInViewport]="mobileQuery.matches"
fixedTopGap="56">
<mat-nav-list>
<a mat-list-item routerLink="/"><mat-icon>home</mat-icon>Main screen</a>
<a mat-list-item routerLink="/power-management"> <mat-icon>settings_power</mat-icon>Power Management</a>
</mat-nav-list>
</mat-sidenav>
<mat-sidenav-container class="main-sidenav-container" [style.marginTop.px]="mobileQuery.matches ? 56 : 0">
<mat-sidenav #snav [mode]="mobileQuery.matches ? 'over' : 'side'" [fixedInViewport]="mobileQuery.matches"
fixedTopGap="56">

<mat-nav-list>
<a mat-list-item routerLink="/"><mat-icon>home</mat-icon>Main screen</a>
<a mat-list-item routerLink="/power-management"> <mat-icon>settings_power</mat-icon>Power Management</a>
</mat-nav-list>
</mat-sidenav>

<mat-sidenav-content>
<router-outlet></router-outlet>
</mat-sidenav-content>
</mat-sidenav-container>
<app-online-indicator></app-online-indicator>
<mat-sidenav-content>
<router-outlet></router-outlet>
</mat-sidenav-content>
</mat-sidenav-container>
<app-online-indicator></app-online-indicator>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
z-index: 2;
}

.example-spacer {
flex: 1 1 auto;
}


h1.main-app-name {
margin-left: 8px;
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ui/pi-web-agent-app/src/assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/pi-web-agent-app/src/favicon.ico
Binary file not shown.

0 comments on commit 4605365

Please sign in to comment.