

<div {% render 'section-attr' %}>
  <div class='banner-v8'>
    <xo-container {% render 'section-layout' %}>
      <xo-grid class='banner-v8__grid'>
        <div style='--xs: 12; --md: 5;' class='banner-v8__lerft'>
          <a href='{{ section.settings.url1 }}' class='banner-v8__img1 {% render 'hover-style' %}'>
            {%- render 'image', image: section.settings.img1 -%}
          </a>
          <div class='banner-v8__text'>
            <div class='banner-v8__sub'>{{ section.settings.sub1 }}</div>
            <div class='banner-v8__title'>{{ section.settings.title1 }}</div>
          </div>
        </div>
        <div style='--xs: 12; --md: 7;' class='banner-v8__right'>
          <a href='{{ section.settings.url1 }}' class='banner-v8__img2 {% render 'hover-style' %}'>
            {%- render 'image', image: section.settings.img2 -%}
          </a>
          <div class='banner-v8__text'>
            <div class='banner-v8__sub'>{{ section.settings.sub2 }}</div>
            <div class='banner-v8__title'>{{ section.settings.title2 }}</div>
          </div>
        </div>
      </xo-grid>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v8.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": "scale_up",
      "options": [
        {
          "value": "scale_up",
          "label": "t:sections.all.hover.option__1.label"
        },
        {
          "value": "scale_down",
          "label": "t:sections.all.hover.option__2.label"
        },
        {
          "value": "rotate",
          "label": "t:sections.all.hover.option__3.label"
        },
        {
          "value": "slide_up",
          "label": "t:sections.all.hover.option__4.label"
        },
        {
          "value": "ripple",
          "label": "t:sections.all.hover.option__5.label"
        },
        {
          "value": "black_white",
          "label": "t:sections.all.hover.option__6.label"
        },
        {
          "value": "shake",
          "label": "t:sections.all.hover.option__7.label"
        }
      ]
    },
    {
      "type": "image_picker",
      "id": "img1",
      "label": "t:sections.banner_v8.settings.img1.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "sub1",
      "label": "t:sections.banner_v8.settings.sub1.label",
      "default": "sub"
    },
    {
      "type": "text",
      "id": "title1",
      "label": "t:sections.banner_v8.settings.title1.label",
      "default": "title"
    },
    {
      "type": "image_picker",
      "id": "img2",
      "label": "t:sections.banner_v8.settings.img2.label",
      "info": "Support jpg, jpeg, png, svg, gif"
    },
    {
      "type": "text",
      "id": "sub2",
      "label": "t:sections.banner_v8.settings.sub2.label",
      "default": "sub"
    },
    {
      "type": "text",
      "id": "title2",
      "label": "t:sections.banner_v8.settings.title2.label",
      "default": "title"
    },
    {
      "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_v8.presets.name"
    }
  ]
}
{% endschema %}
