templates/includes/blocks/case-study-hero.html.twig line 1
{% if content.caseStudyHeroLinkedItem == 'caseStudyHeroModal' %}
<div class="modal" :class="{'modal--show': show}" x-data="modal">
{% endif %}
<div class="case-study-hero pt-hero {% if content.inverted %}case-study-hero--inverted {% endif %}"
x-data="casestudyhero">
<svg class="case-study-hero__background" preserveaspectratio="xMinYMin slice" fill="none"
xmlns="http://www.w3.org/2000/svg" viewbox="0 0 1440 1045" x-ref="background">
<path d="M-337.621 116.309L1764 1329M1366.15-155L1764 1329M1366.14-155v1484M906.729-155l-.001 1484M1764-155.922L906.729 1329M-337.621 1057.67L1764-155M1366.15 1329L1764-155M1366.14 1329V-155M906.728 1329l.001-1484M1764 1329.9L906.729-155M1765.92 1057.84L-336.001-155M61.853 1329L-336.002-155M61.853 1329V-155M521.269 1329l.001-1484M-336.002 1329.9L521.27-155M1764.82 116.781L-336.001 1329M61.853-155l-397.855 1484M61.853-155v1484M521.27-155l-.001 1484M-336.002-155.922L521.269 1329"
stroke="currentColor"/>
</svg>
<div class="case-study-hero__container">
<div class="case-study-hero__type" x-ref="type">
{{ content.herotype }}
</div>
<div class="case-study-hero__title" x-ref="title">
{% if content.csHeroPagina %}
{% if content.caseStudyHeroSeoHeadlinePagina %}<{{ content.caseStudyHeroSeoHeadlinePagina }}>{% endif %}
<div {% if content.inverted %} style="color: #fff;" {% endif %}
class="pagina">
{{ content.csHeroPagina }}
</div>
{% if content.caseStudyHeroSeoHeadlinePagina %}</{{ content.caseStudyHeroSeoHeadlinePagina }}>{% endif %}
{% endif %}
<{{ content.caseStudyHeroSeoHeadlineTitle ? content.caseStudyHeroSeoHeadlineTitle : 'h1' }} {% if content.csHeroTitleMobile %}class="desktop-only" {% endif %}>
{{ content.herotitle|raw }}
</{{ content.caseStudyHeroSeoHeadlineTitle ? content.caseStudyHeroSeoHeadlineTitle : 'h1' }}>
</div>
{% if content.csHeroTitleMobile %}
<{{ content.caseStudyHeroSeoHeadlineTitle ? content.caseStudyHeroSeoHeadlineTitle : 'h1' }} class="case-study-hero__title mobile-only">
{{ content.csHeroTitleMobile|raw }}
</{{ content.caseStudyHeroSeoHeadlineTitle ? content.caseStudyHeroSeoHeadlineTitle : 'h1' }}>
{% endif %}
{% if content.caseStudyHeroLinkedItem == 'caseStudyHeroModal' %}
<div class="case-study-hero__actions" x-ref="actions">
{% include('/includes/popup-cta.html.twig') with { label: content.buttonUrlLabel, buttonColor: content.buttonUrlColor, buttonSize: content.buttonUrlSize } %}
</div>
{% elseif content.caseStudyHeroActionLink %}
<div class="case-study-hero__actions" x-ref="actions">
<a href="{{ content.caseStudyHeroActionLink }}" class="button button--{{ content.buttonUrlColor }}">
<span class="button__inner">
{{ content.buttonUrlLabel }}
</span>
</a>
</div>
{% endif %}
</div>
<div class="case-study-hero__media">
{% if content.image %}
<img class="case-study-hero__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.caseStudyHeroImageALT|default(content.image.description|striptags) }}" x-ref="image" sizes="(min-width: 1440px) 1440px, 100vw">
{% endif %}
</div>
</div>
{% if content.caseStudyHeroLinkedItem == 'caseStudyHeroModal' %}
{% if content.caseStudyHeroDownloadFormBlock %}
{% include('/includes/blocks/' ~ content.caseStudyHeroDownloadFormBlock.type ~ '.html.twig') with { content: content.caseStudyHeroDownloadFormBlock, view: view.caseStudyHeroDownloadFormBlock } %}
{% endif %}
</div>
{% endif %}