{%- comment -%}
MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections
{%- endcomment -%}
{%- comment -%}
Video hero: a full-bleed, muted, looping Shopify-hosted background video (with an optional
separate mobile video) under an overlay, with eyebrow, heading, text and up to two buttons (blocks) on top.
Desktop and mobile poster images (each with its focal point) show first, and stay when there
is no JavaScript, no video, or the visitor prefers reduced motion. A pause / play button is
always shown while a video can play. The video file only loads when the section is on screen,
and it pauses when scrolled away or when the tab is hidden.
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
comment
Which video plays where: one video for every device, or a desktop and a mobile one.
endcomment
assign desktop_device = 'all'
if s.video_mobile != blank
assign desktop_device = 'desktop'
endif
assign has_video = false
if s.video != blank or s.video_mobile != blank
assign has_video = true
endif
-%}
{{ s.eyebrow | escape }}
Small-batch stoneware for everyday tables, glazed in earthy tones and made to last.
" }, { "type": "header", "content": "Layout" }, { "type": "select", "id": "height", "label": "Height on desktop", "options": [ { "value": "small", "label": "Small" }, { "value": "medium", "label": "Medium" }, { "value": "large", "label": "Large" }, { "value": "full", "label": "Full screen" } ], "default": "large" }, { "type": "select", "id": "height_mobile", "label": "Height on mobile", "options": [ { "value": "small", "label": "Small" }, { "value": "medium", "label": "Medium" }, { "value": "large", "label": "Large" }, { "value": "full", "label": "Full screen" } ], "default": "large" }, { "type": "select", "id": "section_width", "label": "Width", "options": [ { "value": "page", "label": "Page width" }, { "value": "full", "label": "Full width" } ], "default": "full" }, { "type": "range", "id": "corner_radius", "label": "Corner radius", "min": 0, "max": 40, "step": 2, "unit": "px", "default": 12, "visible_if": "{{ section.settings.section_width == 'page' }}" }, { "type": "select", "id": "content_position", "label": "Content position on desktop", "info": "Text aligns to the same side: left, center or right.", "options": [ { "value": "top-left", "label": "Top left" }, { "value": "top-center", "label": "Top center" }, { "value": "top-right", "label": "Top right" }, { "value": "middle-left", "label": "Middle left" }, { "value": "middle-center", "label": "Middle center" }, { "value": "middle-right", "label": "Middle right" }, { "value": "bottom-left", "label": "Bottom left" }, { "value": "bottom-center", "label": "Bottom center" }, { "value": "bottom-right", "label": "Bottom right" } ], "default": "middle-left" }, { "type": "select", "id": "content_position_mobile", "label": "Content position on mobile", "options": [ { "value": "top", "label": "Top" }, { "value": "middle", "label": "Middle" }, { "value": "bottom", "label": "Bottom" } ], "default": "bottom" }, { "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": "range", "id": "content_width", "label": "Content max width", "min": 320, "max": 960, "step": 20, "unit": "px", "default": 620 }, { "type": "select", "id": "content_box", "label": "Content box", "options": [ { "value": "none", "label": "None (text on video)" }, { "value": "solid", "label": "Solid card" } ], "default": "none" }, { "type": "header", "content": "Colors" }, { "type": "color", "id": "color_bg", "label": "Background", "info": "Shows around the hero when it has padding or page width.", "default": "#F5EFE6" }, { "type": "color", "id": "color_text", "label": "Text", "default": "#FFFFFF" }, { "type": "color", "id": "color_accent", "label": "Solid button", "default": "#FFFFFF" }, { "type": "color", "id": "color_accent_text", "label": "Text on solid button", "default": "#1C1917" }, { "type": "color", "id": "color_box", "label": "Content box", "default": "#F5EFE6", "visible_if": "{{ section.settings.content_box == 'solid' }}" }, { "type": "color", "id": "color_box_text", "label": "Text in content box", "info": "Also used for the solid button inside the box.", "default": "#2A211B", "visible_if": "{{ section.settings.content_box == 'solid' }}" }, { "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": 0 }, { "type": "range", "id": "padding_bottom", "label": "Bottom padding on desktop", "min": 0, "max": 200, "step": 4, "unit": "px", "default": 0 }, { "type": "range", "id": "padding_top_mobile", "label": "Top padding on mobile", "min": 0, "max": 160, "step": 4, "unit": "px", "default": 0 }, { "type": "range", "id": "padding_bottom_mobile", "label": "Bottom padding on mobile", "min": 0, "max": 160, "step": 4, "unit": "px", "default": 0 }, { "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": "Animate text on load", "info": "Never when reduced motion is on.", "default": true } ], "blocks": [ { "type": "button", "name": "Button", "limit": 2, "settings": [ { "type": "text", "id": "label", "label": "Label", "default": "Shop new pieces" }, { "type": "url", "id": "url", "label": "Link" }, { "type": "select", "id": "style", "label": "Style", "options": [ { "value": "primary", "label": "Solid" }, { "value": "outline", "label": "Outline" }, { "value": "text", "label": "Text link" } ], "default": "primary" }, { "type": "checkbox", "id": "new_tab", "label": "Open link in a new tab", "default": false } ] } ], "presets": [ { "name": "Lib · Video hero", "blocks": [ { "type": "button", "settings": { "label": "Shop new pieces", "style": "primary" } }, { "type": "button", "settings": { "label": "Our story", "style": "outline" } } ] } ] } {% endschema %}