{# Home closing "quote" section — cream band with the Galta logo mark as a giant faded watermark, two photos, a pull-quote and a CTA link. Params: - section (HomePageSectionModel|null) - homeIntroSection (HomePageSectionModel|null): source of the "Découvrir" scroll button's label (kept on the home-intro section's own field — the button just lives here visually) - sectionMedia (array): data.sectionMedia['quote'] - editMode (bool) #} {% set fields = section ? section.fields : null %} {% set introFields = homeIntroSection ? homeIntroSection.fields : null %} {% set media = sectionMedia['quote']|default({}) %} {% set ctaLabel = fields.ctaLabel|default('Découvrir Galta') %}
{% if editMode|default(false) and not (media.imagePath|default(false) or media.imageDarkPath|default(false)) %} + Ajouter une image {% endif %} {% include 'components/_themed_img.html.twig' with {light: media.imagePath|default(''), dark: media.imageDarkPath|default(''), alt: '', class: 'home-quote__img', loading: 'lazy'} only %}

{{ fields.content|default('galta, c’est un regard, la montagne, et votre manière d’habiter les lieux.')|raw }}

{% set ctaContent %}{{ ctaLabel }} {% endset %} {{ include('components/_button.html.twig', editMode|default(false) ? { href: fields.ctaHref|default('#'), content: ctaContent, extra_class: 'home-quote__cta link-btn--on-content', attrs: 'data-editable-href="true" data-section-id="quote" data-field="ctaHref" data-label-field="ctaLabel" data-label-value="' ~ ctaLabel|e('html_attr') ~ '"' } : { href: fields.ctaHref|default('#'), content: ctaContent, extra_class: 'home-quote__cta link-btn--on-content' }) }}
{% if editMode|default(false) and not (media.image2Path|default(false) or media.image2DarkPath|default(false)) %} + Ajouter une image {% endif %} {% include 'components/_themed_img.html.twig' with {light: media.image2Path|default(''), dark: media.image2DarkPath|default(''), alt: '', class: 'home-quote__img', loading: 'lazy'} only %}