templates/includes/blocks/sticky-sections.html.twig line 1
<div class="sticky-sections {% if content.inverted %}sticky-sections--inverted {% endif %} {{ content.top }} {{ content.bottom }}"
x-data="stickysections">
<div class="sticky-sections__container">
<div class="sticky-sections__main">
<div class="sticky-sections__aside">
<div class="sticky-sections__titles" x-ref="titles">
{% for key, sectionCard in content.subblocks %}
<div class="sticky-sections__title {% if sectionCard.stickySectionsTitleMobile %}desktop-only {% endif %}"
@click="scrollTo({{ key }})">
{{ sectionCard.title|raw }}
</div>
{% endfor %}
</div>
</div>
<div class="sticky-sections__content" x-ref="content">
{% for sectionCard in content.subblocks %}
<div class="sticky-sections-card">
{% if sectionCard.stickySectionsTitleMobile %}
<div class="sticky-sections-card__title mobile-only">
{{ sectionCard.stickySectionsTitleMobile|raw }}
</div>
{% endif %}
<div class="sticky-sections-card__media">
{% if sectionCard.image %}
<img src ="{{ sectionCard.image|thumbnailUrl('2880x') }}"
srcset ="{{ sectionCard.image|thumbnailUrl('320x') }} 320w, {{ sectionCard.image|thumbnailUrl('640x') }} 640w, {{ sectionCard.image|thumbnailUrl('1280x') }} 1280w, {{ sectionCard.image|thumbnailUrl('1440x') }} 1440w, {{ sectionCard.image|thumbnailUrl('2048x') }} 2048w"
alt="{{ sectionCard.sectionCardImageALT|default(sectionCard.image.description|striptags)}}" sizes="(min-width: 1440px) 720px, (min-width: 768px) 50vw, 100vw"
class="sticky-sections-card__image">
{% endif %}
</div>
<div class="sticky-sections-card__text">
{{ sectionCard.text|raw }}
</div>
<div class="sticky-sections-card__actions">
{% for sectionCardAction in sectionCard.subblocks %}
{% if sectionCardAction.sectionCardActionLink != null %}
<a href="{{ sectionCardAction.sectionCardActionLink }}" class="sticky-sections-action">
{{ sectionCardAction.action }}
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 13 26"
class="sticky-sections-action__arrow">
<path fill-rule="evenodd" clip-rule="evenodd"
d="M13 13L0 0v13h13zM0 13v13l13-13H0z" fill="currentColor"/>
</svg>
</a>
{% endif %}
{% endfor %}
</div>
</div>
{% endfor %}
{% if content.stickySectionsActionLink != null %}
<div class="sticky-sections__actions">
{% if content.stickySectionsButtonType == 'box' %}
<a href="{{ content.stickySectionsActionLink }}"
class="button button--{{ content.stickySectionsButtonColor }}
button--size-{{ content.stickySectionsButtonSize }}">
<span class="button__inner">
{{ content.stickySectionsButtonLabel }}
</span>
</a>
{% elseif content.stickySectionsButtonType == 'text' %}
<a href="{{ content.stickySectionsActionLink }}"
class="text-button text-button--{{ content.stickySectionsTextButtonColor }}
{% if content.uppercase %} uppercase {% endif %}">
{{ content.stickySectionsButtonLabel }}
<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>
</div>