{{ temperatureOff ? '--' : (temperature | ngxRound) }}
@@ -38,21 +38,34 @@
- Humidity placeholder
+
+
-
+
+
+ {{ humidityOff ? '--' : (humidity | ngxRound) }}
+
+
+
+
-
-
- {{ humidityOff ? '--' : (humidity | ngxRound) }}
-
-
- Celsius
-
-
-
+
+
+
+
+
+
diff --git a/src/app/pages/dashboard/temperature/temperature.component.scss b/src/app/pages/dashboard/temperature/temperature.component.scss
index 7a3ce75a..c96a94ed 100644
--- a/src/app/pages/dashboard/temperature/temperature.component.scss
+++ b/src/app/pages/dashboard/temperature/temperature.component.scss
@@ -20,7 +20,7 @@
height: 100%;
}
- .temperature-container {
+ .slider-container {
display: flex;
flex: 1;
justify-content: center;
@@ -28,11 +28,11 @@
}
ngx-temperature-dragger {
- margin-top: -3.5rem;
+ margin-top: -1.5rem;
width: 80%;
}
- .temperature {
+ .slider-value-container {
display: flex;
flex-direction: column;
align-items: center;
@@ -44,12 +44,22 @@
font-size: 4rem;
font-weight: nga-theme(font-weight-bolder);
- &::before {
+ &.temperature::before {
position: absolute;
content: '°';
top: 0;
right: -1.25rem;
}
+
+ &.humidity::before {
+ position: absolute;
+ content: '%';
+ bottom: 0.5rem;
+ right: -2.5rem;
+ color: nga-theme(color-fg);
+ font-size: 2.5rem;
+ font-weight: nga-theme(font-weight-light);
+ }
}
.desc {
diff --git a/src/app/pages/dashboard/temperature/temperature.component.ts b/src/app/pages/dashboard/temperature/temperature.component.ts
index b056c1fa..6a611c10 100644
--- a/src/app/pages/dashboard/temperature/temperature.component.ts
+++ b/src/app/pages/dashboard/temperature/temperature.component.ts
@@ -8,13 +8,13 @@ import { NgaThemeService } from '@akveo/nga-theme';
})
export class TemperatureComponent {
- temperature: number = 23;
+ temperature: number = 28;
temperatureOff: boolean = false;
temperatureMode = 'cool';
- humidity: number = 23;
+ humidity: number = 87;
humidityOff: boolean = false;
- humidityMode = 'auto';
+ humidityMode = 'heat';
themeConfig: any = {};