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

<section {% render 'section-attr' %}>
  {% render 'section-bg-image' %}
  <div class='about-v7'>
    <xo-container {% render 'section-layout' %}>
      <div class='about-v7__info'>
        <xo-animate xo-cascade>
          <h3 class='about-v7__title'>
            {{ section.settings.title }}
          </h3>
        </xo-animate>
        <xo-animate xo-cascade>
          <div class='about-v7__sub-title'>
            {{ section.settings.sub_title }}
          </div>
        </xo-animate>
      </div>
      <xo-grid class='about-v7__wrap'>
        <div style='--xs: 12; --sm: 6; --lg: 6' class='about-v7__img-left'>
          <xo-animate xo-cascade class='about-v7__img-box'>
            <div class='about-v7__img-big'>
              <a class='about-v7__img-block' href='{{ section.settings.button_link1 }}'> {% render 'image', image: section.settings.image_v1 %} </a>
            </div>
          </xo-animate>
        </div>

        <div style='--xs: 12; --sm: 6; --lg: 6' class='about-v7__img-right'>
          <div class='about-v7__img-small'>
            <xo-animate xo-cascade class='about-v7__img-box'>
              <div class='about-v7__img-top'>
                <a class='about-v7__img-block' href='{{ section.settings.button_link2 }}'> {% render 'image', image: section.settings.image_v2 %} </a>
              </div>
            </xo-animate>
            <xo-animate xo-cascade class='about-v7__img-box'>
              <div class='about-v7__img-top'>
                <a class='about-v7__img-block' href='{{ section.settings.button_link3 }}'> {% render 'image', image: section.settings.image_v3 %} </a>
              </div>
            </xo-animate>
          </div>
        </div>
      </xo-grid>
    </xo-container>
  </div>
</section>

{% schema %}
{
  "name": "t:sections.about_v7.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.about_v7.settings.title.label"
    },
    {
      "type": "text",
      "id": "sub_title",
      "label": "t:sections.about_v7.settings.sub-title.label",
      "info": "Insert <br> to break the line."
    },
    {
      "type": "image_picker",
      "id": "image_v1",
      "label": "t:sections.about_v7.settings.image-v1.label"
    },
    {
      "type": "url",
      "id": "button_link1",
      "label": "t:sections.about_v7.settings.button_link1.label"
    },
    {
      "type": "image_picker",
      "id": "image_v2",
      "label": "t:sections.about_v7.settings.image-v2.label"
    },
    {
      "type": "url",
      "id": "button_link2",
      "label": "t:sections.about_v7.settings.button_link2.label"
    },
    {
      "type": "image_picker",
      "id": "image_v3",
      "label": "t:sections.about_v7.settings.image-v3.label"
    },
    {
      "type": "url",
      "id": "button_link3",
      "label": "t:sections.about_v7.settings.button_link3.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
    }
  ],
  "presets": [
    {
      "name": "t:sections.about_v7.presets.name"
    }
  ]
}
{% endschema %}
