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

<div class='banner-v4'>
  <div {% render 'section-attr' %}>
    <xo-container {% render 'section-layout' %}>
      <xo-grid class='banner-v4__grid'>
        <div style='--xs: 12; --md: 4;' class='banner-v4__left'>
          <a href='{{ section.settings.url }}' class='banner-v4__m-img'>
            {%- render 'image', image: section.settings.image1 -%}
            <div class='banner-v4__img-gr'>
              <div class='banner-v4__sm-img six-float'>
                {%- render 'image', image: section.settings.image2 -%}
              </div>
              <div class='banner-v4__sm-img six-float'>
                {%- render 'image', image: section.settings.image3 -%}
              </div>
              <div class='banner-v4__sm-img six-float'>
                {%- render 'image', image: section.settings.image4 -%}
              </div>
            </div>
          </a>
        </div>
        <div style='--xs: 12; --md: 8;' class='banner-v4__right'>
          <div class='banner-v4__content'>
            <div class='banner-v4__title'>{{ section.settings.title }}</div>
            <div class='banner-v4__desc'>{{ section.settings.desc }}</div>
          </div>
        </div>
      </xo-grid>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v4.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": "image_picker",
      "id": "image1",
      "label": "t:sections.banner_v4.settings.image1.label",
      "info": "t:sections.banner_v4.settings.image1.info"
    },
    {
      "type": "url",
      "id": "url",
      "label": "t:sections.banner_v4.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "image_picker",
      "id": "image2",
      "label": "t:sections.banner_v4.settings.image2.label",
      "info": "t:sections.banner_v4.settings.image2.info"
    },
    {
      "type": "image_picker",
      "id": "image3",
      "label": "t:sections.banner_v4.settings.image3.label",
      "info": "t:sections.banner_v4.settings.image3.info"
    },
    {
      "type": "image_picker",
      "id": "image4",
      "label": "t:sections.banner_v4.settings.image4.label",
      "info": "t:sections.banner_v4.settings.image4.info"
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.banner_v4.settings.title.label",
      "default": "Lorem Ipsum"
    },
    {
      "type": "text",
      "id": "desc",
      "label": "t:sections.banner_v4.settings.desc.label",
      "default": "Lorem Ipsum"
    },
    {
      "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": "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_v4.presets.name"
    }
  ]
}
{% endschema %}
