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

<div {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container
    {% render 'section-layout' %}
  >
    <xo-animate>
      <xo-grid style='--xs: 1; --sm: 2; --lg: 3; --xo-grid-col-gap: {{section.settings.gap}}px; --xo-grid-row-gap: {{section.settings.gap}}px'>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner1 }}'>
                {% render 'image', image: section.settings.img_1 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner1 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_1 }}</h3>
            </a>
          </div>
        </div>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner2 }}'>
                {% render 'image', image: section.settings.img_2 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner2 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_2 }}</h3>
            </a>
          </div>
        </div>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner3 }}'>
                {% render 'image', image: section.settings.img_3 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner3 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_3 }}</h3>
            </a>
          </div>
        </div>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner4 }}'>
                {% render 'image', image: section.settings.img_4 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner4 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_4 }}</h3>
            </a>
          </div>
        </div>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner5 }}'>
                {% render 'image', image: section.settings.img_5 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner5 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_5 }}</h3>
            </a>
          </div>
        </div>
        <div class='banner-201__item'>
          <div
            class='{% render 'hover-style' %} banner-v201__radius'
          >
            <div class='banner-v201__border'>
              <a class='banner-v201__img-link' href='{{ section.settings.link_banner6 }}'>
                {% render 'image', image: section.settings.img_6 %}
              </a>
            </div>
            <a href='{{ section.settings.link_banner6 }}'>
              <h3 class='banner-v201__title'>{{ section.settings.title_6 }}</h3>
            </a>
          </div>
        </div>
      </xo-grid>
    </xo-animate>
  </xo-container>
</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": "select",
      "id": "hover",
      "label": "t:sections.all.hover.label",
      "default": "hover1",
      "options": [
        {
          "value": "hover1",
          "label": "t:sections.all.hover.option__1.label"
        },
        {
          "value": "hover2",
          "label": "Style 02"
        },
        {
          "value": "hover3",
          "label": "Style 03"
        },
        {
          "value": "hover4",
          "label": "Style 04"
        },
        {
          "value": "hover5",
          "label": "Style 05"
        },
        {
          "value": "hover6",
          "label": "Style 06"
        }
      ]
    },
    {
      "type": "range",
      "id": "gap",
      "min": 0,
      "max": 100,
      "step": 1,
      "label": "t:sections.banner_v6.settings.gap.label",
      "default": 0
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header1.content"
    },
    {
      "type": "image_picker",
      "id": "img_1",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_1",
      "label": "t:sections.banner_v6.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title_1",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 1"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header2.content"
    },
    {
      "type": "image_picker",
      "id": "img_2",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_2",
      "label": "t:sections.banner_v6.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title_2",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 2"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header3.content"
    },
    {
      "type": "image_picker",
      "id": "img_3",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_3",
      "label": "t:sections.banner_v6.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title_3",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 3"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header4.content"
    },
    {
      "type": "image_picker",
      "id": "img_4",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_4",
      "label": "t:sections.banner_v6.settings.url.label"
    },
    {
      "type": "text",
      "id": "title_4",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 4"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header5.content"
    },
    {
      "type": "image_picker",
      "id": "img_5",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_5",
      "label": "t:sections.banner_v6.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title_5",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 5"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v6.settings.header6.content"
    },
    {
      "type": "image_picker",
      "id": "img_6",
      "label": "t:sections.banner_v6.settings.img.label",
      "info": "Support jpg, jpeg, png, svg"
    },
    {
      "type": "url",
      "id": "url_6",
      "label": "t:sections.banner_v6.settings.url.label"
    },
    {
      "type": "text",
      "id": "title_6",
      "label": "t:sections.banner_v6.settings.title.label",
      "default": "Title 6"
    },
    {
      "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_v6.presets.name"
    }
  ]
}
{% endschema %}
