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

<div class='banner-v13'>
  <div {% render 'section-attr' %}>
    <div class='banner-v13__line banner-v13__line1'></div>
    <xo-container {% render 'section-layout' %}>
      <xo-grid>
        <div style='--xs: 12; --sm: 12; --md: 4' class='banner-v13__text'>
          <div class='banner-v13__dot'>
            <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>
              <path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"/>
            </svg>
            <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>
              <path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"/>
            </svg>
            <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>
              <path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"/>
            </svg>
          </div>
          {{ section.settings.text }}
        </div>
        <div style='--xs: 12; --sm: 12; --md: 8' class='banner-v13__image'>
          <a href='{{ section.settings.url }}' class='{% render 'hover-style' %} banner-v13__img-left'>
            {%- render 'image', image: section.settings.img_left -%}
          </a>
          <a href='{{ section.settings.url }}' class='{% render 'hover-style' %} banner-v13__img-mid'>
            {%- render 'image', image: section.settings.img_mid -%}
          </a>
          <a href='{{ section.settings.url }}' class='{% render 'hover-style' %} banner-v13__img-right'>
            {%- render 'image', image: section.settings.img_right -%}
          </a>
        </div>
      </xo-grid>
    </xo-container>
    <div class='banner-v13__line banner-v13__line2'></div>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v13.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": "image_picker",
      "id": "img_left",
      "label": "t:sections.banner_v13.settings.img_left.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "image_picker",
      "id": "img_mid",
      "label": "t:sections.banner_v13.settings.img_mid.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "image_picker",
      "id": "img_right",
      "label": "t:sections.banner_v13.settings.img_right.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "text",
      "label": "t:sections.banner_v13.settings.text.label",
      "info": "t:sections.banner_v13.settings.info_text.label"
    },
    {
      "type": "url",
      "id": "url",
      "label": "t:sections.banner_v13.settings.url.label",
      "default": "/collections/all"
    },
    {
      "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": "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_v13.presets.name"
    }
  ]
}
{% endschema %}
