templates/includes/blocks/text-media.html.twig line 1
<div class="text-media {% if content.reverse %} text-media--reverse {% endif%} {% if content.inverted %} text-media--inverted {% endif %}{{ content.top }} {{ content.bottom }}" x-data="textmedia">
<div class="text-media__container">
{% if content.image %}
<div class="text-media__media">
{% if content.imageLink %}
<a href="{{ content.imageLink }}" target="_blank" class="text-media__media">
{% endif %}
<img class="text-media__image" src ="{{ content.image|thumbnailUrl('2880x') }}"
srcset ="{{ content.image|thumbnailUrl('320x') }} 320w, {{ content.image|thumbnailUrl('640x') }} 640w, {{ content.image|thumbnailUrl('720x') }} 720w, {{ content.image|thumbnailUrl('1280x') }} 1280w, {{ content.image|thumbnailUrl('1440x') }} 1440w, {{ content.image|thumbnailUrl('2048x') }} 2048w" alt="{{ content.textMediaImageALT|default(content.image.description|striptags) }}" x-ref="image"
sizes="(min-width: 1440px) 720px, (min-width: 768px) 50vw, 100vw">
{% if content.imageLink %}
</a>
{% endif %}
</div>
{% endif %}
<div class="text-media__content">
<div class="text-media__title" x-ref="title">
{% if content.textMediaPagina %}
{% if content.textMediaSeoHeadlinePagina %}<{{ content.textMediaSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{{ content.textMediaPagina }}
</div>
{% if content.textMediaSeoHeadlinePagina %}</{{ content.textMediaSeoHeadlinePagina }}>{% endif %}
{% endif %}
<div {% if content.textMediaTitleMobile %} class="desktop-only"{% endif %}>
{{ content.textMediaTitleDesktop|raw }}
</div>
</div>
{% if content.textMediaTitleMobile %}
<div class="text-media__title mobile-only" x-ref="mobiletitle">
{{ content.textMediaTitleMobile|raw }}
</div>
{% endif %}
<div class="text-media__text" x-ref="text">
{{ content.text|raw }}
</div>
{% if content.textMediaActionLink != null %}
<div class="text-media__actions" x-ref="actions">
{% if content.textMediaButtonType == 'box' %}
<a href="{{ content.textMediaActionLink }}"
class="button button--{{ content.textMediaButtonColor }}
button--size-{{ content.textMediaButtonSize }}">
<span class="button__inner">
{{ content.textMediaButtonLabel }}
</span>
</a>
{% elseif content.textMediaButtonType == 'text' %}
<a href="{{ content.textMediaActionLink }}"
class="text-button text-button--{{ content.textMediaTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.textMediaButtonLabel }}
<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>
</div>