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

<div class='banner-v10'>
  <div {% render 'section-attr' %}>
    <xo-container {% render 'section-layout' %}>
      <div class='banner-v10__heading'>
        <xo-animate xo-type='fade-up' xo-easing='outCubic'>
          <div class='banner-v10__heading-text' style='--font_size: {{ section.settings.font_size }}vw;'>
            {{ section.settings.main_title }}
          </div>
        </xo-animate>
        <div class='banner-v10__line'></div>
      </div>
      <xo-grid class='banner-v10__main-grid'>
        <div style='--xs: 12; --lg: 3;' class='banner-v10__col banner-v10__col1'>
          <div class='banner-v10__box banner-v10__box1'>
            <a href='{{ section.settings.url1 }}' class='banner-v10__img'>
              {%- render 'image', image: section.settings.image1 -%}
              {%- if section.settings.video_url1 -%}
                <xo-video-cover class='banner-v10__video' loop xo-autoplay='true' xo-src='{{ section.settings.video_url1 }}'></xo-video-cover>
              {%- endif -%}
            </a>
            <div class='banner-v10__content'>
              <div class='banner-v10__title'>{{ section.settings.title1 }}</div>
              <div class='banner-v10__desc'>{{ section.settings.desc1 }}</div>
            </div>
          </div>
          <div class='banner-v10__box banner-v10__box2'>
            <a href='{{ section.settings.url2 }}' class='banner-v10__img'>
              {%- render 'image', image: section.settings.image2 -%}
              {%- if section.settings.video_url2 -%}
                <xo-video-cover class='banner-v10__video' loop xo-autoplay='true' xo-src='{{ section.settings.video_url2 }}'></xo-video-cover>
              {%- endif -%}
            </a>
            <div class='banner-v10__content'>
              <div class='banner-v10__title'>{{ section.settings.title2 }}</div>
              <div class='banner-v10__desc'>{{ section.settings.desc2 }}</div>
            </div>
          </div>
        </div>
        <div style='--xs: 12; --lg: 6;' class='banner-v10__col banner-v10__col2'>
          <div class='banner-v10__box banner-v10__box3'>
            <a href='{{ section.settings.url3 }}' class='banner-v10__img'>
              {%- render 'image', image: section.settings.image3 -%}
              {%- if section.settings.video_url3 -%}
                <xo-video-cover class='banner-v10__video' loop xo-autoplay='true' xo-src='{{ section.settings.video_url3 }}'></xo-video-cover>
              {%- endif -%}
            </a>
            <div class='banner-v10__content'>
              <div class='banner-v10__title'>{{ section.settings.title3 }}</div>
              <div class='banner-v10__desc'>{{ section.settings.desc3 }}</div>
            </div>
          </div>
        </div>
        <div style='--xs: 12; --lg: 3;' class='banner-v10__col banner-v10__col3'>
          <div class='banner-v10__box banner-v10__box4'>
            <a href='{{ section.settings.url4 }}' class='banner-v10__img'>
              {%- render 'image', image: section.settings.image4 -%}
              {%- if section.settings.video_url4 -%}
                <xo-video-cover class='banner-v10__video' loop xo-autoplay='true' xo-src='{{ section.settings.video_url4 }}'></xo-video-cover>
              {%- endif -%}
            </a>
            <div class='banner-v10__content'>
              <div class='banner-v10__title'>{{ section.settings.title4 }}</div>
              <div class='banner-v10__desc'>{{ section.settings.desc4 }}</div>
            </div>
          </div>
          <div class='banner-v10__box banner-v10__box5'>
            <a href='{{ section.settings.url5 }}' class='banner-v10__img'>
              {%- render 'image', image: section.settings.image5 -%}
              {%- if section.settings.video_url5 -%}
                <xo-video-cover class='banner-v10__video' loop xo-autoplay='true' xo-src='{{ section.settings.video_url5 }}'></xo-video-cover>
              {%- endif -%}
            </a>
            <div class='banner-v10__content'>
              <div class='banner-v10__title'>{{ section.settings.title5 }}</div>
              <div class='banner-v10__desc'>{{ section.settings.desc5 }}</div>
            </div>
          </div>
        </div>
      </xo-grid>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.banner_v10.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"
        },
        {
          "value": "sidepadding",
          "label": "t:sections.all.width.options__4.label"
        }
      ]
    },
    {
      "type": "text",
      "id": "main_title",
      "label": "t:sections.banner_v10.settings.main_title.label",
      "default": "CREATIVE MAC"
    },
    {
      "type": "range",
      "id": "font_size",
      "min": 1,
      "max": 15,
      "step": 0.2,
      "unit": "vw",
      "default": 14.8,
      "label": "t:sections.banner_v10.settings.font_size.label"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v10.settings.heading.item1"
    },
    {
      "type": "image_picker",
      "id": "image1",
      "label": "t:sections.banner_v10.settings.image1.label",
      "info": "t:sections.banner_v10.settings.image1.info"
    },
    {
      "type": "textarea",
      "id": "video_url1",
      "label": "t:sections.banner_v10.settings.video_url.label"
    },
    {
      "type": "url",
      "id": "url1",
      "label": "t:sections.banner_v10.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title1",
      "label": "t:sections.banner_v10.settings.title.label",
      "default": "TITLE 1"
    },
    {
      "type": "text",
      "id": "desc1",
      "label": "t:sections.banner_v10.settings.desc.label",
      "default": "DESC 1"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v10.settings.heading.item2"
    },
    {
      "type": "image_picker",
      "id": "image2",
      "label": "t:sections.banner_v10.settings.image1.label",
      "info": "t:sections.banner_v10.settings.image1.info"
    },
    {
      "type": "textarea",
      "id": "video_url2",
      "label": "t:sections.banner_v10.settings.video_url.label"
    },
    {
      "type": "url",
      "id": "url2",
      "label": "t:sections.banner_v10.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title2",
      "label": "t:sections.banner_v10.settings.title.label",
      "default": "TITLE 1"
    },
    {
      "type": "text",
      "id": "desc2",
      "label": "t:sections.banner_v10.settings.desc.label",
      "default": "DESC 1"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v10.settings.heading.item3"
    },
    {
      "type": "image_picker",
      "id": "image3",
      "label": "t:sections.banner_v10.settings.image3.label",
      "info": "t:sections.banner_v10.settings.image3.info"
    },
    {
      "type": "textarea",
      "id": "video_url3",
      "label": "t:sections.banner_v10.settings.video_url.label"
    },
    {
      "type": "url",
      "id": "url3",
      "label": "t:sections.banner_v10.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title3",
      "label": "t:sections.banner_v10.settings.title.label",
      "default": "TITLE 1"
    },
    {
      "type": "text",
      "id": "desc3",
      "label": "t:sections.banner_v10.settings.desc.label",
      "default": "DESC 1"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v10.settings.heading.item4"
    },
    {
      "type": "image_picker",
      "id": "image4",
      "label": "t:sections.banner_v10.settings.image1.label",
      "info": "t:sections.banner_v10.settings.image1.info"
    },
    {
      "type": "textarea",
      "id": "video_url4",
      "label": "t:sections.banner_v10.settings.video_url.label"
    },
    {
      "type": "url",
      "id": "url4",
      "label": "t:sections.banner_v10.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title4",
      "label": "t:sections.banner_v10.settings.title.label",
      "default": "TITLE 1"
    },
    {
      "type": "text",
      "id": "desc4",
      "label": "t:sections.banner_v10.settings.desc.label",
      "default": "DESC 1"
    },
    {
      "type": "header",
      "content": "t:sections.banner_v10.settings.heading.item5"
    },
    {
      "type": "image_picker",
      "id": "image5",
      "label": "t:sections.banner_v10.settings.image1.label",
      "info": "t:sections.banner_v10.settings.image1.info"
    },
    {
      "type": "textarea",
      "id": "video_url5",
      "label": "t:sections.banner_v10.settings.video_url.label"
    },
    {
      "type": "url",
      "id": "url5",
      "label": "t:sections.banner_v10.settings.url.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "title5",
      "label": "t:sections.banner_v10.settings.title.label",
      "default": "TITLE 1"
    },
    {
      "type": "text",
      "id": "desc5",
      "label": "t:sections.banner_v10.settings.desc.label",
      "default": "DESC 1"
    },
    {
      "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_v10.presets.name"
    }
  ]
}
{% endschema %}
