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

<section {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <div class='about-v15'>
    <xo-container {% render 'section-layout' %}>
      <xo-animate xo-cascade>
        <div class='about-v15__info'>
          <h1 class='about-v15__title'>
            {{ section.settings.title }}
          </h1>
        </div>
      </xo-animate>
      <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-v15__wrap'>
                    <div class='about-v15__svg'>
                      {% render 'about-star', stars: block.settings.stars %}
                    </div>
                    <div class='about-v15__desc'>
                      {{ block.settings.description }}
                    </div>
                    <div class='about-v15__info-teams'>
                      <div class='about-v15__image'>
                        {% render 'image', image: block.settings.image_avt %}
                      </div>
                      <div class='about-v15__profile'>
                        <h2 class='about-v15__name'>
                          {{ block.settings.name }}
                        </h2>
                        <div class='about-v15__positiion'>
                          {{ block.settings.position }}
                        </div>
                      </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_v15.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_v15.settings.columns-carousel.label",
      "default": 3
    },
    {
      "type": "checkbox",
      "id": "autoplay",
      "label": "t:sections.about_v15.settings.auto-play.label",
      "default": true
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.about_v15.settings.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": "range",
          "id": "stars",
          "min": 0,
          "max": 5,
          "step": 1,
          "label": "t:sections.about_v15.settings.star.label",
          "info": "Set to zero to disable",
          "default": 5
        },
        {
          "type": "text",
          "id": "description",
          "label": "t:sections.about_v15.settings.desc.label"
        },
        {
          "type": "image_picker",
          "id": "image_avt",
          "label": "t:sections.about_v15.settings.image-avt.label"
        },
        {
          "type": "text",
          "id": "name",
          "label": "t:sections.about_v15.settings.name.label"
        },
        {
          "type": "text",
          "id": "position",
          "label": "t:sections.about_v15.settings.position.label"
        }
      ]
    }
  ],
  "presets": [
    {
      "name": "t:sections.about_v15.presets.name"
    }
  ]
}
{% endschema %}
