179 lines
4.8 KiB
Plaintext
179 lines
4.8 KiB
Plaintext
{% liquid
|
|
if section.settings.line_1 != blank
|
|
assign line_1 = section.settings.line_1
|
|
else
|
|
assign line_1 = 'distributors.line_1' | t
|
|
endif
|
|
|
|
if section.settings.brand != blank
|
|
assign brand = section.settings.brand
|
|
else
|
|
assign brand = 'distributors.brand' | t
|
|
endif
|
|
|
|
if section.settings.line_2 != blank
|
|
assign line_2 = section.settings.line_2
|
|
else
|
|
assign line_2 = 'distributors.line_2' | t
|
|
endif
|
|
|
|
if section.settings.text != blank
|
|
assign text = section.settings.text
|
|
else
|
|
assign text = 'distributors.text' | t
|
|
endif
|
|
|
|
if section.settings.button_label != blank
|
|
assign button_label = section.settings.button_label
|
|
else
|
|
assign button_label = 'distributors.button' | t
|
|
endif
|
|
|
|
assign photo_alt = 'distributors.photo_alt' | t
|
|
%}
|
|
|
|
<section class="distributors full-width" id="Distributors-{{ section.id }}">
|
|
<div class="distributors__layout">
|
|
<div class="distributors__photo">
|
|
{% if section.settings.image != blank %}
|
|
{{
|
|
section.settings.image
|
|
| image_url: width: 1720
|
|
| image_tag:
|
|
class: 'distributors__photo-image',
|
|
alt: photo_alt,
|
|
widths: '480, 800, 1200, 1720',
|
|
sizes: '(max-width: 1024px) 92vw, 45vw',
|
|
loading: 'lazy'
|
|
}}
|
|
{% else %}
|
|
<img
|
|
class="distributors__photo-image distributors__photo-image--flip"
|
|
src="{{ 'distributors-photo.avif' | asset_url }}"
|
|
alt="{{ photo_alt | escape }}"
|
|
width="1157"
|
|
height="1300"
|
|
loading="lazy"
|
|
srcset="{{ 'distributors-photo-sm.avif' | asset_url }} 680w, {{ 'distributors-photo.avif' | asset_url }} 1157w"
|
|
sizes="(max-width: 1024px) 372px, 859px"
|
|
decoding="async"
|
|
>
|
|
{% endif %}
|
|
|
|
<img
|
|
class="distributors__wordmark"
|
|
src="{{ 'distributors-wordmark.svg' | asset_url }}"
|
|
alt="{{ 'distributors.wordmark' | t }}"
|
|
width="324"
|
|
height="210"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
|
|
<div class="distributors__panel">
|
|
<img
|
|
class="distributors__blob distributors__blob--top !hidden"
|
|
src="{{ 'distributors-blob.avif' | asset_url }}"
|
|
alt=""
|
|
width="355"
|
|
height="403"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
<img
|
|
class="distributors__blob distributors__blob--bottom !hidden"
|
|
src="{{ 'distributors-blob.avif' | asset_url }}"
|
|
alt=""
|
|
width="210"
|
|
height="114"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
|
|
<div class="distributors__copy">
|
|
<h2 class="distributors__heading">
|
|
<span class="distributors__line">
|
|
<span class="distributors__medium">{{ line_1 | escape }}</span>
|
|
<span class="distributors__bold"> {{ brand | escape }}</span>
|
|
</span>
|
|
<span class="distributors__line distributors__line--rest">{{ line_2 | escape }}</span>
|
|
</h2>
|
|
|
|
{% if text != blank %}
|
|
<p class="distributors__text">{{ text | escape }}</p>
|
|
{% endif %}
|
|
|
|
{% if button_label != blank %}
|
|
{% if section.settings.button_link != blank %}
|
|
<a class="distributors__button" href="{{ section.settings.button_link }}">
|
|
{{ button_label | escape }}
|
|
</a>
|
|
{% else %}
|
|
<span class="distributors__button">{{ button_label | escape }}</span>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% schema %}
|
|
{
|
|
"name": "t:distributors.name",
|
|
"tag": "section",
|
|
"class": "distributors-section",
|
|
"disabled_on": {
|
|
"groups": ["header", "footer"]
|
|
},
|
|
"settings": [
|
|
{
|
|
"type": "text",
|
|
"id": "line_1",
|
|
"label": "t:distributors.line_1",
|
|
"default": "Lleva"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "brand",
|
|
"label": "t:distributors.brand",
|
|
"default": "Seasons"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "line_2",
|
|
"label": "t:distributors.line_2",
|
|
"default": "a más personas"
|
|
},
|
|
{
|
|
"type": "textarea",
|
|
"id": "text",
|
|
"label": "t:distributors.text",
|
|
"default": "Súmate como distribuidor y forma parte de una marca mexicana de skincare que acompaña a cada persona a encontrar productos pensados para su rutina, sus necesidades y su forma de cuidarse."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "button_label",
|
|
"label": "t:distributors.button_label",
|
|
"default": "Regístrate"
|
|
},
|
|
{
|
|
"type": "url",
|
|
"id": "button_link",
|
|
"label": "t:distributors.button_link"
|
|
},
|
|
{
|
|
"type": "image_picker",
|
|
"id": "image",
|
|
"label": "t:distributors.image",
|
|
"info": "t:distributors.image_info"
|
|
}
|
|
],
|
|
"presets": [
|
|
{
|
|
"name": "t:distributors.name"
|
|
}
|
|
]
|
|
}
|
|
{% endschema %}
|