{{ 'component-newsletter.css' | asset_url | stylesheet_tag }} {{ 'newsletter-section.css' | asset_url | stylesheet_tag }} {%- style -%} .section-{{ section.id }}-padding { padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px; padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px; } @media screen and (min-width: 750px) { .section-{{ section.id }}-padding { padding-top: {{ section.settings.padding_top }}px; padding-bottom: {{ section.settings.padding_bottom }}px; } } {%- endstyle -%}
{% schema %} { "name": "t:sections.newsletter.name", "tag": "section", "class": "section", "disabled_on": { "groups": ["header"] }, "settings": [ { "type": "color_scheme", "id": "color_scheme", "label": "t:sections.all.colors.label", "default": "scheme-1" }, { "type": "checkbox", "id": "full_width", "default": true, "label": "t:sections.newsletter.settings.full_width.label" }, { "type": "paragraph", "content": "t:sections.newsletter.settings.paragraph.content" }, { "type": "header", "content": "t:sections.all.padding.section_padding_heading" }, { "type": "range", "id": "padding_top", "min": 0, "max": 100, "step": 4, "unit": "px", "label": "t:sections.all.padding.padding_top", "default": 40 }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 100, "step": 4, "unit": "px", "label": "t:sections.all.padding.padding_bottom", "default": 52 } ], "blocks": [ { "type": "heading", "name": "t:sections.newsletter.blocks.heading.name", "limit": 1, "settings": [ { "type": "inline_richtext", "id": "heading", "default": "Subscribe to our emails", "label": "t:sections.newsletter.blocks.heading.settings.heading.label" }, { "type": "select", "id": "heading_size", "options": [ { "value": "h2", "label": "t:sections.all.heading_size.options__1.label" }, { "value": "h1", "label": "t:sections.all.heading_size.options__2.label" }, { "value": "h0", "label": "t:sections.all.heading_size.options__3.label" } ], "default": "h1", "label": "t:sections.all.heading_size.label" } ] }, { "type": "paragraph", "name": "t:sections.newsletter.blocks.paragraph.name", "limit": 1, "settings": [ { "type": "richtext", "id": "text", "default": "Be the first to know about new collections and exclusive offers.
", "label": "t:sections.newsletter.blocks.paragraph.settings.paragraph.label" } ] }, { "type": "email_form", "name": "t:sections.newsletter.blocks.email_form.name", "limit": 1 }, { "type": "@app" } ], "presets": [ { "name": "t:sections.newsletter.presets.name", "blocks": [ { "type": "heading" }, { "type": "paragraph" }, { "type": "email_form" } ] } ] } {% endschema %}