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

<div {% render 'section-attr' %}>
  <xo-animate xo-cascade xo-type='zoom-out' delay='2000' class='banner-v9'>
    <xo-container {% render 'section-layout' %}>
      <div class='banner-v9__grid' style='--gap:{{ section.settings.gap }}px'>
        <a href='{{ section.settings.link1 }}' class='banner-v9__item banner-v9__item-row  {%- render 'hover-style' -%}'>
          {% render 'image', image: section.settings.image1 %}
          <div class='banner-v9__content'>
            <div class='banner-v9__info'>
              <div class='banner-v9__title'>
                {{ section.settings.title1 }}
              </div>
              <div class='banner-v9__desc'>{{ section.settings.desc1 }}</div>
            </div>
            <div class='banner-v9__icon'>
              {%- render 'icon', name: 'arrow-short-below', icon_size: '20', color: 'rgba(var(--color-background))' -%}
            </div>
          </div>
        </a>
        <a href='{{ section.settings.link2 }}' class='banner-v9__item banner-v9__item-r2-c1 {%- render 'hover-style' -%}'>
          {% render 'image', image: section.settings.image2 %}
          <div class='banner-v9__content'>
            <div class='banner-v9__info'>
              <div class='banner-v9__title'>
                {{ section.settings.title2 }}
              </div>
              <div class='banner-v9__desc'>{{ section.settings.desc2 }}</div>
            </div>
            <div class='banner-v9__icon'>
              {%- render 'icon', name: 'arrow-short-below', icon_size: '20', color: 'rgba(var(--color-background))' -%}
            </div>
          </div>
        </a>
        <a href='{{ section.settings.link3 }}' class='banner-v9__item banner-v9__item-r3-c1 {%- render 'hover-style' -%}'>
          {% render 'image', image: section.settings.image3 %}
          <div class='banner-v9__content'>
            <div class='banner-v9__info'>
              <div class='banner-v9__title'>
                {{ section.settings.title3 }}
              </div>
              <div class='banner-v9__desc'>{{ section.settings.desc3 }}</div>
            </div>
            <div class='banner-v9__icon'>
              {%- render 'icon', name: 'arrow-short-below', icon_size: '20', color: 'rgba(var(--color-background))' -%}
            </div>
          </div>
        </a>
        <a href='{{ section.settings.link4 }}' class='banner-v9__item banner-v9__item-r23-c2 {%- render 'hover-style' -%}'>
          {% render 'image', image: section.settings.image4 %}
          <div class='banner-v9__content'>
            <div class='banner-v9__info'>
              <div class='banner-v9__title'>
                {{ section.settings.title4 }}
              </div>
              <div class='banner-v9__desc'>{{ section.settings.desc4 }}</div>
            </div>
            <div class='banner-v9__icon'>
              {%- render 'icon', name: 'arrow-short-below', icon_size: '20', color: 'rgba(var(--color-background))' -%}
            </div>
          </div>
        </a>
      </div>
    </xo-container>
  </xo-animate>
</div>

{% schema %}
{
  "name": "t:sections.banner_v9.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",
      "options": [
        {
          "value": "scale",
          "label": "t:sections.all.hover.option__1.label"
        },
        {
          "value": "rotate",
          "label": "t:sections.all.hover.option__2.label"
        },
        {
          "value": "slide_up",
          "label": "t:sections.all.hover.option__3.label"
        },
        {
          "value": "ripple",
          "label": "t:sections.all.hover.option__4.label"
        },
        {
          "value": "black_white",
          "label": "t:sections.all.hover.option__5.label"
        },
        {
          "value": "shake",
          "label": "t:sections.all.hover.option__6.label"
        }
      ]
    },
    {
      "type": "range",
      "id": "gap",
      "min": 0,
      "max": 100,
      "step": 1,
      "unit": "px",
      "default": 30,
      "label": "Image gap"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v9.settings.header.content1"
    },
    {
      "type": "image_picker",
      "id": "image1",
      "label": "t:sections.banner_v9.settings.image.label",
      "info": "Recommended image ratio is 788px:950px "
    },
    {
      "type": "url",
      "id": "link1",
      "label": "Url"
    },
    {
      "type": "text",
      "id": "title1",
      "label": "t:sections.banner_v9.settings.title.label",
      "default": "text"
    },
    {
      "type": "text",
      "id": "desc1",
      "label": "t:sections.banner_v9.settings.desc.label",
      "default": "text"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v9.settings.header.content2"
    },
    {
      "type": "image_picker",
      "id": "image2",
      "label": "t:sections.banner_v9.settings.image.label",
      "info": "Recommended image ratio is 788px:460px "
    },
    {
      "type": "url",
      "id": "link2",
      "label": "Url"
    },
    {
      "type": "text",
      "id": "title2",
      "label": "t:sections.banner_v9.settings.title.label",
      "default": "text"
    },
    {
      "type": "text",
      "id": "desc2",
      "label": "t:sections.banner_v9.settings.desc.label",
      "default": "text"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v9.settings.header.content3"
    },
    {
      "type": "image_picker",
      "id": "image3",
      "label": "t:sections.banner_v9.settings.image.label",
      "info": "Recommended image ratio is 788px:460px "
    },
    {
      "type": "url",
      "id": "link3",
      "label": "Url"
    },
    {
      "type": "text",
      "id": "title3",
      "label": "t:sections.banner_v9.settings.title.label",
      "default": "text"
    },
    {
      "type": "text",
      "id": "desc3",
      "label": "t:sections.banner_v9.settings.desc.label",
      "default": "text"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v9.settings.header.content4"
    },
    {
      "type": "image_picker",
      "id": "image4",
      "label": "t:sections.banner_v9.settings.image.label",
      "info": "Recommended image ratio is 788px:460px "
    },
    {
      "type": "url",
      "id": "link4",
      "label": "Url"
    },
    {
      "type": "text",
      "id": "title4",
      "label": "t:sections.banner_v9.settings.title.label",
      "default": "text"
    },
    {
      "type": "text",
      "id": "desc4",
      "label": "t:sections.banner_v9.settings.desc.label",
      "default": "text"
    },
    {
      "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_v9.presets.name"
    }
  ]
}
{% endschema %}
