

<div {% render 'section-attr' %}>
  <div class='collection-v2'>
    <xo-container {% render 'section-layout' %}>
      <div class='collection-v2__title'>
        {{ section.settings.title }}
      </div>
      <xo-grid style='--xs: 1; --md: 3;' class='collection-v2__grid'>
        <div class='collection-v2__img collection-v2__img1 {% render 'hover-style' %}'>
          <a href='{{ section.settings.url1 }}'>
            {%- render 'image', image: section.settings.img1 -%}
          </a>
          <div class='collection-v2__name'>{{ section.settings.text1 }}</div>
        </div>
        <div class='collection-v2__img collection-v2__img2 {% render 'hover-style' %}'>
          <a href='{{ section.settings.url2 }}'>
            {%- render 'image', image: section.settings.img2 -%}
          </a>
          <div class='collection-v2__name'>{{ section.settings.text2 }}</div>
        </div>
        <div class='collection-v2__img collection-v2__img3 {% render 'hover-style' %}'>
          <a href='{{ section.settings.url3 }}'>
            {%- render 'image', image: section.settings.img3 -%}
          </a>
          <div class='collection-v2__name'>{{ section.settings.text3 }}</div>
        </div>
      </xo-grid>
    </xo-container>
  </div>
</div>

{% schema %}
{
  "name": "t:sections.collection_v2.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": "select",
      "id": "hover",
      "label": "t:sections.all.hover.label",
      "default": "scale_up",
      "options": [
        {
          "value": "scale_up",
          "label": "t:sections.all.hover.option__1.label"
        },
        {
          "value": "scale_down",
          "label": "t:sections.all.hover.option__2.label"
        },
        {
          "value": "rotate",
          "label": "t:sections.all.hover.option__3.label"
        },
        {
          "value": "slide_up",
          "label": "t:sections.all.hover.option__4.label"
        },
        {
          "value": "ripple",
          "label": "t:sections.all.hover.option__5.label"
        },
        {
          "value": "black_white",
          "label": "t:sections.all.hover.option__6.label"
        },
        {
          "value": "shake",
          "label": "t:sections.all.hover.option__7.label"
        }
      ]
    },
    {
      "type": "text",
      "id": "title",
      "label": "t:sections.collection_v2.settings.title.label"
    },
    {
      "type": "image_picker",
      "id": "img1",
      "label": "t:sections.collection_v2.settings.img1.label"
    },
    {
      "type": "url",
      "id": "url1",
      "label": "t:sections.collection_v2.settings.url1.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "text1",
      "label": "t:sections.collection_v2.settings.text1.label",
      "default": "Text 1"
    },
    {
      "type": "image_picker",
      "id": "img2",
      "label": "t:sections.collection_v2.settings.img2.label"
    },
    {
      "type": "url",
      "id": "url2",
      "label": "t:sections.collection_v2.settings.url2.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "text2",
      "label": "t:sections.collection_v2.settings.text2.label",
      "default": "Text 2"
    },
    {
      "type": "image_picker",
      "id": "img3",
      "label": "t:sections.collection_v2.settings.img3.label"
    },
    {
      "type": "url",
      "id": "url3",
      "label": "t:sections.collection_v2.settings.url3.label",
      "default": "/collections/all"
    },
    {
      "type": "text",
      "id": "text3",
      "label": "t:sections.collection_v2.settings.text3.label",
      "default": "Text 3"
    },
    {
      "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": "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.collection_v2.presets.name"
    }
  ]
}
{% endschema %}
