Step 1 collection slider

{%- liquid
assign unique_id = section.id
assign section_width = section.settings.section_width
assign section_width_mobile = section.settings.section_width_mobile
assign image_width_desktop = section.settings.image_width_desktop
assign image_width_mobile = section.settings.image_width_mobile
assign border_radius = section.settings.border_radius
assign padding_tb = section.settings.padding_tb
assign title_size = section.settings.title_size
assign title_size_mobile = section.settings.title_size_mobile
assign font_title = section.settings.font_title
-%}

{% if section.blocks.size > 0 %} {% for block in section.blocks %}

{{ block.settings.cat_title }}

{% endfor %} {% else %}

No collections found. Add some in the section settings. {% endif %}

{% schema %}
{
“name”: “Collection Slider”,
“disabled_on”: {
“groups”: [“header”, “footer”]
},
“settings”: [
{
“type”: “range”,
“id”: “section_width”,
“label”: “Section Width”,
“min”: 1,
“max”: 100,
“step”: 1,
“default”: 80,
“unit”: “%”
},
{
“type”: “range”,
“id”: “section_width_mobile”,
“label”: “Section Width Mobile”,
“min”: 1,
“max”: 100,
“step”: 1,
“default”: 100,
“unit”: “%”
},
{
“type”: “range”,
“id”: “image_width_desktop”,
“label”: “Image Width Desktop”,
“min”: 2,
“max”: 200,
“step”: 2,
“default”: 100,
“unit”: “px”
},
{
“type”: “range”,
“id”: “image_width_mobile”,
“label”: “Image Width Mobile”,
“min”: 2,
“max”: 200,
“step”: 2,
“default”: 72,
“unit”: “px”
},
{
“type”: “range”,
“id”: “border_radius”,
“label”: “Image Roundness”,
“min”: 1,
“max”: 100,
“step”: 1,
“default”: 100,
“unit”: “px”
},
{
“type”: “range”,
“id”: “padding_tb”,
“label”: “Padding top bottom”,
“min”: 1,
“max”: 100,
“step”: 1,
“default”: 15,
“unit”: “px”
},
{
“type”: “font_picker”,
“id”: “font_title”,
“label”: “Choose Font”,
“default”: “serif”
},
{
“type”: “range”,
“id”: “title_size”,
“label”: “Title Font Size”,
“min”: 1,
“max”: 10,
“step”: 0.1,
“default”: 1.5,
“unit”: “rem”
},
{
“type”: “range”,
“id”: “title_size_mobile”,
“label”: “Title Font Size Mobile”,
“min”: 0.1,
“max”: 5,
“step”: 0.1,
“default”: 1,
“unit”: “rem”
}
],

“blocks”:[{
“name”: “Collection Slider”,
“type”: “collection-slider”,
“settings”:[
{
“type”: “image_picker”,
“id”: “cat_img”,
“label”: “Collection Image”
},

   {
    "type": "text",
    "id": "cat_title",
    "label": "Collection Name"
  },

   {
    "type": "url",
    "id": "cat_link",
    "label": "Choose Collection"
  },
]

}
],

“presets”: [{
“name”: “Collection Slider Section”
}]
}
{% endschema %}