templates/includes/blocks/generic-grid.html.twig line 1
<div class="generic-grid generic-grid--cols-{{ content.cols }} {% if content.inverted %}generic-grid--inverted {% endif %} {{ content.top }} {{ content.bottom }}"
x-data="genericgrid">
<div class="generic-grid__container" x-ref="container">
<div class="generic-grid__inner" x-ref="inner">
{% for teaser in content.subblocks %}
<div class="generic-teaser{% if content.inverted %} generic-teaser--inverted {% endif %}{% if teaser.icon %} generic-teaser--icon {% endif %}">
{% if teaser.image %}
<div class="generic-teaser__image">
<img src="{{ teaser.image|thumbnailUrl('2880x') }}"
srcset ="{{ teaser.image|thumbnailUrl('320x') }} 320w, {{ teaser.image|thumbnailUrl('640x') }} 640w, {{ teaser.image|thumbnailUrl('1280x') }} 1280w, {{ teaser.image|thumbnailUrl('1440x') }} 1440w, {{ teaser.image|thumbnailUrl('2048x') }} 2048w"
alt="{{ teaser.genericTeaserImageALT|default(teaser.image.description|striptags) }}" x-ref="image"
sizes="(min-width: 1440px) {{ 1440 / content.cols }}px, (min-width: 768px) {{ (100 / content.cols)|round }}vw, 100vw">
</div>
{% endif %}
<div class="generic-teaser__inner">
<div class="generic-teaser__content">
{{ teaser.text|raw }}
</div>
{% if teaser.genericTeaserActionLink != null %}
<div class="generic-teaser__actions">
{% if teaser.genericTeaserButtonType == 'box' %}
<a href=" {{ teaser.genericTeaserActionLink }}"
class="button button--{{ teaser.genericTeaserButtonColor }} button--size-{{ teaser.genericTeaserButtonSize }}">
<span class="button__inner">
{{ teaser.genericTeaserButtonLabel }}
</span>
</a>
{% elseif teaser.genericTeaserButtonType == 'text' %}
<a href="{{ teaser.genericTeaserActionLink }}"
class="text-button text-button--{{ teaser.genericTeaserTextButtonColor }} {% if teaser.uppercase %} uppercase {% endif %}">
{{ teaser.genericTeaserButtonLabel }}
<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>
{% endfor %}
</div>
{% if content.genericGridActionLink != null %}
<div class="generic-grid__actions" x-ref="actions">
{% if content.genericGridButtonType == 'box' %}
<a href="{{ content.genericGridActionLink }}"
class="button button--{{ content.genericGridButtonColor }} button--size-{{ content.genericGridButtonSize }}">
<span class="button__inner">
{{ content.genericGridButtonLabel }}
</span>
</a>
{% elseif content.genericGridButtonType == 'text' %}
<a href="{{ content.genericGridActionLink }}"
class="text-button text-button--{{ content.genericGridTextButtonColor }} {% if content.uppercase %} uppercase {% endif %}">
{{ content.genericGridButtonLabel }}
<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>