

<div {% render 'section-attr' %}>
  <div class='banner-v2'>
    <xo-grid class='banner-v2__grid'>
      <div style='--xs: 12; --md: 3;' class='banner-v2__col'>
        <a href='{{ section.settings.left_img }}' class='banner-v2__img {% render 'hover-style' %}'>
          {%- render 'image', image: section.settings.left_img -%}
        </a>
      </div>
      <div style='--xs: 12; --md: 6;' class='banner-v2__col banner-v2__col2'>
        <div class='banner-v2__video'>
          {%- if section.settings.video_url != blank -%}
            <xo-video-cover xo-src='{{section.settings.video_url}}'></xo-video-cover>
          {%- endif -%}
        </div>
        <div class='banner-v2__text__group banner-v2__text--left'>
          <div class='banner-v2__text'>{{ section.settings.text_top_left }}</div>
          <div class='banner-v2__text'>{{ section.settings.text_bottom_left }}</div>
        </div>
        <div class='banner-v2__text__group banner-v2__text--mid'>
          <div class='banner-v2__text'>{{ section.settings.text_top_mid }}</div>
          <div class='banner-v2__text'>{{ section.settings.text_bottom_mid }}</div>
        </div>
        <div class='banner-v2__text__group banner-v2__text--right'>
          <div class='banner-v2__text'>{{ section.settings.text_top_right }}</div>
          <div class='banner-v2__text'>{{ section.settings.text_bottom_right }}</div>
        </div>
      </div>
      <div style='--xs: 12; --md: 3;' class='banner-v2__col'>
        <a href='{{ section.settings.right_img }}' class='banner-v2__img {% render 'hover-style' %}'>
          {%- render 'image', image: section.settings.right_img -%}
        </a>
      </div>
    </xo-grid>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v2.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "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": "left_img",
      "label": "t:sections.banner_v2.settings.left_img.label",
      "info": "t:sections.banner_v2.settings.left_img.info"
    },
    {
      "type": "html",
      "id": "video_url",
      "label": "t:sections.banner_v2.settings.video_url.label"
    },
    {
      "type": "image_picker",
      "id": "right_img",
      "label": "t:sections.banner_v2.settings.right_img.label",
      "info": "t:sections.banner_v2.settings.right_img.info"
    },
    {
      "type": "text",
      "id": "text_top_left",
      "label": "t:sections.banner_v2.settings.text_top_left.label",
      "default": "TEXT TOP LEFT"
    },
    {
      "type": "text",
      "id": "text_bottom_left",
      "label": "t:sections.banner_v2.settings.text_bottom_left.label",
      "default": "TEXT BOT LEFT"
    },
    {
      "type": "text",
      "id": "text_top_mid",
      "label": "t:sections.banner_v2.settings.text_top_mid.label",
      "default": "TEXT TOP MID"
    },
    {
      "type": "text",
      "id": "text_bottom_mid",
      "label": "t:sections.banner_v2.settings.text_bottom_mid.label",
      "default": "TEXT BOTTOM MID"
    },
    {
      "type": "text",
      "id": "text_top_right",
      "label": "t:sections.banner_v2.settings.text_top_right.label",
      "default": "TEXT TOP right"
    },
    {
      "type": "text",
      "id": "text_bottom_right",
      "label": "t:sections.banner_v2.settings.text_bottom_right.label",
      "default": "TEXT BOTTOM right"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "select",
      "id": "background_type",
      "label": "t:sections.all.background_type.label",
      "options": [
        {
          "value": "color",
          "label": "t:sections.all.background_type.option__1.label"
        },
        {
          "value": "gradient",
          "label": "t:sections.all.background_type.option__2.label"
        },
        {
          "value": "image",
          "label": "t:sections.all.background_type.option__3.label"
        },
        {
          "value": "video",
          "label": "t:sections.all.background_type.option__4.label"
        }
      ],
      "default": "color"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.background_color.label",
      "alpha": true,
      "visible_if": "{{ section.settings.background_type == 'color' }}"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.background_gradient.label",
      "visible_if": "{{ section.settings.background_type == 'gradient' }}"
    },
    {
      "type": "number",
      "id": "background_margin",
      "label": "t:sections.all.background_margin.label",
      "default": 0
    },
    {
      "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_v2.presets.name",
      "settings": {
        "hover": "scale_up",
        "left_img": "shopify://shop_images/image_1382.jpg",
        "video_url": "https://cdn.shopify.com/videos/c/o/v/045372fa33c74ea3b6fd4d37cb762f78.mp4",
        "right_img": "shopify://shop_images/image_1384_503eb215-a5fd-4482-a65c-a6958e5daba7.jpg",
        "text_top_left": "THE POWER OF",
        "text_bottom_left": "DESIGN IS HERE",
        "text_top_mid": "DISCOVER THE NEXT WAVE",
        "text_bottom_mid": "OF STYLE",
        "text_top_right": "THE FUTURE OF FASHION",
        "text_bottom_right": "STARTS TODAY",
        "color_scheme": "",
        "background_type": "color",
        "background_color": "",
        "background_gradient": "",
        "background_margin": 0,
        "padding_top": 0,
        "padding_bottom": 0
      }
    }
  ]
}
{% endschema %}
