Banner

<div class="@container group h-full
    sm:container py-6">
    <div class="relative h-full
                grid-layout items-center                justify-center    ">

        <picture class="absolute inset-0 w-full h-full
                sm:col-start-2 sm:col-span-10                            ">
            <source srcset="/img/diagnostic/desktop-2.png" media="(min-width: 769px)" />
            <img src="/img/diagnostic/mobile-2.png" alt="Excepteur sint occaecat cupidatat" class="object-cover w-full h-full " loading="lazy" />
        </picture>

        <div class="absolute inset-0
            sm:col-start-2 sm:col-span-10                        bg-black/08 mix-blend-overlay        "></div>

        <section class="relative flex items-center min-h-62 md:min-h-[346px] 2xl:min-h-88 3xl:min-h-100 adjusted-marg-y-sm
            adjusted-marg-x-sm
            col-span-4 sm:col-start-2 sm:col-span-10            
            justify-center
                    ">
            <article class="
                relative flex gap-3 w-full
                flex-col                                            ">

                <div class="flex flex-col gap-1.5
                    text-center items-center                                    ">

                    <h2 class="h2 [&>span]:font-normal text-white">
                        Excepteur sint occaecat cupidatat
                    </h2>

                    <p class="h6-base [&>span]:md:font-semibold [&>span]:md:uppercase text-white">
                        Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.
                    </p>

                    <a href="#" class="
        
         link-medium
         link-light
         link-icon
        font-bold items-center
    ">
                        <svg class=" shrink-0" width="20" height="20" stroke="currentColor" stroke-width="1.5" viewBox="0 0 21 20" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
                            <path d="M10.5 5V10H14.25M18 10C18 14.1421 14.6421 17.5 10.5 17.5C6.35786 17.5 3 14.1421 3 10C3 5.85786 6.35786 2.5 10.5 2.5C14.6421 2.5 18 5.85786 18 10Z" stroke="currentColor" stroke-width="1.5" fill="none" />

                        </svg>
                        <span class="">30 minutes</span>

                    </a>
                </div>

                <div class="flex justify-center items-center gap-4">
                    <a href="#" type="button" class="w-max  btn  btn-light  btn-outline  btn-size-lg">
                        CTA Primaire

                    </a>
                </div>
            </article>
        </section>
    </div>

</div>
<div class="@container group h-full
    {% if layout.isFullWidth == "10col" or layout.isFullWidth == "6col" %}sm:container py-6{% endif %}
">
    <div class="relative h-full
        {% if layout.isFullWidth == "full" %}flex items-center{% endif %}
        {% if layout.isFullWidth == "10col" %}grid-layout items-center{% endif %}
        {% if layout.isFullWidth == "6col" %}grid-layout items-center{% endif %}
        {% if layout.alignment == 'center' %}justify-center{% endif %}
    ">
        {# Background Layer #}
        {% if background.type == 'image' %}
            <picture class="absolute inset-0 w-full h-full
                {% if layout.isFullWidth == "10col" %}sm:col-start-2 sm:col-span-10{% endif %}
                {% if layout.isFullWidth == "6col" %}sm:col-start-4 sm:col-span-6{% endif %}
            ">
                <source srcset="{{ background.desktop }}" media="(min-width: 769px)"/>
                <img
                    src="{{ background.mobile }}"
                    alt="{{ background.alt }}"
                    class="object-cover w-full h-full {% if layout.portraitMode %}object-right-top{% endif %}"
                    loading="lazy"
                />
            </picture>
        {% elseif background.type == 'color' %}
            <div class="absolute inset-0 w-full h-full {{ background.color }}
            {% if layout.isFullWidth == "10col" %}sm:col-start-2 sm:col-span-10{% endif %}
            {% if layout.isFullWidth == "6col" %}sm:col-start-4 sm:col-span-6{% endif %}
            "></div>
        {% endif %}

        {# overlay #}
        <div class="absolute inset-0
            {% if layout.isFullWidth == "10col" %}sm:col-start-2 sm:col-span-10{% endif %}
            {% if layout.isFullWidth == "6col" %}sm:col-start-4 sm:col-span-6{% endif %}
            {% if background.type == 'image' %}{{ background.overlay|default('bg-black/08') }} mix-blend-overlay{% else %}group-hover:bg-black/08{% endif %}
        "></div>

        {# Content Container #}
        <section class="relative flex items-center min-h-62 md:min-h-[346px] 2xl:min-h-88 3xl:min-h-100 adjusted-marg-y-sm
            {% if layout.hasNaosBorder == false %}adjusted-marg-x-sm{% endif %}

            {% if layout.isFullWidth == "10col" %}col-span-4 sm:col-start-2 sm:col-span-10{% endif %}
            {% if layout.isFullWidth == "6col" %}col-span-4 sm:col-start-4 sm:col-span-6{% endif %}

            {% if layout.alignment == "center" %}justify-center{% endif %}

            {% if layout.textSize == "mid" %}w-1/2{% endif %}
        ">
            <article class="
                relative flex gap-3 w-full
                {% if layout.alignment == 'between' %}flex-row justify-between{% else %}flex-col{% endif %}
                {% if layout.hasNaosBorder %}adjusted-marg-l-sm border-l-8 border-naos{% endif %}
                {% if layout.portraitMode %}mb-10 mt-[468px]{% endif %}
            ">
                {# Text #}
                <div class="flex flex-col gap-1.5
                    {% if layout.alignment == 'center' %}text-center items-center{% endif %}
                    {% if layout.alignment == "between" %}w-1/2{% endif %}
                ">
                    {% if content.uptitle %}
                        <p class="h6-base [&>span]:md:font-semibold [&>span]:md:uppercase {{ content.uptitle.class }}">
                            {{ content.uptitle.text }}
                        </p>
                    {% endif %}

                    {% if content.title %}
                        <h2 class="h2 [&>span]:font-normal {{ content.title.class }}">
                            {{ content.title.text }}
                        </h2>
                    {% endif %}

                    {% if content.subtitle %}
                        <p class="h6-base [&>span]:md:font-semibold [&>span]:md:uppercase {{ content.subtitle.class }}">
                            {{ content.subtitle.text }}
                        </p>
                    {% endif %}

                    {% if content.link %}
                        {% render "@template-link" with {
                            label: content.link.label,
                            href: content.link.href,
                            type: content.link.theme|default("light"),
                            size: 'medium',
                            link_class: "font-bold items-center",
                            icon_type: "leading-icon",
                            icon: {
                                name: "heroicons--clock-outline",
                                size: 20
                            }
                        } %}
                    {% endif %}
                </div>

                {# Btn #}
                <div class="flex {% if layout.alignment != "left" %}justify-center{% endif %} items-center gap-4">
                    {% render "@template-button" with {
                        label: cta.primary.label,
                        color: cta.primary.color,
                        type: cta.primary.type,
                        href: cta.primary.link,
                        button_class: "w-max"
                    } %}
                </div>
            </article>
        </section>
    </div>

</div>
{
  "layout": {
    "portraitMode": false,
    "hasNaosBorder": false,
    "isFullWidth": "10col",
    "alignment": "center",
    "textSize": "full"
  },
  "background": {
    "type": "image",
    "desktop": "/img/diagnostic/desktop-2.png",
    "mobile": "/img/diagnostic/mobile-2.png",
    "alt": "Excepteur sint occaecat cupidatat",
    "color": "",
    "overlay": "bg-black/08"
  },
  "content": {
    "title": {
      "text": "Excepteur sint occaecat cupidatat",
      "class": "text-white"
    },
    "subtitle": {
      "text": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.",
      "class": "text-white"
    },
    "link": {
      "href": "#",
      "label": "30 minutes",
      "theme": "light"
    }
  },
  "cta": {
    "primary": {
      "label": "CTA Primaire",
      "color": "light",
      "type": "outline",
      "link": "#"
    }
  }
}

No notes defined.