{% render 'text-block-styles' %} {%- assign block_settings = block.settings -%} {%- assign plain_text = block_settings.text | strip_newlines | strip_html | strip -%} {%- assign block_index = section.blocks | find_index: 'id', block.id -%} {%- unless plain_text == '' -%}

{{ block.settings.text }}

{% if block_settings.link != blank %} {{ block_settings.text | strip_html }} {% endif %}
{%- endunless -%} {% schema %} { "name": "t:names.announcement", "tag": null, "settings": [ { "type": "inline_richtext", "id": "text", "label": "t:settings.text", "default": "t:text_defaults.shop_our_latest_arrivals" }, { "type": "url", "id": "link", "label": "t:settings.link" }, { "type": "header", "content": "t:content.typography" }, { "type": "select", "id": "font", "label": "t:settings.font", "options": [ { "value": "var(--font-body--family)", "label": "t:options.body" }, { "value": "var(--font-subheading--family)", "label": "t:options.subheading" }, { "value": "var(--font-heading--family)", "label": "t:options.heading" }, { "value": "var(--font-accent--family)", "label": "t:options.accent" } ], "default": "var(--font-body--family)" }, { "type": "select", "id": "font_size", "label": "t:settings.size", "options": [ { "value": "", "label": "t:options.default" }, { "value": "0.625rem", "label": "10px" }, { "value": "0.75rem", "label": "12px" }, { "value": "0.875rem", "label": "14px" }, { "value": "1rem", "label": "16px" }, { "value": "1.125rem", "label": "18px" }, { "value": "1.25rem", "label": "20px" }, { "value": "1.5rem", "label": "24px" }, { "value": "2rem", "label": "32px" }, { "value": "2.5rem", "label": "40px" }, { "value": "3rem", "label": "48px" }, { "value": "3.5rem", "label": "56px" }, { "value": "4.5rem", "label": "72px" }, { "value": "5.5rem", "label": "88px" }, { "value": "7.5rem", "label": "120px" }, { "value": "9.5rem", "label": "152px" }, { "value": "11.5rem", "label": "184px" } ], "default": "1rem" }, { "type": "select", "id": "weight", "label": "t:settings.weight", "options": [ { "value": "", "label": "t:options.default" }, { "value": "100", "label": "t:options.thin" }, { "value": "300", "label": "t:options.light" }, { "value": "400", "label": "t:options.regular" }, { "value": "500", "label": "t:options.medium" }, { "value": "600", "label": "t:options.semibold" }, { "value": "700", "label": "t:options.bold" }, { "value": "900", "label": "t:options.black" } ], "default": "" }, { "type": "select", "id": "letter_spacing", "label": "t:settings.letter_spacing", "options": [ { "value": "tight", "label": "t:options.tight" }, { "value": "normal", "label": "t:options.normal" }, { "value": "loose", "label": "t:options.loose" } ], "default": "normal" }, { "type": "select", "id": "case", "label": "t:settings.case", "options": [ { "value": "none", "label": "t:options.default" }, { "value": "uppercase", "label": "t:options.uppercase" } ], "default": "none" }, { "type": "header", "content": "t:content.appearance" }, { "type": "color", "id": "text_color", "label": "t:settings.text_color", "placeholder": "t:settings.default" } ], "presets": [ { "name": "t:names.announcement", "settings": { "font": "var(--font-subheading--family)", "font_size": "0.75rem" } } ] } {% endschema %}