Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="hero hero--{{ section.settings.hero_size }}{% if section.settings.title != blank or section.settings.text != blank or section.settings.button_label != blank %} hero__overlay{% endif %} box ratio-container lazyload js"
- {% if section.settings.image %}
- data-bgset="{% include 'bgset', image: section.settings.image %}"
- data-sizes="auto"
- data-parent-fit="cover"
- style="background-position: {{ section.settings.alignment }}; background-image: url('{{ section.settings.image | img_url: '300x300' }});"
- {% endif %}>
- {% if section.settings.image == blank %}
- <div class="placeholder-background">
- {{ 'lifestyle-1' | placeholder_svg_tag: 'placeholder-svg' }}
- </div>
- {% endif %}
- <div class="hero__inner">
- <div class="page-width text-center">
- {% if section.settings.title != blank %}
- <h2 class="h1 mega-title{% if section.settings.text_size == 'large' %} mega-title--large{% endif %}">{{ section.settings.title | escape }}</h2>
- {% endif %}
- {% if section.settings.text != blank %}
- <div class="rte-setting mega-subtitle{% if section.settings.text_size == 'large' %} mega-subtitle--large{% endif %}">{{ section.settings.text }}</div>
- {% endif %}
- <div class="hero__btn-wrapper">
- {% if section.settings.button_label != blank and section.settings.button_link != blank %}
- <a href="{{ section.settings.button_link }}" class="btn hero__btn">
- {{ section.settings.button_label | escape }}
- </a>
- {% endif %}
- {% comment %} Added by Justin L on September 19 2018 Theme Specialist {% endcomment %}
- {% if section.settings.button_label_2 != blank and section.settings.button_link_2 != blank %}
- <a href="{{ section.settings.button_link_2 }}" class="btn hero__btn">
- {{ section.settings.button_label_2 | escape }}
- </a>
- {% endif %}
- </div>
- </div>
- </div>
- </div>
- <noscript>
- <div class="hero hero--{{ section.settings.hero_size }}{% if section.settings.title != blank or section.settings.text != blank or section.settings.button_label != blank %} hero__overlay{% endif %}"{% if section.settings.image %} style="background-image: url('{{ section.settings.image | img_url: '2048x' }}'); background-position: center {{ section.settings.alignment }};"{% endif %}></div>
- </noscript>
- {% schema %}
- {
- "name": {
- "en": "Image with text overlay",
- "de": "Foto mit überlegtem Text",
- "fr": "Image avec texte",
- "it": "Immagine con testo",
- "ja": "テキストオーバーレイ付き画像",
- "es": "Imagen con texto",
- "pt-BR": "Imagem com texto"
- },
- "class": "index-section index-section--flush",
- "settings": [
- {
- "type": "image_picker",
- "id": "image",
- "label": {
- "en": "Image",
- "de": "Foto",
- "fr": "Image",
- "it": "Immagine",
- "ja": "画像",
- "es": "Imagen",
- "pt-BR": "Imagem"
- }
- },
- {
- "type": "select",
- "id": "alignment",
- "label": {
- "en": "Image alignment",
- "de": "Fotoausrichtung",
- "fr": "Alignement de l'image",
- "it": "Allineamento immagine",
- "ja": "画像アラインメント",
- "es": "Alineación de imagen",
- "pt-BR": "Alinhamento da imagem"
- },
- "default": "center",
- "options": [
- {
- "value": "top",
- "label": {
- "en": "Top",
- "de": "Oben",
- "fr": "Haut",
- "it": "In alto",
- "ja": "上",
- "es": "Superior",
- "pt-BR": "Acima"
- }
- },
- {
- "value": "center",
- "label": {
- "en": "Middle",
- "de": "Mitte",
- "fr": "Milieu",
- "it": "Al centro",
- "ja": "中央",
- "es": "Al medio",
- "pt-BR": "Meio"
- }
- },
- {
- "value": "bottom",
- "label": {
- "en": "Bottom",
- "de": "Unten",
- "fr": "Bas",
- "it": "In basso",
- "ja": "下",
- "es": "Inferior",
- "pt-BR": "Abaixo"
- }
- }
- ]
- },
- {
- "type": "text",
- "id": "title",
- "label": {
- "en": "Heading",
- "de": "Titel",
- "fr": "En-tête",
- "it": "Heading",
- "ja": "見出し",
- "es": "Título",
- "pt-BR": "Título"
- },
- "default": {
- "en": "Image with text overlay",
- "de": "Foto mit überlegtem Text",
- "fr": "Image avec superposition de texte",
- "it": "Immagine con testo",
- "ja": "テキストオーバーレイ付き画像",
- "es": "Imagen con texto",
- "pt-BR": "Imagem com sobreposição de texto"
- }
- },
- {
- "type": "richtext",
- "id": "text",
- "label": {
- "en": "Text",
- "de": "Text",
- "fr": "Texte",
- "it": "Testo",
- "ja": "テキスト",
- "es": "Texto",
- "pt-BR": "Texto"
- },
- "default": {
- "en": "<p>Use overlay text to give your customers insight into your brand. Select imagery and text that relates to your style and story.</p>",
- "de": "<p>Nutzen Sie überlegten Text, um Kunden über Ihre Marke zu informieren. Wählen Sie Fotos und Text aus, die zu Ihrer Marke passen.</p>",
- "fr": "<p>Utilisez la superposition de texte pour donner un aperçu de votre marque à vos clients. Utilisez une image et du texte qui se rapportent au style et à l'histoire de votre marque.</p>",
- "it": "<p>Utilizza il testo in sovrapposizione per dare ai clienti informazioni sul tuo brand. Seleziona immagini e testo legati al tuo stile e alla tua storia.</p>",
- "ja": "<p>オーバーレイテキストを使用して、お客様があなたのブランドについてよく理解できるようにします。あなたのスタイルやストーリーに関連する画像やテキストを選択してください。</p>",
- "es": "<p>Usa el texto superpuesto para darles información a tus clientes sobre tu marca. Selecciona imágenes y textos que se relacionen con tu estilo e historia.</p>",
- "pt-BR": "<p>Use o texto de sobreposição para apresentar informações sobre sua marca aos clientes. Selecione imagens e textos que reflitam seu estilo e sua história.</p>"
- }
- },
- {
- "type": "select",
- "id": "hero_size",
- "label": {
- "en": "Section height",
- "de": "Bereichs-Höhe",
- "fr": "Hauteur de la section",
- "it": "Altezza sezione",
- "ja": "セクションの高さ",
- "es": "Altura de la sección",
- "pt-BR": "Altura da seção"
- },
- "default": "medium",
- "options": [
- {
- "label": {
- "en": "Extra Small",
- "de": "Extra klein",
- "fr": "Très petite",
- "it": "Molto piccola",
- "ja": "極小",
- "es": "Extra pequeña",
- "pt-BR": "Extra pequeno"
- },
- "value": "x-small"
- },
- {
- "label": {
- "en": "Small",
- "de": "Klein",
- "fr": "Petite",
- "it": "Small",
- "ja": "小",
- "es": "Pequeña",
- "pt-BR": "Pequeno"
- },
- "value": "small"
- },
- {
- "label": {
- "en": "Medium",
- "de": "Mitte",
- "fr": "Moyenne",
- "it": "Medium",
- "ja": "中",
- "es": "Mediana",
- "pt-BR": "Médio"
- },
- "value": "medium"
- },
- {
- "label": {
- "en": "Large",
- "de": "Groß",
- "fr": "Grande",
- "it": "Large",
- "ja": "大",
- "es": "Grande",
- "pt-BR": "Grande"
- },
- "value": "large"
- },
- {
- "label": {
- "en": "Extra Large",
- "de": "Extra groß",
- "fr": "Très grande",
- "it": "Molto grande",
- "ja": "特大",
- "es": "Extra grande",
- "pt-BR": "Extra grande"
- },
- "value": "x-large"
- }
- ]
- },
- {
- "type": "select",
- "id": "text_size",
- "label": {
- "en": "Text size",
- "de": "Textgröße",
- "fr": "Taille du texte",
- "it": "Dimensione testo",
- "ja": "文字サイズ",
- "es": "Tamaño del texto",
- "pt-BR": "Tamanho do texto"
- },
- "default": "medium",
- "options": [
- {
- "label": {
- "en": "Medium",
- "de": "Mitte",
- "fr": "Moyenne",
- "it": "Medium",
- "ja": "中",
- "es": "Mediano",
- "pt-BR": "Médio"
- },
- "value": "medium"
- },
- {
- "label": {
- "en": "Large",
- "de": "Groß",
- "fr": "Grande",
- "it": "Large",
- "ja": "大",
- "es": "Grande",
- "pt-BR": "Grande"
- },
- "value": "large"
- }
- ]
- },
- {
- "type": "text",
- "id": "button_label",
- "label": {
- "en": "Button label",
- "de": "Button-Etikett",
- "fr": "Texte du bouton",
- "it": "Etichetta pulsante",
- "ja": "ボタンラベル",
- "es": "Etiqueta de botón",
- "pt-BR": "Etiqueta do botão"
- }
- },
- {
- "type": "url",
- "id": "button_link",
- "label": {
- "en": "Button link",
- "de": "Button-Etikett",
- "fr": "Lien du bouton",
- "it": "Link pulsante",
- "ja": "ボタンリンク",
- "es": "Enlace de botón",
- "pt-BR": "Link do botão"
- }
- },
- {
- "type": "text",
- "id": "button_label_2",
- "label": {
- "en": "Button label 2",
- "de": "Button-Etikett",
- "fr": "Texte du bouton",
- "it": "Etichetta pulsante",
- "ja": "ボタンラベル",
- "es": "Etiqueta de botón",
- "pt-BR": "Etiqueta do botão"
- }
- },
- {
- "type": "url",
- "id": "button_link_2",
- "label": {
- "en": "Button link 2",
- "de": "Button-Etikett",
- "fr": "Lien du bouton",
- "it": "Link pulsante",
- "ja": "ボタンリンク",
- "es": "Enlace de botón",
- "pt-BR": "Link do botão"
- }
- }
- ],
- "presets": [
- {
- "name": {
- "en": "Image with text overlay",
- "de": "Foto mit überlegtem Text",
- "fr": "Image avec superposition de texte",
- "it": "Immagine con testo",
- "ja": "テキストオーバーレイ付き画像",
- "es": "Imagen con texto",
- "pt-BR": "Imagem com sobreposição de texto"
- },
- "category": {
- "en": "Image",
- "de": "Foto",
- "fr": "Image",
- "it": "Immagine",
- "ja": "画像",
- "es": "Imagen",
- "pt-BR": "Imagem"
- }
- }
- ]
- }
- {% endschema %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement