WIP: weather integration
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<section class="weather-forecast" aria-label="Today’s weather forecast">
|
||||
<span class="material-symbols-outlined" aria-hidden="true">{{ forecast.weatherCode in [0, 1] ? 'sunny' : (forecast.weatherCode in [2, 3] ? 'cloud' : 'rainy') }}</span>
|
||||
<div>
|
||||
<strong>{{ forecast.temperatureMax|round }}°C</strong>
|
||||
<span>{{ forecast.weatherCode in [0, 1] ? 'Clear' : (forecast.weatherCode in [2, 3] ? 'Cloudy' : 'Rain possible') }}</span>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user