Section
Promotional banner
1 个模板实例,17 个 section 配置,5 类 block。
真实模板变体
Schema
{
"name": "Promotional banner",
"class": "section-promotional-banner",
"settings": [
{
"type": "select",
"id": "section_width",
"options": [
{
"value": "grid",
"label": "Grid"
},
{
"value": "full-width-row",
"label": "Full width"
},
{
"value": "full-width-row-full",
"label": "Full width, no spacing"
}
],
"default": "grid",
"label": "Section width"
},
{
"type": "image_picker",
"id": "image",
"label": "Image"
},
{
"type": "image_picker",
"id": "mobile_image",
"label": "Mobile image (optional)"
},
{
"type": "select",
"id": "image_height",
"options": [
{
"value": "adapt",
"label": "Adapt to image"
},
{
"value": "small",
"label": "Small"
},
{
"value": "large",
"label": "Large"
}
],
"default": "adapt",
"label": "Image height"
},
{
"type": "select",
"id": "image_width",
"options": [
{
"value": "split",
"label": "Split"
},
{
"value": "full",
"label": "Full"
}
],
"default": "split",
"label": "Image width",
"info": "Changes the image width."
},
{
"type": "checkbox",
"id": "frame_border",
"default": true,
"label": "Enable frame border"
},
{
"type": "select",
"id": "content_position",
"label": "Desktop content alignment",
"options": [
{
"value": "text-center",
"label": "Center"
},
{
"value": "text-left",
"label": "Left"
},
{
"value": "text-right",
"label": "Right"
}
],
"default": "text-left"
},
{
"type": "header",
"content": "Split"
},
{
"type": "select",
"id": "split_layout",
"options": [
{
"value": "image_first",
"label": "Image first"
},
{
"value": "text_first",
"label": "Image second"
}
],
"default": "image_first",
"label": "Desktop image placement",
"info": "Image first is the default mobile layout."
},
{
"type": "header",
"content": "Colors"
},
{
"type": "color",
"id": "color_bg",
"label": "Background",
"default": "#ffffff"
},
{
"type": "color",
"id": "color_text",
"label": "Text",
"default": "#151515"
},
{
"type": "color",
"id": "overlay_color",
"label": "Overlay",
"default": "#000000"
},
{
"type": "range",
"id": "overlay_opacity",
"min": 0,
"max": 100,
"step": 1,
"unit": "%",
"label": "Overlay opacity",
"default": 20
},
{
"type": "header",
"content": "Spacing"
},
{
"type": "checkbox",
"id": "disable_top_spacing",
"default": false,
"label": "Remove top spacing"
},
{
"type": "checkbox",
"id": "disable_bottom_spacing",
"default": false,
"label": "Remove bottom spacing"
}
],
"blocks": [
{
"type": "subheading",
"name": "Subheading",
"settings": [
{
"type": "text",
"id": "text",
"label": "Text",
"default": "Add a tagline"
}
]
},
{
"type": "heading",
"name": "Heading",
"settings": [
{
"type": "text",
"id": "text",
"label": "Text",
"default": "Promotional banner"
},
{
"type": "select",
"id": "heading_size",
"label": "Size",
"options": [
{
"value": "h2",
"label": "Small"
},
{
"value": "h1",
"label": "Medium"
},
{
"value": "h1-large",
"label": "Large"
},
{
"value": "h1-xlarge",
"label": "Extra large"
}
],
"default": "h1"
}
]
},
{
"type": "text",
"name": "Text",
"settings": [
{
"type": "richtext",
"id": "text",
"label": "Content",
"default": "<p>Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.</p>"
}
]
},
{
"type": "button",
"name": "Button",
"settings": [
{
"id": "button_text",
"type": "text",
"label": "Button label",
"default": "Shop Now",
"info": "Leave the label blank to hide the button."
},
{
"id": "button_link",
"type": "url",
"label": "Button link"
},
{
"type": "checkbox",
"id": "button_outline",
"label": "Use outline button style",
"default": true
}
]
},
{
"type": "space",
"name": "Empty space",
"settings": [
{
"type": "range",
"id": "height",
"min": 0,
"max": 100,
"step": 1,
"unit": "px",
"label": "Height",
"default": 50
}
]
}
],
"presets": [
{
"name": "Promotional banner",
"blocks": [
{
"type": "subheading"
},
{
"type": "heading"
},
{
"type": "text"
},
{
"type": "button"
}
]
}
]
}