templates/includes/blocks/image-slider.html.twig line 1
<div class="image-slider {{ content.top }} {{ content.bottom }}" x-data="imageslider">
<div class="image-slider__container">
<div class="swiper-container" x-ref="swiper">
<div class="image-slider__arrows">
<div class="image-slider__prev" x-ref="prev">
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 18 35">
<path d="M17.16 34.32V0L0 17.16l17.16 17.16z" fill="currentColor"/>
</svg>
</div>
<div class="image-slider__next" x-ref="next">
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 12 24">
<path d="M.066.17v23.202l11.6-11.601L.067.17Z" fill="currentColor"/>
</svg>
</div>
</div>
<div class="swiper-wrapper">
{% for image in content.images %}
<div class="swiper-slide">
<img class="image-slider__image" src ="{{ image|thumbnailUrl('2880x') }}"
srcset ="{{ image|thumbnailUrl('320x') }} 320w, {{ image|thumbnailUrl('640x') }} 640w, {{ image|thumbnailUrl('1280x') }} 1280w, {{ image|thumbnailUrl('1440x') }} 1440w, {{ image|thumbnailUrl('2048x') }} 2048w"
alt="{{ image.description|striptags }}" x-ref="image" sizes="(min-width: 1440px) 1440px, 100vw">
</div>
{% endfor %}
</div>
</div>
{% if content.imageSliderActionLink != null %}
<div class="image-slider__actions" x-ref="actions">
{% if content.imageSliderButtonType == 'box' %}
<a href="{{ content.imageSliderActionLink }}"
class="button button--{{ content.imageSliderButtonColor }} button--size-{{ content.imageSliderButtonSize }}">
<span class="button__inner">
{{ content.imageSliderButtonLabel }}
</span>
</a>
{% elseif content.imageSliderButtonType == 'text' %}
<a href="{{ content.imageSliderActionLink }}"
class="text-button text-button--{{ content.imageSliderTextButtonColor }} {% if content.uppercase %} uppercase {% endif %}">
{{ content.imageSliderButtonLabel }}
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 16 16">
<path d="M.5 8.5h15M10.5 3.5l5 5-5 5" stroke="currentColor" stroke-miterlimit="10"
stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
{% endif %}
</div>
{% endif %}
</div>
</div>