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

<div class='banner-v3'>
  <div {% render 'section-attr' %}>
    <xo-container {% render 'section-layout' %}>
      <div class='banner-v3__heading'>
        <div class='banner-v3__title'>{{ section.settings.title }}</div>
        <div class='banner-v3__sub'>{{ section.settings.sub }}</div>
      </div>
      <div class='banner-v3__grid'>
        <div class='banner-v3__item'>
          <a href='{{ section.settings.item1_url }}' class='banner-v3__image'>
            {%- render 'image', image: section.settings.item1_image -%}
          </a>
          <div class='banner-v3__item-title'>
            {{ section.settings.item1_title }}
          </div>
        </div>
        {% comment %}  {% endcomment %}
        <div class='banner-v3__item banner-v3__item-2'>
          <div class='banner-v3__mt'>
            <a href='{{ section.settings.item2_url }}' class='banner-v3__image'>
              {%- render 'image', image: section.settings.item2_image -%}
            </a>
            <div class='banner-v3__item-title'>
              {{ section.settings.item2_title }}
            </div>
          </div>
        </div>
        {% comment %}  {% endcomment %}
        <div class='banner-v3__item'>
          <a href='{{ section.settings.item3_url }}' class='banner-v3__image'>
            {%- render 'image', image: section.settings.item3_image -%}
          </a>
          <div class='banner-v3__item-title'>
            {{ section.settings.item3_title }}
          </div>
        </div>
        {% comment %}  {% endcomment %}
        <div class='banner-v3__item banner-v3__item-4'>
          <div class='banner-v3__mt'>
            <a href='{{ section.settings.item4_url }}' class='banner-v3__image'>
              {%- render 'image', image: section.settings.item4_image -%}
            </a>
            <div class='banner-v3__item-title'>
              {{ section.settings.item4_title }}
            </div>
          </div>
        </div>
      </div>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v3.name",
  "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": "text",
      "id": "title",
      "label": "t:sections.banner_v3.settings.title.label"
    },
    {
      "type": "text",
      "id": "sub",
      "label": "t:sections.banner_v3.settings.sub.label"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.item1.label"
    },
    {
      "type": "image_picker",
      "id": "item1_image",
      "label": "t:sections.banner_v3.settings.image.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "item1_title",
      "label": "t:sections.banner_v3.settings.title.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "url",
      "id": "item1_url",
      "label": "t:sections.banner_v3.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.item2.label"
    },
    {
      "type": "image_picker",
      "id": "item2_image",
      "label": "t:sections.banner_v3.settings.image.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "item2_title",
      "label": "t:sections.banner_v3.settings.title.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "url",
      "id": "item2_url",
      "label": "t:sections.banner_v3.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.item3.label"
    },
    {
      "type": "image_picker",
      "id": "item3_image",
      "label": "t:sections.banner_v3.settings.image.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "item3_title",
      "label": "t:sections.banner_v3.settings.title.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "url",
      "id": "item3_url",
      "label": "t:sections.banner_v3.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v3.settings.item4.label"
    },
    {
      "type": "image_picker",
      "id": "item4_image",
      "label": "t:sections.banner_v3.settings.image.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "item4_title",
      "label": "t:sections.banner_v3.settings.title.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "url",
      "id": "item4_url",
      "label": "t:sections.banner_v3.settings.url.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": "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 %}
