mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
Add header and logo
This commit is contained in:
parent
7fed8334b9
commit
8851f4571c
@ -1,8 +1,13 @@
|
||||
<!--<div class="grid-container" gdAreas="header header | folders devices | status-list status-list | footer footer"
|
||||
gdGap="16px" gdRows="auto auto auto"> -->
|
||||
<!--<div class="grid-container" fxLayout="row" fxLayoutGap="16px grid" fxLayoutAlign="stretch">-->
|
||||
<div class="header" fxLayout="row" fxLayoutAlign="space-between center">
|
||||
<div fxLayout="row" fxLayoutGap="16px" fxLayoutAlign="start center">
|
||||
<img src="assets/logo-horizontal.svg" width="150px" />
|
||||
<span>Tech UI</span>
|
||||
</div>
|
||||
</div>
|
||||
<div fxLayout="column" fxLayoutGap="16px" class="grid-container">
|
||||
<h1>Tech UI</h1>
|
||||
<div fxLayout="row" fxLayoutGap="16px" fxLayoutAlign="space-between stretch">
|
||||
<app-chart [type]=folderChart fxFlex="50"></app-chart>
|
||||
<app-chart [type]=deviceChart fxFlex="50"></app-chart>
|
||||
|
@ -1,3 +1,7 @@
|
||||
.grid-container {
|
||||
margin: 20px;
|
||||
.header {
|
||||
margin: 20px 3vw 20px 3vw;
|
||||
}
|
||||
.grid-container {
|
||||
margin: 10px calc(10px + 3.3vw);
|
||||
min-width: 600px;
|
||||
}
|
@ -50,13 +50,13 @@ namespace Device {
|
||||
export function stateTypeToColor(s: StateType): string {
|
||||
switch (s) {
|
||||
case StateType.Insync:
|
||||
return colors.get("green");
|
||||
return colors.get("blue");
|
||||
case StateType.UnusedInsync:
|
||||
return colors.get("grey");
|
||||
case StateType.Unknown:
|
||||
return colors.get("grey");
|
||||
case StateType.Syncing:
|
||||
return colors.get("blue");
|
||||
return colors.get("green");
|
||||
case StateType.Paused:
|
||||
return colors.get("grey");
|
||||
case StateType.UnusedPaused:
|
||||
|
@ -82,7 +82,7 @@ namespace Folder {
|
||||
case StateType.Scanning:
|
||||
return colors.get("grey");
|
||||
case StateType.Idle:
|
||||
return colors.get("green");
|
||||
return colors.get("blue");
|
||||
case StateType.LocalAdditions:
|
||||
return colors.get("grey");
|
||||
case StateType.WaitingToScan:
|
||||
@ -90,7 +90,7 @@ namespace Folder {
|
||||
case StateType.PreparingToSync:
|
||||
return colors.get("grey");
|
||||
case StateType.Syncing:
|
||||
return colors.get("blue");
|
||||
return colors.get("green");
|
||||
case StateType.OutOfSync:
|
||||
return colors.get("grey");
|
||||
case StateType.FailedItems:
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="{{elevation}} tui-card">
|
||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||
<div class="tui-card-title">Status</div>
|
||||
<div class="tui-card-title">{{title | uppercase}}</div>
|
||||
<app-list-toggle (listTypeEvent)="onToggle($event)" class="tui-card-content"></app-list-toggle>
|
||||
</div>
|
||||
<div class="tui-card-content">
|
||||
|
@ -12,6 +12,7 @@ export class StatusListComponent implements OnInit {
|
||||
currentListType: ListType = ListType.Folders;
|
||||
listType = ListType; // used in html
|
||||
elevation: string = cardElevation;
|
||||
title: string = 'Status';
|
||||
|
||||
constructor() { }
|
||||
|
||||
|
BIN
src/assets/logo-horizontal.svg
Normal file
BIN
src/assets/logo-horizontal.svg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
Loading…
Reference in New Issue
Block a user