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

<div {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container {% render 'section-layout' %}>
    <div class='banner-v3'>
      <xo-animate xo-cascade>
        <div class='banner-v3__text six-float'>
          <div class='banner-v3__title'>{{ section.settings.banner_title1 }}</div>
          <div class='banner-v3__subtitle'>{{ section.settings.banner_subtitle1 }}</div>
        </div>
      </xo-animate>
      <xo-animate xo-cascade>
        <xo-grid style='--xs: 1; --sm: 2; --xl: 4;  --xo-grid-col-gap: {{ section.settings.gap }}px;'>
          <div class='banner-v3__item'>
            <a href='{{ section.settings.banner_link1 }}'>
              {% render 'image', image: section.settings.image1 %}
            </a>
            <div class='banner-v3__item-quantity'>
              <h3 class='banner-v3__item-title'>{{ section.settings.banner_itemtitle1 }}</h3>
            </div>
          </div>

          <div class='banner-v3__item'>
            <a href='{{ section.settings.banner_link2 }}'>
              {% render 'image', image: section.settings.image2 %}
            </a>
            <div class='banner-v3__item-quantity'>
              <h3 class='banner-v3__item-title'>{{ section.settings.banner_itemtitle2 }}</h3>
            </div>
          </div>

          <div class='banner-v3__item'>
            <a href='{{ section.settings.banner_link3 }}'>
              {% render 'image', image: section.settings.image3 %}
            </a>
            <div class='banner-v3__item-quantity'>
              <h3 class='banner-v3__item-title'>{{ section.settings.banner_itemtitle3 }}</h3>
            </div>
          </div>

          <div class='banner-v3__item'>
            <a href='{{ section.settings.banner_link4 }}'>
              {% render 'image', image: section.settings.image4 %}
            </a>
            <div class='banner-v3__item-quantity'>
              <h3 class='banner-v3__item-title'>{{ section.settings.banner_itemtitle4 }}</h3>
            </div>
          </div>
        </xo-grid>
      </xo-animate>
    </div>
  </xo-container>
</div>

{% schema %}
{
  "name": "t:sections.banner_v3.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"
        },
        {
          "value": "sidepadding",
          "label": "t:sections.all.width.options__4.label"
        }
      ]
    },
    {
      "type": "range",
      "id": "gap",
      "min": 0,
      "max": 80,
      "step": 1,
      "unit": "px",
      "label": "Column gap",
      "default": 0
    },
    {
      "type": "text",
      "id": "banner_title1",
      "label": "t:sections.banner_v3.settings.banner_title1.label"
    },
    {
      "type": "text",
      "id": "banner_subtitle1",
      "label": "t:sections.banner_v3.settings.banner_subtitle1.label"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.header1.label"
    },
    {
      "type": "text",
      "id": "banner_itemtitle1",
      "label": "t:sections.banner_v3.settings.banner_itemtitle1.label"
    },
    {
      "type": "image_picker",
      "id": "image1",
      "label": "t:sections.banner_v3.settings.image1.label",
      "info": "t:sections.banner_v3.settings.image1.info"
    },
    {
      "type": "url",
      "id": "banner_link1",
      "label": "t:sections.banner_v3.settings.banner_link1.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.header2.label"
    },
    {
      "type": "text",
      "id": "banner_itemtitle2",
      "label": "t:sections.banner_v3.settings.banner_itemtitle2.label"
    },
    {
      "type": "image_picker",
      "id": "image2",
      "label": "t:sections.banner_v3.settings.image2.label",
      "info": "t:sections.banner_v3.settings.image1.info"
    },
    {
      "type": "url",
      "id": "banner_link2",
      "label": "t:sections.banner_v3.settings.banner_link2.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.header3.label"
    },
    {
      "type": "text",
      "id": "banner_itemtitle3",
      "label": "t:sections.banner_v3.settings.banner_itemtitle3.label",
      "info": "Enter <br> for a line break"
    },
    {
      "type": "image_picker",
      "id": "image3",
      "label": "t:sections.banner_v3.settings.image3.label",
      "info": "t:sections.banner_v3.settings.image1.info"
    },
    {
      "type": "url",
      "id": "banner_link3",
      "label": "t:sections.banner_v3.settings.banner_link3.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.header4.label"
    },
    {
      "type": "text",
      "id": "banner_itemtitle4",
      "label": "t:sections.banner_v3.settings.banner_itemtitle4.label",
      "info": "Enter <br> for a line break"
    },
    {
      "type": "image_picker",
      "id": "image4",
      "label": "t:sections.banner_v3.settings.image4.label",
      "info": "t:sections.banner_v3.settings.image1.info"
    },
    {
      "type": "url",
      "id": "banner_link4",
      "label": "t:sections.banner_v3.settings.banner_link4.label",
      "default": "/collections/all"
    },
    {
      "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_v3.presets.name"
    }
  ]
}
{% endschema %}
