templates/Includes/Partials/weather-item-detail.html.twig line 1

Open in your IDE?
  1. <div class="weather-item weather-item--md text-center mx-auto">
  2.     <div class="weather-item__title font-decorative text-uppercase mb-0">{{ title }}</div>
  3.     <div class="row row-gutter--3 justify-content-center align-items-center mt-2 mt-md-3">
  4.         <div class="col-auto">
  5.             <img alt="{{ ('weather.icon.' ~ icon)|trans }}" class="img-fluid weather-item__img js-lazy-img" data-src="/static/debug/img/weather/{{ getWeatherIcon(icon) }}.svg">
  6.         </div>
  7.         <div class="col-auto">
  8.             <div class="font-default-bold {{ tempMax is defined ? 'mt-2 mt-md-4' : '' }}">
  9.                 <span class="weather-item__val">{{ temp }}°C</span>
  10.                 {% if tempMax is defined %}
  11.                     <span class="weather-item__val">{{ tempMax }}°C</span>
  12.                 {% endif %}
  13.             </div>
  14.         </div>
  15.     </div>
  16.     {% if wind is defined or rain is defined %}
  17.         <div class="row row-gutter--2 mt-2 mt-md-4 text-left text-nowrap">
  18.             {% if rain is defined %}
  19.                 <div class="col">
  20.                     <span class="icon icon-umbrella weather-item__detail-icon" aria-label="regen lorem ipsum" title="regen lorem ipsum"></span>
  21.                     {{ rain }}%
  22.                 </div>
  23.             {% endif %}
  24.             {% if wind is defined %}
  25.                 <div class="col text-right text-nowrap">
  26.                     <span class="icon icon-weather weather-item__detail-icon" aria-label="regen lorem ipsum" title="regen lorem ipsum"></span>
  27.                     {{ wind }} km/h
  28.                 </div>
  29.             {% endif %}
  30.         </div>
  31.     {% endif %}
  32. </div>