{{ 'section-about-v6.css' | asset_url | stylesheet_tag }}

<section {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <div class='about-v6'>
    <xo-container {% render 'section-layout' %}>
      <div class='about-v6__info'>
        <xo-animate xo-cascade>
          <h3 class='about-v6__title'>
            {{ section.settings.title }}
          </h3>
        </xo-animate>
        <xo-animate xo-cascade>
          <div class='about-v6__sub-title'>
            {{ section.settings.sub_title }}
          </div>
        </xo-animate>
      </div>

      <xo-carousel
        xo-breakpoints='
          {

            700: {
              perView: 1,
            },
            1000: {
              perView: 2,
            },
            1200: {
              perView: 3,
            },
          }
        '
        {% if section.settings.autoplay %}
          xo-autoplay='1500'
        {% endif %}
        xo-per-view='{{ section.settings.columns_carousel }}'
        xo-speed='400'
        xo-loop
        xo-hover-pause
        xo-gap='30'
      >
        <xo-carousel-inner>
          <xo-carousel-list>
            {%- for block in section.blocks -%}
              <xo-carousel-slide>
                <xo-animate xo-cascade>
                  <div class='about-v6__wrap'>
                    <div class='about-v6__image'>
                      {% render 'image', image: block.settings.image %}
                    </div>
                    <div class='about-v6__info-teams'>
                      <h4 class='about-v6__name'>
                        <a href='#'>{{ block.settings.name }}</a>
                      </h4>
                      <div class='about-v6__positiion'>
                        {{ block.settings.position }}
                      </div>
                    </div>
                  </div>
                </xo-animate>
              </xo-carousel-slide>
            {%- endfor -%}
          </xo-carousel-list>
        </xo-carousel-inner>
      </xo-carousel>
    </xo-container>
  </div>
</section>

{% schema %}
{
  "name": "t:sections.about_v6.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": "range",
      "id": "columns_carousel",
      "min": 3,
      "max": 6,
      "step": 1,
      "label": "t:sections.about_v6.settings.columns-carousel.label",
      "default": 3
    },
    {
      "type": "checkbox",
      "id": "autoplay",
      "label": "t:sections.about_v6.settings.auto-play.label",
      "default": true
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.about_v6.settings.title.label"
    },
    {
      "type": "text",
      "id": "sub_title",
      "label": "t:sections.about_v6.settings.sub-title.label"
    },
    {
      "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
    }
  ],
  "blocks": [
    {
      "name": "About box ",
      "type": "about-box",
      "settings": [
        {
          "type": "image_picker",
          "id": "image",
          "label": "t:sections.about_v6.settings.image.label"
        },
        {
          "type": "text",
          "id": "name",
          "label": "t:sections.about_v6.settings.name.label"
        },
        {
          "type": "text",
          "id": "position",
          "label": "t:sections.about_v6.settings.position.label"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "t:sections.about_v6.presets.name"
    }
  ]
}
{% endschema %}
