Files
2026-10-09 23:02:05 -06:00

323 lines
13 KiB
Plaintext

{% liquid
assign copyright_year = 'now' | date: '%Y'
assign form_id = 'FooterSignup-' | append: section.id
assign email_id = 'FooterEmail-' | append: section.id
assign message_id = 'FooterSignupMessage-' | append: section.id
%}
<footer class="footer full-width">
<div class="footer__brand">
<a class="footer__logo" href="{{ routes.root_url }}">
{% if section.settings.logo != blank %}
{{
section.settings.logo
| image_url: width: 2200
| image_tag: alt: shop.name, class: 'footer__logo-image', widths: '400, 800, 1200, 1600, 2200'
}}
{% else %}
<span class="footer__logo-mark" aria-hidden="true">
{{ 'logo-seasons.svg' | inline_asset_content }}
</span>
<span class="sr-only">{{ shop.name }}</span>
{% endif %}
</a>
</div>
<div class="footer__panel">
<div class="footer__columns">
{% if section.settings.menu != blank and section.settings.menu.links.size > 0 %}
{% for link in section.settings.menu.links %}
<div class="footer__column">
{% if link.links.size > 0 %}
<button
class="footer__toggle"
type="button"
aria-expanded="true"
aria-controls="FooterLinks-{{ section.id }}-{{ forloop.index }}"
>
<span class="footer__heading">{{ link.title }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-{{ forloop.index }}">
{% for child in link.links %}
{% liquid
assign child_title = child.title | downcase
assign hidden_link = false
if child_title == 'preguntas frecuentes' or child_title == 'videos y tips' or child_title == 'tu rutina ideal'
assign hidden_link = true
endif
if child_title == 'más vendidos' or child_title == 'mas vendidos' or child_title == 'línea anterior' or child_title == 'linea anterior'
assign hidden_link = true
endif
if child_title == 'nuevos lanzamientos' or child_title == 'reseñas' or child_title == 'resenas'
assign hidden_link = true
endif
%}
{% unless hidden_link %}
<li>
<a href="{{ child.url }}">{{ child.title }}</a>
</li>
{% endunless %}
{% endfor %}
</ul>
{% else %}
<a class="footer__heading" href="{{ link.url }}">{{ link.title }}</a>
{% endif %}
</div>
{% endfor %}
{% else %}
<div class="footer__column footer__column--seasons">
<button class="footer__toggle" type="button" aria-expanded="true" aria-controls="FooterLinks-{{ section.id }}-seasons">
<span class="footer__heading">{{ 'footer.columns.seasons' | t }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-seasons">
<li><a href="/pages/quienes-somos">{{ 'footer.seasons.about' | t }}</a></li>
<li><a href="/blogs/skincare">{{ 'footer.seasons.blog' | t }}</a></li>
<li><a href="/pages/tiendas-departamentales">{{ 'footer.seasons.stores' | t }}</a></li>
</ul>
</div>
<div class="footer__column footer__column--shop">
<button class="footer__toggle" type="button" aria-expanded="true" aria-controls="FooterLinks-{{ section.id }}-shop">
<span class="footer__heading">{{ 'footer.columns.shop' | t }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-shop">
<li><a href="/collections/all-products">{{ 'footer.shop.all' | t }}</a></li>
<li><a href="/collections/kits-skincare-facial">{{ 'footer.shop.kits' | t }}</a></li>
</ul>
</div>
<div class="footer__column footer__column--routine">
<button class="footer__toggle" type="button" aria-expanded="true" aria-controls="FooterLinks-{{ section.id }}-routine">
<span class="footer__heading">{{ 'footer.columns.routine' | t }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-routine">
<li><a href="/collections/piel-grasa">{{ 'footer.routine.oily' | t }}</a></li>
<li><a href="/collections/piel-mixta-grasa">{{ 'footer.routine.combination' | t }}</a></li>
<li><a href="/collections/piel-seca-1">{{ 'footer.routine.dry' | t }}</a></li>
<li><a href="/collections/all-products">{{ 'footer.routine.all' | t }}</a></li>
<li><a href="/collections/kits-skincare-facial">{{ 'footer.routine.kits' | t }}</a></li>
</ul>
</div>
<div class="footer__column footer__column--help">
<button class="footer__toggle" type="button" aria-expanded="true" aria-controls="FooterLinks-{{ section.id }}-help">
<span class="footer__heading">{{ 'footer.columns.help' | t }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-help">
<li><a href="/policies/shipping-policy">{{ 'footer.help.shipping' | t }}</a></li>
<li><a href="/policies/refund-policy">{{ 'footer.help.returns' | t }}</a></li>
<li><a href="/pages/facturacion">{{ 'footer.help.billing' | t }}</a></li>
<li><a href="/pages/politica-de-pagos">{{ 'footer.help.payments' | t }}</a></li>
<li><a href="/policies/privacy-policy">{{ 'footer.help.privacy' | t }}</a></li>
</ul>
</div>
<div class="footer__column footer__column--community">
<button class="footer__toggle" type="button" aria-expanded="true" aria-controls="FooterLinks-{{ section.id }}-community">
<span class="footer__heading">{{ 'footer.columns.community' | t }}</span>
<span class="footer__chevron" aria-hidden="true">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-community">
<li><a href="https://seasonsexperts.com/pages/quiero-ser-distribuidor">{{ 'footer.community.experts' | t }}</a></li>
<li><a href="https://seasonsexperts.com/pages/quiero-ser-distribuidor">{{ 'footer.community.distributor' | t }}</a></li>
<li><a href="/pages/glow-army">{{ 'footer.community.glow_army' | t }}</a></li>
</ul>
</div>
{% endif %}
<div class="footer__newsletter">
<p class="footer__heading">{{ 'footer.newsletter.heading' | t | newline_to_br }}</p>
{% form 'customer', id: form_id, class: 'footer__form' %}
<input type="hidden" name="contact[tags]" value="newsletter">
<div class="footer__field">
<label class="footer__label" for="{{ email_id }}">{{ 'footer.newsletter.email_label' | t }}</label>
<input
id="{{ email_id }}"
class="footer__input"
type="email"
name="contact[email]"
value="{{ form.email }}"
placeholder="{{ 'footer.newsletter.placeholder' | t }}"
autocomplete="email"
autocapitalize="off"
autocorrect="off"
spellcheck="false"
required
aria-required="true"
{% if form.errors %}
aria-invalid="true"
aria-describedby="{{ message_id }}"
{% elsif form.posted_successfully? %}
aria-describedby="{{ message_id }}"
{% endif %}
>
<button class="footer__arrow" type="submit" aria-label="{{ 'footer.newsletter.submit' | t }}">
<span class="footer__arrow-icon">
{{ 'signup-arrow.svg' | inline_asset_content }}
</span>
</button>
</div>
<button class="footer__discount" type="submit">
{{ 'footer.newsletter.submit' | t }}
</button>
{% if form.posted_successfully? %}
<p id="{{ message_id }}" class="footer__message" role="status" tabindex="-1" autofocus>
{{ 'footer.newsletter.success' | t }}
</p>
{% elsif form.errors %}
<p id="{{ message_id }}" class="footer__message footer__message--error" role="alert">
{% if form.errors.messages.email != blank %}
{{ form.errors.messages.email | escape }}
{% else %}
{{ 'footer.newsletter.error' | t }}
{% endif %}
</p>
{% endif %}
{% endform %}
</div>
</div>
<div class="footer__bar">
<p>
{{ 'footer.copyright' | t: year: copyright_year, shop_name: shop.name }}
</p>
<ul class="footer__social">
<li>
{% if section.settings.instagram_url != blank %}
<a href="{{ section.settings.instagram_url }}" target="_blank" rel="noopener" aria-label="{{ 'hero.instagram' | t }}">
{{ 'footer-instagram.svg' | inline_asset_content }}
</a>
{% else %}
<span aria-hidden="true">
{{ 'footer-instagram.svg' | inline_asset_content }}
</span>
{% endif %}
</li>
<li>
{% if section.settings.facebook_url != blank %}
<a href="{{ section.settings.facebook_url }}" target="_blank" rel="noopener" aria-label="{{ 'hero.facebook' | t }}">
{{ 'footer-facebook.svg' | inline_asset_content }}
</a>
{% else %}
<span aria-hidden="true">
{{ 'footer-facebook.svg' | inline_asset_content }}
</span>
{% endif %}
</li>
<li>
{% if section.settings.linkedin_url != blank %}
<a href="{{ section.settings.linkedin_url }}" target="_blank" rel="noopener" aria-label="{{ 'hero.linkedin' | t }}">
{{ 'footer-linkedin.svg' | inline_asset_content }}
</a>
{% else %}
<span aria-hidden="true">
{{ 'footer-linkedin.svg' | inline_asset_content }}
</span>
{% endif %}
</li>
</ul>
</div>
</div>
</footer>
{% javascript %}
(function () {
var footer = document.querySelector('.footer');
if (!footer || footer.dataset.bound === 'true') return;
footer.dataset.bound = 'true';
var media = window.matchMedia('(max-width: 1024px)');
var columns = footer.querySelectorAll('.footer__column');
function sync() {
var mobile = media.matches;
footer.classList.toggle('is-collapsible', mobile);
columns.forEach(function (column) {
var button = column.querySelector('.footer__toggle');
if (!button) return;
if (!mobile) {
column.classList.remove('is-open');
button.setAttribute('aria-expanded', 'true');
return;
}
button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false');
});
}
columns.forEach(function (column) {
var button = column.querySelector('.footer__toggle');
if (!button) return;
button.addEventListener('click', function () {
if (!media.matches) return;
column.classList.toggle('is-open');
button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false');
});
});
sync();
if (media.addEventListener) {
media.addEventListener('change', sync);
} else if (media.addListener) {
media.addListener(sync);
}
})();
{% endjavascript %}
{% schema %}
{
"name": "t:general.footer",
"settings": [
{
"type": "image_picker",
"id": "logo",
"label": "t:footer.logo"
},
{
"type": "link_list",
"id": "menu",
"label": "t:footer.menu",
"info": "t:footer.menu_info"
},
{
"type": "url",
"id": "instagram_url",
"label": "t:footer.instagram"
},
{
"type": "url",
"id": "facebook_url",
"label": "t:footer.facebook"
},
{
"type": "url",
"id": "linkedin_url",
"label": "t:footer.linkedin"
}
]
}
{% endschema %}