Basic weather style

This commit is contained in:
2020-11-21 03:29:26 -03:00
parent f019e29d8e
commit 2d65c5bbdf
3 changed files with 30 additions and 1 deletions

View File

@@ -23,7 +23,11 @@
</div> </div>
<div id="weather-box" class="box"> <div id="weather-box" class="box">
<p>Weather</p> <div class="weather-description">
<span class="weather-degrees">11°</span>
<span class="weather-where">Temuco</span>
</div>
<img class="weather-icon" src="http://openweathermap.org/img/wn/04n@4x.png"/>
</div> </div>
<div id="custom-box" class="box"> <div id="custom-box" class="box">

View File

@@ -204,6 +204,10 @@ const search = new function () {
} }
} }
const weather = new function () {
}
window.addEventListener('load', () => { window.addEventListener('load', () => {
currency.on_load() currency.on_load()
photos.on_load() photos.on_load()

View File

@@ -160,3 +160,24 @@
border: none; border: none;
} }
/* Weather */
#weather-box {
}
.weather-description {
display: flex;
flex-direction: row;
justify-content: space-between;
font-size: 1.5em;
font-weight: 600;
}
.weather-icon {
width: auto;
height: auto;
object-fit: contain;
}