

<div {% render 'section-attr' %}>
  <div class='banner-v6'>
    <xo-container {% render 'section-layout' %}>
      <div class='banner-v6__wrapper'>
        <div class='banner-v6__content'>
          <div class='banner-v6__sub'>{{ section.settings.sub }}</div>
          <div class='banner-v6__title'>{{ section.settings.title }}</div>
          <div class='banner-v6__desc'>{{ section.settings.desc }}</div>
        </div>
        <xo-carousel class='banner-v6__embla'>
          <xo-carousel-inner class='banner-v6__embla__viewport'>
            <xo-carousel-list role='list' aria-label='{{ 'general.slider.name' | t }}' class='banner-v6__embla__container'>
              {%- for block in section.blocks -%}
                <xo-carousel-slide aria-roledescription='{{ 'sections.slideshow.slide' | t }}' aria-label='{{ forloop.index }} {{ 'general.slider.of' | t }} {{ forloop.length }}' class='banner-v6__embla__slide'>
                  <a href='{{ block.settings.url }}' class='banner-v6__embla__slide__image'>
                    {%- render 'image', image: block.settings.image -%}
                  </a>
                </xo-carousel-slide>
              {%- endfor -%}
            </xo-carousel-list>
          </xo-carousel-inner>
          {% render 'carousel-pagination-style3', class: 'banner-v6__pagination' %}
        </xo-carousel>
        <div class='banner-v6__img'>
          {%- render 'image', image: section.settings.image -%}
        </div>
        <div class='banner-v6__btnWrapper'>
          <div class='banner-v6__btnInner'>
            {% render 'button',
              text: section.settings.button_text,
              link: section.settings.button_link,
              mode: section.settings.button_mode,
              style: section.settings.button_style,
              size: section.settings.button_size,
              radius: section.settings.button_radius,
              padding: section.settings.button_padding
            %}
          </div>
        </div>
        <div class='banner-v6__icon__list'>
          <div class='banner-v6__list'>
            <a href='{{ section.settings.icon_link1 }}' class='banner-v6__icon'>
              {{ section.settings.icon_1 }}
            </a>
            <a href='{{ section.settings.icon_link2 }}' class='banner-v6__icon'>
              {{ section.settings.icon_2 }}
            </a>
            <a href='{{ section.settings.icon_link3 }}' class='banner-v6__icon'>
              {{ section.settings.icon_3 }}
            </a>
          </div>
        </div>
      </div>
    </xo-container>
  </div>
  <div class='banner-v6__lines'>
    <div class='banner-v6__line'></div>
    <div class='banner-v6__line'></div>
    <div class='banner-v6__line'></div>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v6.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "type": "select",
      "id": "width",
      "label": "t:sections.all.width.label",
      "default": "box",
      "options": [
        {
          "value": "box",
          "label": "t:sections.all.width.options__1.label"
        },
        {
          "value": "wide",
          "label": "t:sections.all.width.options__2.label"
        },
        {
          "value": "fullwidth",
          "label": "t:sections.all.width.options__3.label"
        }
      ]
    },
    {
      "type": "number",
      "id": "fullwidth_margin",
      "label": "t:sections.all.fullwidth_margin.label",
      "default": 0,
      "visible_if": "{{ section.settings.width == 'fullwidth' }}"
    },
    {
      "type": "html",
      "id": "icon_1",
      "label": "t:sections.banner_v6.settings.icon_1.label"
    },
    {
      "type": "url",
      "id": "icon_link1",
      "label": "t:sections.banner_v6.settings.icon_link1.label",
      "default": "/collections/all"
    },
    {
      "type": "html",
      "id": "icon_2",
      "label": "t:sections.banner_v6.settings.icon_2.label"
    },
    {
      "type": "url",
      "id": "icon_link2",
      "label": "t:sections.banner_v6.settings.icon_link2.label",
      "default": "/collections/all"
    },
    {
      "type": "html",
      "id": "icon_3",
      "label": "t:sections.banner_v6.settings.icon_3.label"
    },
    {
      "type": "url",
      "id": "icon_link3",
      "label": "t:sections.banner_v6.settings.icon_link3.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "sub",
      "label": "t:sections.banner_v6.settings.sub.label",
      "default": "TITLE"
    },
    {
      "type": "richtext",
      "id": "title",
      "label": "t:sections.banner_v6.settings.title.label"
    },
    {
      "type": "text",
      "id": "desc",
      "label": "t:sections.banner_v6.settings.desc.label",
      "default": "TITLE"
    },
    {
      "type": "image_picker",
      "id": "image",
      "label": "t:sections.banner_v6.settings.image.label",
      "info": "t:sections.banner_v6.settings.image.info"
    },
    {
      "type": "header",
      "content": "t:sections.all.button_heading.content"
    },
    {
      "type": "text",
      "id": "button_text",
      "label": "t:sections.all.button_text.label",
      "default": "ALL PRODUCTS"
    },
    {
      "type": "url",
      "id": "button_link",
      "label": "t:sections.all.button_link.label",
      "default": "/collections/all"
    },
    {
      "type": "select",
      "id": "button_mode",
      "label": "t:sections.all.button_mode.label",
      "options": [
        {
          "value": "light",
          "label": "t:sections.all.button_mode.option__1.label"
        },
        {
          "value": "dark",
          "label": "t:sections.all.button_mode.option__2.label"
        },
        {
          "value": "accent",
          "label": "t:sections.all.button_mode.option__3.label"
        }
      ],
      "default": "light"
    },
    {
      "type": "select",
      "id": "button_style",
      "label": "t:sections.all.button_style.label",
      "options": [
        {
          "value": "primary",
          "label": "t:sections.all.button_style.option__1.label"
        },
        {
          "value": "secondary",
          "label": "t:sections.all.button_style.option__2.label"
        },
        {
          "value": "tertiary",
          "label": "t:sections.all.button_style.option__3.label"
        },
        {
          "value": "link",
          "label": "t:sections.all.button_style.option__4.label"
        }
      ],
      "default": "secondary"
    },
    {
      "type": "select",
      "id": "button_size",
      "label": "t:sections.all.button_size.label",
      "options": [
        {
          "value": "xs",
          "label": "t:sections.all.button_size.option__0.label"
        },
        {
          "value": "sm",
          "label": "t:sections.all.button_size.option__1.label"
        },
        {
          "value": "md",
          "label": "t:sections.all.button_size.option__2.label"
        },
        {
          "value": "lg",
          "label": "t:sections.all.button_size.option__3.label"
        }
      ],
      "default": "sm"
    },
    {
      "type": "range",
      "id": "button_radius",
      "label": "t:sections.all.button_radius.label",
      "max": 4,
      "min": 0,
      "step": 0.2,
      "unit": "rem",
      "default": 0.8
    },
    {
      "type": "range",
      "id": "button_padding",
      "label": "t:sections.all.button_padding.label",
      "info": "t:sections.all.button_padding.info",
      "max": 10,
      "min": 0,
      "step": 0.2,
      "unit": "rem",
      "default": 1.4
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "select",
      "id": "background_type",
      "label": "t:sections.all.background_type.label",
      "options": [
        {
          "value": "color",
          "label": "t:sections.all.background_type.option__1.label"
        },
        {
          "value": "gradient",
          "label": "t:sections.all.background_type.option__2.label"
        },
        {
          "value": "image",
          "label": "t:sections.all.background_type.option__3.label"
        },
        {
          "value": "video",
          "label": "t:sections.all.background_type.option__4.label"
        }
      ],
      "default": "color"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.background_color.label",
      "alpha": true,
      "visible_if": "{{ section.settings.background_type == 'color' }}"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.background_gradient.label",
      "visible_if": "{{ section.settings.background_type == 'gradient' }}"
    },
    {
      "type": "number",
      "id": "background_margin",
      "label": "t:sections.all.background_margin.label",
      "default": 0
    },
    {
      "type": "number",
      "id": "padding_top",
      "label": "t:sections.all.padding_top.label",
      "default": 50
    },
    {
      "type": "number",
      "id": "padding_bottom",
      "label": "t:sections.all.padding_bottom.label",
      "default": 50
    }
  ],
  "blocks": [
    {
      "type": "block",
      "name": "t:sections.banner_v6.blocks.name.label",
      "limit": 6,
      "settings": [
        {
          "type": "image_picker",
          "id": "image",
          "label": "t:sections.banner_v6.blocks.image.label",
          "info": "t:sections.banner_v6.blocks.image.info"
        },
        {
          "type": "url",
          "id": "url",
          "label": "t:sections.banner_v6.blocks.url.label",
          "default": "/collections/all"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "t:sections.banner_v6.presets.name"
    }
  ]
}
{% endschema %}
