More dashboard layout - getting there

This commit is contained in:
2019-10-06 20:19:08 -04:00
parent 7c062dbc04
commit ef46efbbc2
4 changed files with 30 additions and 4 deletions

View File

@@ -11,13 +11,22 @@
</header>
<gridster [options]="options">
<gridster-item [item]="dashboard[0]">
<app-weather-current></app-weather-current>
<div class="dashboard-item-header">Weather</div>
<div class="dashboard-item-content">
<app-weather-current></app-weather-current>
</div>
</gridster-item>
<gridster-item [item]="dashboard[1]">
<app-laundry></app-laundry>
<div class="dashboard-item-header">Laundry</div>
<div class="dashboard-item-content">
<app-laundry></app-laundry>
</div>
</gridster-item>
<gridster-item [item]="dashboard[2]">
<app-pressure-trend></app-pressure-trend>
<div class="dashboard-item-header">Pressure Trend</div>
<div class="dashboard-item-content">
<app-pressure-trend></app-pressure-trend>
</div>
</gridster-item>
</gridster>
</div>

View File

@@ -15,3 +15,14 @@ gridster {
flex: 0 0 auto;
text-align: right;
}
.dashboard-item-header {
color: white;
background-color: #673ab7;
padding: 10px;
}
.dashboard-item-content {
border: 1px solid lightgray;
height: calc(100% - 41px);
}

View File

@@ -1 +1,3 @@
<mat-icon id="pressure-arrow" *ngIf="pressureDifference !== null" [ngClass]="rotationClass()">arrow_right_alt</mat-icon>
<div class="pressure-trend-container">
<mat-icon id="pressure-arrow" *ngIf="pressureDifference !== null" [ngClass]="rotationClass()">arrow_right_alt</mat-icon>
</div>

View File

@@ -1,3 +1,7 @@
.pressure-trend-container {
height: calc(100% - 40px);
}
#pressure-arrow {
position: relative;
top: 50%;