templates/includes/blocks/text-image-teaser.html.twig line 1
<div class="text-image-teaser {% if content.inverted %} text-image-teaser--inverted {% endif %} {% if content.reverse %}
text-image-teaser--reverse {% endif %} {{ content.top }} {{ content.bottom }}" x-data="textimageteaser">
<div class="text-image-teaser__container">
{% if content.image %}
<div class="text-image-teaser__media">
<img class="text-image-teaser__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.textImageTeaserImageALT|default(content.image.description|striptags) }}" x-ref="image"
sizes="(min-width: 1440px) 720px, (min-width: 768px) 50vw, 100vw">
</div>
{% endif %}
<div class="text-image-teaser__title" x-ref="title">
{% if content.textImageTeaserPagina %}
{% if content.textImageTeaserSeoHeadlinePagina %}<{{ content.textImageTeaserSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{{ content.textImageTeaserPagina }}
</div>
{% if content.textImageTeaserSeoHeadlinePagina %}</{{ content.textImageTeaserSeoHeadlinePagina }}>{% endif %}
{% endif %}
{% if content.textImgTeaserTitleDesktop %}
<div {% if content.textImgTeaserTitleMobile %}class="desktop-only" {% endif %}>
{{ content.textImgTeaserTitleDesktop|raw }}
</div>
{% endif %}
</div>
{% if content.textImgTeaserTitleMobile %}
<div class="text-image-teaser__title mobile-only" x-ref="mobiletitle">
{{ content.textImgTeaserTitleMobile|raw }}
</div>
{% endif %}
<div class="text-image-teaser__content" x-ref="content">
{% if content.text %}
{{ content.text|raw }}
{% endif %}
</div>
{% if content.textImageTeaserActionLink != null %}
<div class="text-image-teaser__actions" x-ref="actions">
{% if content.textImageTeaserButtonType == 'box' %}
<a href="{{ content.textImageTeaserActionLink }}"
class="button button--{{ content.textImageTeaserButtonColor }}
button--size-{{ content.textImageTeaserButtonSize }}">
<span class="button__inner">
{{ content.textImageTeaserButtonLabel }}
</span>
</a>
{% elseif content.textImageTeaserButtonType == 'text' %}
<a href="{{ content.textImageTeaserActionLink }}"
class="text-button text-button--{{ content.textImageTeaserTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.textImageTeaserButtonLabel }}
<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>