292 lines
9.0 KiB
Plaintext
292 lines
9.0 KiB
Plaintext
{% liquid
|
|
if section.settings.heading != blank
|
|
assign heading = section.settings.heading
|
|
else
|
|
assign heading = 'skin_match.heading' | t
|
|
endif
|
|
|
|
if section.settings.subheading != blank
|
|
assign subheading = section.settings.subheading
|
|
else
|
|
assign subheading = 'skin_match.subheading' | t
|
|
endif
|
|
|
|
if section.settings.lead != blank
|
|
assign lead = section.settings.lead
|
|
else
|
|
assign lead = 'skin_match.lead' | t
|
|
endif
|
|
|
|
if section.settings.rest != blank
|
|
assign rest = section.settings.rest
|
|
else
|
|
assign rest = 'skin_match.rest' | t
|
|
endif
|
|
|
|
if section.settings.button_label != blank
|
|
assign button_label = section.settings.button_label
|
|
else
|
|
assign button_label = 'skin_match.button' | t
|
|
endif
|
|
|
|
assign serum_alt = 'skin_match.photos.serum' | t
|
|
assign jar_alt = 'skin_match.photos.jar' | t
|
|
assign dropper_alt = 'skin_match.photos.dropper' | t
|
|
assign cheek_alt = 'skin_match.photos.cheek' | t
|
|
%}
|
|
|
|
<section class="skin-match full-width">
|
|
<div class="skin-match__canvas">
|
|
<div class="skin-match__blob skin-match__blob--blue" aria-hidden="true">
|
|
<img
|
|
src="{{ 'skin-match-blob-blue.avif' | asset_url }}"
|
|
alt=""
|
|
width="308"
|
|
height="301"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
<div class="skin-match__blob skin-match__blob--peach" aria-hidden="true">
|
|
<img
|
|
src="{{ 'skin-match-peach.avif' | asset_url }}"
|
|
alt=""
|
|
width="327"
|
|
height="302"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
<div class="skin-match__blob skin-match__blob--green" aria-hidden="true">
|
|
<img
|
|
src="{{ 'skin-match-mint.avif' | asset_url }}"
|
|
alt=""
|
|
width="277"
|
|
height="311"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
<div class="skin-match__blob skin-match__blob--pink" aria-hidden="true">
|
|
<img
|
|
src="{{ 'skin-match-lilac.avif' | asset_url }}"
|
|
alt=""
|
|
width="338"
|
|
height="324"
|
|
loading="lazy"
|
|
decoding="async"
|
|
>
|
|
</div>
|
|
|
|
<div class="skin-match__content">
|
|
<header class="skin-match__header">
|
|
<h2 class="skin-match__heading">{{ heading | escape }}</h2>
|
|
{% if subheading != blank %}
|
|
<p class="skin-match__subheading">{{ subheading | escape }}</p>
|
|
{% endif %}
|
|
</header>
|
|
|
|
<div class="skin-match__gallery">
|
|
<div class="skin-match__photo skin-match__photo--serum">
|
|
{% if section.settings.image_serum != blank %}
|
|
{{
|
|
section.settings.image_serum
|
|
| image_url: width: 1400
|
|
| image_tag:
|
|
alt: serum_alt,
|
|
widths: '400, 800, 1400',
|
|
sizes: '(max-width: 1024px) 70vw, 480px',
|
|
class: 'skin-match__image skin-match__image--serum',
|
|
loading: 'lazy'
|
|
}}
|
|
{% else %}
|
|
<img
|
|
class="skin-match__image skin-match__image--serum"
|
|
src="{{ 'skin-match-photo-serum.avif' | asset_url }}"
|
|
alt="{{ serum_alt | escape }}"
|
|
width="720"
|
|
height="1080"
|
|
loading="lazy"
|
|
srcset="{{ 'skin-match-photo-serum-sm.avif' | asset_url }} 460w, {{ 'skin-match-photo-serum.avif' | asset_url }} 720w"
|
|
sizes="(max-width: 1024px) 251px, 482px"
|
|
decoding="async"
|
|
>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="skin-match__photo skin-match__photo--dropper">
|
|
{% if section.settings.image_dropper != blank %}
|
|
{{
|
|
section.settings.image_dropper
|
|
| image_url: width: 1000
|
|
| image_tag:
|
|
alt: dropper_alt,
|
|
widths: '320, 640, 1000',
|
|
sizes: '(max-width: 1024px) 46vw, 320px',
|
|
class: 'skin-match__image skin-match__image--dropper',
|
|
loading: 'lazy'
|
|
}}
|
|
{% else %}
|
|
<img
|
|
class="skin-match__image skin-match__image--dropper"
|
|
src="{{ 'skin-match-photo-dropper.avif' | asset_url }}"
|
|
alt="{{ dropper_alt | escape }}"
|
|
width="600"
|
|
height="750"
|
|
loading="lazy"
|
|
srcset="{{ 'skin-match-photo-dropper-sm.avif' | asset_url }} 360w, {{ 'skin-match-photo-dropper.avif' | asset_url }} 600w"
|
|
sizes="(max-width: 1024px) 188px, 324px"
|
|
decoding="async"
|
|
>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="skin-match__photo skin-match__photo--cheek">
|
|
{% if section.settings.image_cheek != blank %}
|
|
{{
|
|
section.settings.image_cheek
|
|
| image_url: width: 1000
|
|
| image_tag:
|
|
alt: cheek_alt,
|
|
widths: '320, 640, 1000',
|
|
sizes: '(max-width: 1024px) 46vw, 320px',
|
|
class: 'skin-match__image skin-match__image--cheek',
|
|
loading: 'lazy'
|
|
}}
|
|
{% else %}
|
|
<img
|
|
class="skin-match__image skin-match__image--cheek"
|
|
src="{{ 'skin-match-photo-cheek.avif' | asset_url }}"
|
|
alt="{{ cheek_alt | escape }}"
|
|
width="600"
|
|
height="600"
|
|
loading="lazy"
|
|
srcset="{{ 'skin-match-photo-cheek-sm.avif' | asset_url }} 360w, {{ 'skin-match-photo-cheek.avif' | asset_url }} 600w"
|
|
sizes="(max-width: 1024px) 193px, 332px"
|
|
decoding="async"
|
|
>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="skin-match__photo skin-match__photo--jar">
|
|
{% if section.settings.image_jar != blank %}
|
|
{{
|
|
section.settings.image_jar
|
|
| image_url: width: 1600
|
|
| image_tag:
|
|
alt: jar_alt,
|
|
widths: '480, 960, 1600',
|
|
sizes: '(max-width: 1024px) 70vw, 480px',
|
|
class: 'skin-match__image skin-match__image--jar',
|
|
loading: 'lazy'
|
|
}}
|
|
{% else %}
|
|
<img
|
|
class="skin-match__image skin-match__image--jar"
|
|
src="{{ 'skin-match-photo-jar.avif' | asset_url }}"
|
|
alt="{{ jar_alt | escape }}"
|
|
width="1440"
|
|
height="960"
|
|
loading="lazy"
|
|
srcset="{{ 'skin-match-photo-jar-sm.avif' | asset_url }} 960w, {{ 'skin-match-photo-jar.avif' | asset_url }} 1440w"
|
|
sizes="(max-width: 1024px) 522px, 1002px"
|
|
decoding="async"
|
|
>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<p class="skin-match__body">
|
|
<span class="skin-match__lead">{{ lead | escape }}</span><span class="skin-match__rest">. {{ 'skin_match.bridge' | t }} <strong>{{ 'skin_match.brand' | t }}</strong> {{ rest | escape }}</span>
|
|
</p>
|
|
|
|
{% if section.settings.button_link != blank %}
|
|
<a class="skin-match__button" href="{{ section.settings.button_link }}">
|
|
{{ button_label | escape }}
|
|
</a>
|
|
{% else %}
|
|
<button class="skin-match__button" type="button" data-open-aitana>
|
|
{{ button_label | escape }}
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% schema %}
|
|
{
|
|
"name": "t:skin_match.name",
|
|
"tag": "section",
|
|
"class": "skin-match-section",
|
|
"disabled_on": {
|
|
"groups": ["header", "footer"]
|
|
},
|
|
"settings": [
|
|
{
|
|
"type": "text",
|
|
"id": "heading",
|
|
"label": "t:skin_match.heading",
|
|
"default": "¿Qué necesita tu piel hoy?"
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "subheading",
|
|
"label": "t:skin_match.subheading",
|
|
"default": "Encuentra tu match de cuidado facial con Seasons."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "lead",
|
|
"label": "t:skin_match.lead",
|
|
"default": "No necesitas ser experta en skincare para cuidar de ti"
|
|
},
|
|
{
|
|
"type": "textarea",
|
|
"id": "rest",
|
|
"label": "t:skin_match.rest",
|
|
"default": "te acompañamos a encontrar los productos ideales para tu rutina, según lo que tu rostro necesita y cómo quieres sentirte cada día."
|
|
},
|
|
{
|
|
"type": "text",
|
|
"id": "button_label",
|
|
"label": "t:skin_match.button_label",
|
|
"default": "Buscar producto ideal"
|
|
},
|
|
{
|
|
"type": "url",
|
|
"id": "button_link",
|
|
"label": "t:skin_match.button_link"
|
|
},
|
|
{
|
|
"type": "image_picker",
|
|
"id": "image_serum",
|
|
"label": "t:skin_match.image_serum",
|
|
"info": "t:skin_match.image_info"
|
|
},
|
|
{
|
|
"type": "image_picker",
|
|
"id": "image_jar",
|
|
"label": "t:skin_match.image_jar",
|
|
"info": "t:skin_match.image_info"
|
|
},
|
|
{
|
|
"type": "image_picker",
|
|
"id": "image_dropper",
|
|
"label": "t:skin_match.image_dropper",
|
|
"info": "t:skin_match.image_info"
|
|
},
|
|
{
|
|
"type": "image_picker",
|
|
"id": "image_cheek",
|
|
"label": "t:skin_match.image_cheek",
|
|
"info": "t:skin_match.image_info"
|
|
}
|
|
],
|
|
"presets": [
|
|
{
|
|
"name": "t:skin_match.name"
|
|
}
|
|
]
|
|
}
|
|
{% endschema %}
|