{{ 'section-banner-v2.css' | asset_url | stylesheet_tag }}

<div class='banner-v209'>
  <div
    {% render 'section-attr' %}
  >
    {% render 'section-bg-image' %}
    <xo-container
      {% render 'section-layout' %}
    >
      <xo-animate xo-cascade>
        <div class='banner-v209-header'>
          {% render 'heading-sub-title-desc', tag: section.settings['sub-title-desc_tag'], title_tag: 'h3', title: section.settings['sub-title-desc_title'] %}
        </div>
      </xo-animate>
      <xo-animate xo-cascade>
        <xo-grid
          style='--xo-grid-col-gap:{{ section.settings.gap }}px ;--xo-grid-row-gap:{{ section.settings.gap }}px;'
        >
          <div class='banner-v209__wrap' style='--xs:12;--sm:12;--lg:3'>
            <ul class='banner-v209__list'>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', image: section.settings['banner-1_img-1'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-1_title-1'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-1_desc-1'] }}</div>
                </div>
              </li>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', image: section.settings['banner-1_img-2'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-1_title-2'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-1_desc-2'] }}</div>
                </div>
              </li>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', image: section.settings['banner-1_img-3'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-1_title-3'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-1_desc-3'] }}</div>
                </div>
              </li>
            </ul>
          </div>
          <div class='banner-v209__wrap' style='--xs:12;--sm:12;--lg:6'>
            <a href='{{ section.settings.banner-2_link }}' class='banner-v209__img'>
              {%- render 'image', image: section.settings['image-2'] -%}
            </a>
          </div>
          <div class='banner-v209__wrap' style='--xs:12;--sm:12;--lg:3'>
            <ul class='banner-v209__list'>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', image: section.settings['banner-3_img-1'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-3_title-1'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-3_desc-1'] }}</div>
                </div>
              </li>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', lazyload: 'false', image: section.settings['banner-3_img-2'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-3_title-2'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-3_desc-2'] }}</div>
                </div>
              </li>
              <li class='banner-v209__item'>
                <div class='banner-v209__item-img'>
                  {%- render 'image', image: section.settings['banner-3_img-3'] -%}
                </div>
                <div class='banner-v209__content'>
                  <h6 class='banner-v209__title'>{{ section.settings['banner-3_title-3'] }}</h6>
                  <div class='banner-v209__desc'>{{ section.settings['banner-3_desc-3'] }}</div>
                </div>
              </li>
            </ul>
          </div>
        </xo-grid>
      </xo-animate>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v2.name",
  "settings": [
    {
      "type": "header",
      "content": "Setting layout"
    },
    {
      "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": "header",
      "content": "t:sections.all.sub-title-desc.header.content"
    },
    {
      "type": "text",
      "id": "sub-title-desc_title",
      "default": "t:sections.banner_v2.settings.head.title",
      "label": "t:sections.all.sub-title-desc.header.title",
      "info": "Enter <br> tag for a line break"
    },
    {
      "type": "text",
      "id": "sub-title-desc_tag",
      "default": "t:sections.banner_v2.settings.head.tag_content",
      "label": "t:sections.all.sub-title-desc.header.tag"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v2.settings.header.content-1"
    },
    {
      "type": "image_picker",
      "id": "banner-1_img-1",
      "label": "t:sections.banner_v2.settings.image.label-1",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-1_title-1",
      "default": "t:sections.banner_v2.settings.title.content-1",
      "label": "t:sections.banner_v2.settings.title.label-1"
    },
    {
      "type": "text",
      "id": "banner-1_desc-1",
      "default": "t:sections.banner_v2.settings.description.content-1",
      "label": "t:sections.banner_v2.settings.description.label-1"
    },
    {
      "type": "image_picker",
      "id": "banner-1_img-2",
      "label": "t:sections.banner_v2.settings.image.label-2",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-1_title-2",
      "default": "t:sections.banner_v2.settings.title.content-2",
      "label": "t:sections.banner_v2.settings.title.label-2"
    },
    {
      "type": "text",
      "id": "banner-1_desc-2",
      "default": "t:sections.banner_v2.settings.description.content-2",
      "label": "t:sections.banner_v2.settings.description.label-2"
    },
    {
      "type": "image_picker",
      "id": "banner-1_img-3",
      "label": "t:sections.banner_v2.settings.image.label-3",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-1_title-3",
      "default": "t:sections.banner_v2.settings.title.content-3",
      "label": "t:sections.banner_v2.settings.title.label-3"
    },
    {
      "type": "text",
      "id": "banner-1_desc-3",
      "default": "t:sections.banner_v2.settings.description.content-3",
      "label": "t:sections.banner_v2.settings.description.label-3"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v2.settings.header.content-2"
    },
    {
      "type": "image_picker",
      "id": "image-2",
      "label": "t:sections.banner_v2.settings.image.label",
      "info": "t:sections.banner_v2.settings.image.info_big"
    },
    {
      "type": "url",
      "id": "banner-2_link",
      "default": "t:sections.banner_v2.settings.url.content",
      "label": "t:sections.banner_v2.settings.url.label"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v2.settings.header.content-3"
    },
    {
      "type": "image_picker",
      "id": "banner-3_img-1",
      "label": "t:sections.banner_v2.settings.image.label-4",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-3_title-1",
      "default": "t:sections.banner_v2.settings.title.content-4",
      "label": "t:sections.banner_v2.settings.title.label-4"
    },
    {
      "type": "text",
      "id": "banner-3_desc-1",
      "default": "t:sections.banner_v2.settings.description.content-4",
      "label": "t:sections.banner_v2.settings.description.label-4"
    },
    {
      "type": "image_picker",
      "id": "banner-3_img-2",
      "label": "t:sections.banner_v2.settings.image.label-5",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-3_title-2",
      "default": "t:sections.banner_v2.settings.title.content-5",
      "label": "t:sections.banner_v2.settings.title.label-5"
    },
    {
      "type": "text",
      "id": "banner-3_desc-2",
      "default": "t:sections.banner_v2.settings.description.content-5",
      "label": "t:sections.banner_v2.settings.description.label-5"
    },
    {
      "type": "image_picker",
      "id": "banner-3_img-3",
      "label": "t:sections.banner_v2.settings.image.label-6",
      "info": "t:sections.banner_v2.settings.image.info"
    },
    {
      "type": "text",
      "id": "banner-3_title-3",
      "default": "t:sections.banner_v2.settings.title.content-6",
      "label": "t:sections.banner_v2.settings.title.label-6"
    },
    {
      "type": "text",
      "id": "banner-3_desc-3",
      "default": "t:sections.banner_v2.settings.description.content-6",
      "label": "t:sections.banner_v2.settings.description.label-6"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v2.settings.header.content-4"
    },
    {
      "type": "range",
      "id": "gap",
      "min": 0,
      "max": 40,
      "step": 1,
      "unit": "px",
      "default": 30,
      "label": "t:sections.banner_v2.settings.gap.label"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.bg_color.label"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.bg_gradient.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_desktop",
      "label": "t:sections.all.background_image_desktop.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_mobile",
      "label": "t:sections.all.background_image_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "use_parallax",
      "label": "t:sections.all.use_parallax.label",
      "default": true
    },
    {
      "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
    }
  ],
  "presets": [
    {
      "name": "t:sections.banner_v2.presets.name"
    }
  ]
}
{% endschema %}
