{%- comment -%} MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections {%- endcomment -%} {%- comment -%} Stats counter: up to 6 figures with label, optional description and icon. Numbers count up from zero when the section scrolls into view. The final value is in the HTML, so search engines, visitors without JavaScript and visitors who prefer reduced motion see it as typed. The leading number is animated; text before and after it ("$", "+", "%", "/5") stays as is. Layouts: row with dividers, cards, or big numbers beside the heading. {%- endcomment -%} {%- liquid assign s = section.settings assign heading_tag = s.heading_tag | default: 'h2' -%}
{{ b.number | escape }}
{%- if b.label != blank -%}{{ b.label | escape }}
{%- endif -%} {%- if b.description != blank -%}A few numbers from our workshop. Replace them with your store's own figures.
" }, { "type": "header", "content": "Layout" }, { "type": "select", "id": "layout", "label": "Layout", "options": [ { "value": "row", "label": "Row with dividers" }, { "value": "cards", "label": "Cards" }, { "value": "beside", "label": "Big numbers beside the heading" } ], "default": "row" }, { "type": "select", "id": "number_size", "label": "Number size", "options": [ { "value": "small", "label": "Small" }, { "value": "medium", "label": "Medium" }, { "value": "large", "label": "Large" }, { "value": "xlarge", "label": "Extra large" } ], "default": "large" }, { "type": "range", "id": "columns", "label": "Columns on desktop", "info": "Beside the heading, two columns on desktop.", "min": 2, "max": 6, "step": 1, "default": 4 }, { "type": "select", "id": "columns_mobile", "label": "Columns on mobile", "options": [ { "value": "1", "label": "1 column" }, { "value": "2", "label": "2 columns" } ], "default": "2" }, { "type": "select", "id": "section_width", "label": "Width", "options": [ { "value": "page", "label": "Page width" }, { "value": "full", "label": "Full width" } ], "default": "page" }, { "type": "text_alignment", "id": "text_alignment", "label": "Alignment on desktop", "default": "left" }, { "type": "select", "id": "text_alignment_mobile", "label": "Alignment on mobile", "options": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ], "default": "left" }, { "type": "range", "id": "card_radius", "label": "Card corner radius", "min": 0, "max": 32, "step": 2, "unit": "px", "default": 16, "visible_if": "{{ section.settings.layout == 'cards' }}" }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "color_bg", "label": "Background", "default": "#1F2A24" }, { "type": "color_background", "id": "color_bg_gradient", "label": "Background gradient", "info": "Optional. Covers the background color." }, { "type": "color", "id": "color_text", "label": "Text", "default": "#F3EFE6" }, { "type": "color", "id": "color_number", "label": "Numbers", "default": "#E3B97A" }, { "type": "color", "id": "color_card", "label": "Card", "default": "#2A3830", "visible_if": "{{ section.settings.layout == 'cards' }}" }, { "type": "header", "content": "Spacing and visibility" }, { "type": "range", "id": "padding_top", "label": "Top padding on desktop", "min": 0, "max": 200, "step": 4, "unit": "px", "default": 88 }, { "type": "range", "id": "padding_bottom", "label": "Bottom padding on desktop", "min": 0, "max": 200, "step": 4, "unit": "px", "default": 88 }, { "type": "range", "id": "padding_top_mobile", "label": "Top padding on mobile", "min": 0, "max": 160, "step": 4, "unit": "px", "default": 56 }, { "type": "range", "id": "padding_bottom_mobile", "label": "Bottom padding on mobile", "min": 0, "max": 160, "step": 4, "unit": "px", "default": 56 }, { "type": "select", "id": "show_on", "label": "Show on", "options": [ { "value": "all", "label": "All devices" }, { "value": "desktop", "label": "Desktop only" }, { "value": "mobile", "label": "Mobile only" } ], "default": "all" }, { "type": "text", "id": "anchor_id", "label": "Anchor ID", "info": "Optional. Link to this section with #your-id." }, { "type": "header", "content": "Motion" }, { "type": "checkbox", "id": "animate", "label": "Count up when scrolled into view", "info": "Off for visitors who prefer reduced motion; they see the final numbers.", "default": true }, { "type": "range", "id": "duration", "label": "Count duration", "min": 1, "max": 4, "step": 0.5, "unit": "s", "default": 2, "visible_if": "{{ section.settings.animate }}" } ], "blocks": [ { "type": "stat", "name": "Stat", "limit": 6, "settings": [ { "type": "text", "id": "number", "label": "Number", "info": "For example 12,000+, 98%, $2.5M or 4.9/5. The first number counts up; text before and after it stays.", "default": "100+" }, { "type": "text", "id": "label", "label": "Label", "default": "Label" }, { "type": "richtext", "id": "description", "label": "Description", "info": "Optional." }, { "type": "image_picker", "id": "icon", "label": "Icon", "info": "Optional. Shown at 40px above the number." } ] } ], "presets": [ { "name": "Lib · Stats counter", "blocks": [ { "type": "stat", "settings": { "number": "12,000+", "label": "Pieces made by hand", "description": "Thrown, glazed and fired in our studio.
" } }, { "type": "stat", "settings": { "number": "4.8/5", "label": "Average review", "description": "From verified orders on our store.
" } }, { "type": "stat", "settings": { "number": "38", "label": "Glaze colors", "description": "Mixed in small batches, by hand.
" } }, { "type": "stat", "settings": { "number": "9 yrs", "label": "In the same studio", "description": "Same wheel, same kiln, same street.
" } } ] } ] } {% endschema %}