{%- comment -%} MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections {%- endcomment -%} {%- comment -%} Image with text: an image beside an eyebrow, heading, rich text, up to two buttons and a short icon list. Image left or right at one third, half or two thirds of the width; text plain or in a card that can overlap the image on desktop. Separate desktop and mobile image. No JavaScript. Depends on: snippets/lib-image.liquid, snippets/lib-button.liquid {%- endcomment -%} {%- liquid assign s = section.settings assign heading_tag = s.heading_tag | default: 'h2' assign eager = false if section.index <= 2 assign eager = true endif assign sizes = '(min-width: 990px) 50vw, 100vw' case s.image_width when 'third' assign sizes = '(min-width: 990px) 34vw, 100vw' when 'two_thirds' assign sizes = '(min-width: 990px) 66vw, 100vw' endcase assign overlap = 0 if s.box_style == 'card' assign overlap = s.card_overlap endif -%}
{{ s.eyebrow | escape }}
{%- endif -%} {%- if s.heading != blank -%} <{{ heading_tag }} class="lib-image-text__heading lib-image-text__heading--{{ s.heading_size }}"> {{- s.heading -}} {{ heading_tag }}> {%- endif -%} {%- if s.text != blank -%}Every vase, bowl and cup is thrown by hand in our two-wheel studio, glazed in small batches and fired twice. No two are quite the same, and that is the point.
" }, { "type": "header", "content": "Image" }, { "type": "image_picker", "id": "image", "label": "Desktop image" }, { "type": "image_picker", "id": "image_mobile", "label": "Mobile image", "info": "Optional. Shown below 750px." }, { "type": "select", "id": "image_position", "label": "Image position on desktop", "options": [ { "value": "left", "label": "Left" }, { "value": "right", "label": "Right" } ], "default": "left" }, { "type": "select", "id": "image_width", "label": "Image width on desktop", "options": [ { "value": "third", "label": "One third" }, { "value": "half", "label": "Half" }, { "value": "two_thirds", "label": "Two thirds" } ], "default": "half" }, { "type": "select", "id": "image_ratio", "label": "Image shape on desktop", "options": [ { "value": "adapt", "label": "Adapt to image" }, { "value": "square", "label": "Square" }, { "value": "portrait", "label": "Portrait" }, { "value": "landscape", "label": "Landscape" }, { "value": "arch", "label": "Arch" } ], "default": "portrait" }, { "type": "select", "id": "image_ratio_mobile", "label": "Image shape on mobile", "options": [ { "value": "adapt", "label": "Adapt to image" }, { "value": "square", "label": "Square" }, { "value": "portrait", "label": "Portrait" }, { "value": "landscape", "label": "Landscape" }, { "value": "arch", "label": "Arch" } ], "default": "square" }, { "type": "range", "id": "image_radius", "label": "Image and card corner radius", "min": 0, "max": 40, "step": 2, "unit": "px", "default": 16 }, { "type": "header", "content": "Buttons" }, { "type": "text", "id": "button_label", "label": "First button label", "default": "Shop ceramics" }, { "type": "url", "id": "button_url", "label": "First button link" }, { "type": "select", "id": "button_style", "label": "First button style", "options": [ { "value": "primary", "label": "Solid" }, { "value": "outline", "label": "Outline" }, { "value": "text", "label": "Text link" } ], "default": "primary" }, { "type": "checkbox", "id": "button_new_tab", "label": "Open first link in a new tab", "default": false }, { "type": "text", "id": "button2_label", "label": "Second button label", "default": "Visit the studio" }, { "type": "url", "id": "button2_url", "label": "Second button link" }, { "type": "select", "id": "button2_style", "label": "Second button style", "options": [ { "value": "primary", "label": "Solid" }, { "value": "outline", "label": "Outline" }, { "value": "text", "label": "Text link" } ], "default": "text" }, { "type": "checkbox", "id": "button2_new_tab", "label": "Open second link in a new tab", "default": false }, { "type": "header", "content": "Layout" }, { "type": "select", "id": "box_style", "label": "Text box", "options": [ { "value": "none", "label": "None" }, { "value": "card", "label": "Card" } ], "default": "card" }, { "type": "range", "id": "card_overlap", "label": "Card overlaps image on desktop", "info": "0 keeps the card beside the image.", "min": 0, "max": 160, "step": 8, "unit": "px", "default": 80, "visible_if": "{{ section.settings.box_style == 'card' }}" }, { "type": "select", "id": "vertical_alignment", "label": "Text position next to the image", "options": [ { "value": "start", "label": "Top" }, { "value": "center", "label": "Middle" }, { "value": "end", "label": "Bottom" } ], "default": "center" }, { "type": "select", "id": "mobile_order", "label": "Order on mobile", "options": [ { "value": "image_first", "label": "Image first" }, { "value": "text_first", "label": "Text first" } ], "default": "image_first" }, { "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": "Text alignment on desktop", "default": "left" }, { "type": "select", "id": "text_alignment_mobile", "label": "Text alignment on mobile", "options": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Center" }, { "value": "right", "label": "Right" } ], "default": "left" }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "color_bg", "label": "Background", "default": "#F4EFE8" }, { "type": "color_background", "id": "color_bg_gradient", "label": "Background gradient", "info": "Optional. Covers the background color." }, { "type": "color", "id": "color_text", "label": "Text", "default": "#2A2420" }, { "type": "color", "id": "color_accent", "label": "Accent (solid button, eyebrow, icons)", "default": "#7A5A3A" }, { "type": "color", "id": "color_accent_text", "label": "Text on accent", "default": "#FFFFFF" }, { "type": "color", "id": "color_card", "label": "Card background", "default": "#FFFDF9", "visible_if": "{{ section.settings.box_style == 'card' }}" }, { "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": 48 }, { "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": "Fade in on scroll", "info": "Only in browsers that support scroll-driven animations; never when reduced motion is on.", "default": false } ], "blocks": [ { "type": "item", "name": "Icon point", "limit": 4, "settings": [ { "type": "select", "id": "icon", "label": "Icon", "options": [ { "value": "check", "label": "Check" }, { "value": "leaf", "label": "Leaf" }, { "value": "truck", "label": "Delivery" }, { "value": "return", "label": "Returns" }, { "value": "shield", "label": "Shield" }, { "value": "star", "label": "Star" }, { "value": "heart", "label": "Heart" }, { "value": "hand", "label": "Handmade" } ], "default": "check" }, { "type": "image_picker", "id": "icon_image", "label": "Custom icon", "info": "Optional. Replaces the icon above." }, { "type": "text", "id": "text", "label": "Text", "default": "Thrown by hand in small batches" } ] } ], "presets": [ { "name": "Lib · Image with text", "blocks": [ { "type": "item", "settings": { "icon": "hand", "text": "Thrown by hand in small batches" } }, { "type": "item", "settings": { "icon": "leaf", "text": "Lead-free glazes, food safe" } }, { "type": "item", "settings": { "icon": "return", "text": "Free returns within 30 days" } } ] } ] } {% endschema %}