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

<section {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <xo-container>
    <div class='banner-v263'>
      <xo-modal-trigger xo-name='banner-v263-video' class='banner-v263__trigger'>
        <div class='banner-v263__button-icon'>{% render 'icon', name: 'play', icon_size: '15' %}</div>
        <div class='banner-v263__button-text'>{{ section.settings.button_text }}</div>
      </xo-modal-trigger>
      <xo-modal xo-name='banner-v263-video' xo-animate='fade-up' class='banner-v263__modal' xo-portal>
        <xo-modal-trigger class='banner-v263__close'>
          <button>{% render 'icon', name: 'close2', icon_size: '15' %}</button>
        </xo-modal-trigger>
        <div class='banner-v263__wrap'>
          {% render 'video', video: section.settings.video_import, video_url: section.settings.video_url, aspect_ratio %}
        </div>
      </xo-modal>
      <h2 class='banner-v263__title'>{{ section.settings.title }}</h2>
    </div>
  </xo-container>
</section>

{% schema %}
{
  "name": "t:sections.banner_v7.name",
  "tag": "section",
  "class": "section",
  "settings": [
    {
      "type": "text",
      "id": "button_text",
      "label": "t:sections.banner_v7.settings.button_text.label",
      "default": "VIDEO INTRO"
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.banner_v7.settings.title.label",
      "default": "Ready For Any Adventure"
    },
    {
      "type": "video",
      "id": "video_import",
      "label": "t:sections.banner_v7.settings.video_import.label"
    },
    {
      "type": "video_url",
      "id": "video_url",
      "label": "t:sections.banner_v7.settings.video_url.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_v7.presets.name"
    }
  ]
}
{% endschema %}
