8 lines
454 B
Twig
8 lines
454 B
Twig
<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>
|