templates/includes/blocks/big-teaser.html.twig line 1
<div class="big-teaser {% if content.reverse %} big-teaser--reverse {% endif %} {% if content.inverted %} big-teaser--inverted {% endif %} {{ content.top }} {{ content.bottom }}"
x-data="bigteaser">
<div class="big-teaser__container">
<div class="big-teaser__title" x-ref="title">
{% if content.bigTeaserSeoHeadlinePagina %}<{{ content.bigTeaserSeoHeadlinePagina }}>{% endif %}
<div class="pagina">
{% if content.bigTeaserPagina %}
{{ content.bigTeaserPagina }}
{% endif %}
</div>
{% if content.bigTeaserSeoHeadlinePagina %}</{{ content.bigTeaserSeoHeadlinePagina }}>{% endif %}
<div{% if content.bigTeaserTitleMobile %} class="desktop-only"{% endif %}>
{{ content.title|raw }}
</div>
{% if content.bigTeaserTitleMobile %}
<div class="mobile-only">
{{ content.bigTeaserTitleMobile|raw }}
</div>
{% endif %}
</div>
{% if content.image %}
<div class="big-teaser__media">
<img 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.bigTeaserImageALT|default(content.image.description|striptags) }}" x-ref="image" sizes="(min-width: 1440px) 720px, (min-width: 768px) 35vw, 100vw">
</div>
{% endif %}
{% if content.lead %}
<div class="big-teaser__lead" x-ref="lead">
{{ content.lead|raw }}
</div>
{% endif %}
{% if content.text %}
<div class="big-teaser__content" x-ref="content">
{{ content.text|raw }}
</div>
{% endif %}
<div class="big-teaser__actions" x-ref="actions">
{% if content.bigTeaserActionLink != null %}
{% if content.bigTeaserButtonType == 'box' %}
<a href="{{ content.bigTeaserActionLink }}"
class="button button--{{ content.bigTeaserButtonColor }} button--size-{{ content.bigTeaserButtonSize }}">
<span class="button__inner">
{{ content.buttonLabel }}
</span>
</a>
{% elseif content.bigTeaserButtonType == 'text' %}
<a href="{{ content.bigTeaserActionLink }}"
class="text-button text-button--{{ content.bigTeaserTextButtonColor }} {% if content.uppercase %} uppercase {% endif %}">
{{ content.buttonLabel }}
<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 %}
{% endif %}
</div>
</div>
</div>