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

<div {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container {% render 'section-layout' %}>
    <div class='banner79__top'>
     
      <div class='banner79__video'>
          {% comment %} {% render 'image', image: section.settings.image %} {% endcomment %}
          <xo-video-cover
            xo-src='{{ section.settings.video_url }}'
          ></xo-video-cover>
        <div class='banner79'>
          <div>
            <h3 class='banner79__title'>{{ section.settings.title }}</h3>
            <div class='banner79__subtitle'>{{ section.settings.subtitle }}</div>
          </div>
          <xo-modal-trigger xo-name='video1' class='banner79__action'>
            <span class='banner79__btn'>
              {{ section.settings.banner_svg }}
              <span class='line-video79 line-79'></span>
              <span class='line-video79 line-243'></span>
              <span class='line-video79 line-343'></span>
            </span>
          </xo-modal-trigger>
          
        </div>
      </div>
    </div>
  </xo-container>
</div>
<xo-modal xo-name='video1' class='banner79__modal'>
  <xo-modal-trigger class='banner79__modal-close'>
    {% render 'icon', name: 'close-small', icon_size: '25' %}
  </xo-modal-trigger>
  {% render 'video', video_url: section.settings.video_url, autoplay: true %}
</xo-modal>

{% schema %}
{
  "name": "t:sections.banner_v5.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": "text",
      "id": "title",
      "label": "t:sections.banner_v5.settings.title.label",
      "info": "Enter <br> for a line break"
    },
    {
      "type": "text",
      "id": "subtitle",
      "label": "t:sections.banner_v5.settings.subtitle.label",
      "info": "Enter <br> for a line break"
    },
    {
      "type": "html",
      "id": "banner_svg",
      "label": "t:sections.banner_v5.settings.banner_svg.label"
    },
    {
      "type": "video_url",
      "id": "video_url",
      "label": "t:sections.banner_v5.settings.video.label",
      "accept": [
        "youtube",
        "vimeo"
      ]
    },
    {
      "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": "image_picker",
      "id": "background_image_desktop",
      "label": "t:sections.all.background_image_desktop.label"
    },
    {
      "type": "image_picker",
      "id": "background_image_mobile",
      "label": "t:sections.all.background_image_mobile.label"
    },
    {
      "type": "checkbox",
      "id": "use_parallax",
      "label": "t:sections.all.use_parallax.label",
      "default": true
    },
    {
      "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_v5.presets.name"
    }
  ]
}
{% endschema %}
