diff --git a/src/app/pages/dashboard/weather/weather.component.html b/src/app/pages/dashboard/weather/weather.component.html index eba19914..5df699d4 100644 --- a/src/app/pages/dashboard/weather/weather.component.html +++ b/src/app/pages/dashboard/weather/weather.component.html @@ -1,58 +1,51 @@ -
- New York + New York + Mon 29 May + +
+ 20° +
-
- Mon 29 May -
-
-
-
- 20° -
-
- -
+ +
+
+ max + 23°
-
-
- max - 23° -
-
- min - 19° -
-
- wind - 4 km/h -
-
- hum - 87% -
+
+ min + 19° +
+
+ wind + 4 km/h +
+
+ hum + 87%
+
Sun - + 17°
Mon - + 19°
Tue - + 22°
Wed - + 21°
diff --git a/src/app/pages/dashboard/weather/weather.component.scss b/src/app/pages/dashboard/weather/weather.component.scss index 9173cedd..2ac7e097 100644 --- a/src/app/pages/dashboard/weather/weather.component.scss +++ b/src/app/pages/dashboard/weather/weather.component.scss @@ -1,132 +1,76 @@ @import '../../../@theme/styles/themes'; -@import '~@nebular/theme/styles/global/breakpoints'; -@import '~bootstrap/scss/mixins/breakpoints'; @include nb-install-component() { - nb-card { - background-image: nb-theme(radial-gradient); + nb-card-body { + display: flex; + flex-direction: column; } - nb-card-body { - height: 100%; - padding: 2rem; - color: nb-theme(color-fg); + .location, + .date { + display: block; } .location { - font-family: nb-theme(font-secondary); - font-size: 2.5rem; - font-weight: nb-theme(font-weight-normal); - color: nb-theme(color-fg-heading); + margin-bottom: 0.1rem; } - .date { - font-family: nb-theme(font-main); - font-size: 1.25rem; - line-height: 1.25rem; - font-weight: nb-theme(font-weight-light); + .today { + display: flex; + justify-content: space-around; } - .daily-forecast { + .today-temperature { display: flex; flex-direction: column; - margin-top: -1.5rem; + justify-content: center; + margin: 2rem 1.5rem; + } - .info { - display: flex; - justify-content: space-around; + .today-icon { + color: nb-theme(color-primary-default); + font-size: 10rem; + line-height: 1; + margin-top: -4rem; + margin-left: auto; + margin-right: 0.4rem; + } - .temperature { - font-size: 5rem; - font-weight: nb-theme(font-weight-bolder); - font-family: nb-theme(font-secondary); - color: nb-theme(color-fg-heading); - display: flex; - flex-direction: column; - justify-content: center; - margin-top: 2rem; - } + .today-details { + display: flex; + justify-content: space-around; + margin-top: 2rem; + } - .icon { - font-size: 10rem; - line-height: 10rem; - color: nb-theme(color-success); + .parameter { + flex: 1 1 auto; + text-align: center; + } - @include nb-for-theme(cosmic) { - color: nb-theme(color-fg); - text-shadow: 0 3px 0 #665ebd, - 0 4px 10px rgba(33, 7, 77, 0.5), - 0 2px 10px #928dff; - } + .parameter-name, + .parameter-value { + display: block; + } - @include nb-for-theme(corporate) { - color: nb-theme(color-warning); - } - } - } - - .details { - display: flex; - justify-content: space-around; - - .parameter { - display: flex; - flex-direction: column; - text-align: center; - - .parameter-name { - font-family: nb-theme(font-main); - font-size: 1.25rem; - font-weight: nb-theme(font-weight-light); - line-height: 2rem; - } - - .parameter-value { - font-family: nb-theme(font-secondary); - color: nb-theme(color-fg-heading); - font-weight: nb-theme(font-weight-bolder); - } - } - } + .caption { + text-transform: uppercase; } .weekly-forecast { display: flex; justify-content: space-around; - margin-top: 2rem; - - .day { - display: flex; - flex-direction: column; - text-align: center; - - .caption { - text-transform: uppercase; - font-family: nb-theme(font-secondary); - color: nb-theme(color-fg-heading); - font-weight: nb-theme(font-weight-bold); - font-size: 1.25rem; - } - - i { - font-size: 2.5rem; - line-height: 2.5rem; - } - - .temperature { - color: nb-theme(color-fg-heading); - font-family: nb-theme(font-secondary); - font-weight: nb-theme(font-weight-bold); - font-size: 1.25rem; - } - } + margin: auto 0; } - @include media-breakpoint-down(xs) { - nb-card-body { - padding-left: 1rem; - padding-right: 1rem; - } + .day { + display: flex; + flex-direction: column; + text-align: center; + } + + .weather-icon { + font-size: 2.5rem; + line-height: 2.5rem; } }