Produccion 1

This commit is contained in:
2026-10-02 19:32:54 -06:00
parent 7ed1889bfb
commit 220178d421
81 changed files with 2993 additions and 531 deletions
+343
View File
@@ -0,0 +1,343 @@
{% liquid
assign hero_poster = 'https://www.seasonsmexico.com/cdn/shop/files/preview_images/80b44ceeba2f4677b438eab3668f2f7a.thumbnail.0000000000_1100x.jpg?v=1769452702'
assign hero_src = 'https://www.seasonsmexico.com/cdn/shop/videos/c/vp/80b44ceeba2f4677b438eab3668f2f7a/80b44ceeba2f4677b438eab3668f2f7a.HD-1080p-4.8Mbps-67816357.mp4?v=0'
if section.settings.hero_video != blank
assign hero_poster = section.settings.hero_video.preview_image | image_url: width: 1600
for source in section.settings.hero_video.sources
if source.format == 'mp4' or source.mime_type == 'video/mp4'
assign hero_src = source.url
endif
endfor
endif
assign pillar_1 = 'https://www.seasonsmexico.com/cdn/shop/files/SNS_ManzanaVerde_2000x2000-03.png?v=1785786287&width=1400'
assign pillar_2 = 'https://www.seasonsmexico.com/cdn/shop/files/SNS_PDRN_2000x2000-04.png?v=1785787229&width=1400'
assign pillar_3 = 'https://www.seasonsmexico.com/cdn/shop/files/SNS_Nopal_Niacinamida_2000x2000-13.png?v=1786075950&width=1400'
assign pillar_4 = 'https://www.seasonsmexico.com/cdn/shop/files/SNS_ManzanaVerde_2000x2000-04.png?v=1786076882&width=1400'
assign join_image = 'https://www.seasonsmexico.com/cdn/shop/files/Duo_de_protectores_solares.png?v=1786142521&width=1400'
if section.settings.pillar_1 != blank
assign pillar_1 = section.settings.pillar_1 | image_url: width: 1400
endif
if section.settings.pillar_2 != blank
assign pillar_2 = section.settings.pillar_2 | image_url: width: 1400
endif
if section.settings.pillar_3 != blank
assign pillar_3 = section.settings.pillar_3 | image_url: width: 1400
endif
if section.settings.pillar_4 != blank
assign pillar_4 = section.settings.pillar_4 | image_url: width: 1400
endif
if section.settings.join_image != blank
assign join_image = section.settings.join_image | image_url: width: 1400
endif
%}
<div class="about full-width bg-white font-sans text-[#212326]">
<section class="grid min-h-[650px] grid-cols-2 lg:grid-cols-1">
<div class="relative h-[650px] overflow-hidden bg-[#f3f3f3] md:h-[420px]">
<video
class="h-full w-full object-cover"
poster="{{ hero_poster }}"
playsinline
preload="metadata"
data-about-video
>
<source src="{{ hero_src }}" type="video/mp4">
</video>
<button
class="absolute left-1/2 top-1/2 grid size-[58px] -translate-x-1/2 -translate-y-1/2 cursor-pointer place-items-center rounded-[7px] border-0 bg-white/90 text-[#212326]"
type="button"
data-about-play
aria-label="{{ 'about.play' | t }}"
>
<svg class="ml-1 size-5" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true">
<path d="M6.5 4.8v10.4L15.2 10 6.5 4.8z"/>
</svg>
</button>
</div>
<div class="flex items-center px-[90px] py-[45px] md:px-6 md:py-10">
<div class="max-w-[420px]">
<h1 class="m-0 text-[50px] font-medium leading-[1.08] tracking-[0.6px] text-[#212326] md:text-[36px]">
{{ 'about.hero_title' | t }}
</h1>
<p class="mb-0 mt-6 text-[18px] leading-[26px]">{{ 'about.hero_line_1' | t }}</p>
<p class="mb-0 mt-0 text-[18px] leading-[26px]">
<span class="font-medium">{{ 'about.hero_emphasis_1' | t }}</span>
{{ 'about.hero_and' | t }}
<span class="font-medium">{{ 'about.hero_emphasis_2' | t }}</span>
</p>
<p class="mb-0 mt-0 text-[18px] leading-[26px]">{{ 'about.hero_line_3' | t }}</p>
</div>
</div>
</section>
<section class="px-[45px] py-16 md:px-5 md:py-12" data-about-pillars>
<h2 class="mx-auto mb-10 max-w-[900px] text-center text-[50px] font-light leading-[1.15] tracking-[0.6px] text-[#0a0a0a] md:text-[32px]">
{{ 'about.pillars_title' | t }}
</h2>
<div class="grid grid-cols-2 lg:grid-cols-1">
<div>
<article class="flex min-h-screen flex-col justify-center px-8 py-10 lg:min-h-0 lg:px-0" data-panel="0">
<img class="mb-6 hidden aspect-square w-full object-contain lg:block" src="{{ pillar_1 }}" alt="{{ 'about.pillar_1_title' | t | escape }}" width="1400" height="1400" loading="lazy">
<h3 class="m-0 max-w-[640px] text-[50px] font-light leading-[1.1] tracking-[0.6px] text-[#0a0a0a] md:text-[32px]">{{ 'about.pillar_1_title' | t }}</h3>
<p class="mb-0 mt-4 max-w-[640px] text-[18px] leading-[26px] text-[#6b7280]">{{ 'about.pillar_1_text' | t }}</p>
</article>
<article class="flex min-h-screen flex-col justify-center px-8 py-10 lg:min-h-0 lg:px-0" data-panel="1">
<img class="mb-6 hidden aspect-square w-full object-contain lg:block" src="{{ pillar_2 }}" alt="{{ 'about.pillar_2_title' | t | escape }}" width="1400" height="1400" loading="lazy">
<h3 class="m-0 max-w-[640px] text-[50px] font-light leading-[1.1] tracking-[0.6px] text-[#0a0a0a] md:text-[32px]">{{ 'about.pillar_2_title' | t }}</h3>
<p class="mb-0 mt-4 max-w-[640px] text-[18px] leading-[26px] text-[#6b7280]">{{ 'about.pillar_2_text' | t }}</p>
</article>
<article class="flex min-h-screen flex-col justify-center px-8 py-10 lg:min-h-0 lg:px-0" data-panel="2">
<img class="mb-6 hidden aspect-square w-full object-contain lg:block" src="{{ pillar_3 }}" alt="{{ 'about.pillar_3_title' | t | escape }}" width="1400" height="1400" loading="lazy">
<h3 class="m-0 max-w-[640px] text-[50px] font-light leading-[1.1] tracking-[0.6px] text-[#0a0a0a] md:text-[32px]">{{ 'about.pillar_3_title' | t }}</h3>
<p class="mb-0 mt-4 max-w-[640px] text-[18px] leading-[26px] text-[#6b7280]">{{ 'about.pillar_3_text' | t }}</p>
</article>
<article class="flex min-h-screen flex-col justify-center px-8 py-10 lg:min-h-0 lg:px-0" data-panel="3">
<img class="mb-6 hidden aspect-square w-full object-contain lg:block" src="{{ pillar_4 }}" alt="{{ 'about.pillar_4_title' | t | escape }}" width="1400" height="1400" loading="lazy">
<h3 class="m-0 max-w-[640px] text-[64px] font-light leading-[1.05] tracking-[0.6px] text-[#0a0a0a] md:text-[36px]">{{ 'about.pillar_4_title' | t }}</h3>
<p class="mb-0 mt-4 max-w-[640px] text-[18px] leading-[26px] text-[#6b7280]">{{ 'about.pillar_4_text' | t }}</p>
</article>
</div>
<div class="relative lg:hidden">
<div class="sticky top-0 flex h-screen items-center justify-center bg-white">
<img class="absolute inset-0 h-full w-full object-contain opacity-100 transition-opacity duration-500" src="{{ pillar_1 }}" alt="" data-panel-image="0" width="1400" height="1400">
<img class="absolute inset-0 h-full w-full object-contain opacity-0 transition-opacity duration-500" src="{{ pillar_2 }}" alt="" data-panel-image="1" width="1400" height="1400" loading="lazy">
<img class="absolute inset-0 h-full w-full object-contain opacity-0 transition-opacity duration-500" src="{{ pillar_3 }}" alt="" data-panel-image="2" width="1400" height="1400" loading="lazy">
<img class="absolute inset-0 h-full w-full object-contain opacity-0 transition-opacity duration-500" src="{{ pillar_4 }}" alt="" data-panel-image="3" width="1400" height="1400" loading="lazy">
</div>
</div>
</div>
</section>
<section class="px-[45px] py-12 md:px-5">
<h2 class="m-0 text-center text-[35px] font-medium leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[28px]">
{{ 'about.values_title' | t }}
</h2>
<ul class="mx-auto mt-8 grid max-w-[1100px] list-none grid-cols-3 gap-x-[27px] p-0 md:grid-cols-1 md:gap-y-8">
<li class="flex flex-col items-center gap-3 text-center text-[14.4px]">
<svg class="size-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
<path d="M12 3c2.8 3.2 6 6.4 6 10a6 6 0 1 1-12 0c0-3.6 3.2-6.8 6-10z"/>
</svg>
{{ 'about.value_1' | t }}
</li>
<li class="flex flex-col items-center gap-3 text-center text-[14.4px]">
<svg class="size-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
<path d="M5 14c0-4 2.2-7 5-8.2M19 14c0-4-2.2-7-5-8.2M8 14.5c.4 2.2 1.8 4 4 4s3.6-1.8 4-4"/>
<path d="M9 19.5c.8.8 1.8 1.2 3 1.2s2.2-.4 3-1.2"/>
</svg>
{{ 'about.value_2' | t }}
</li>
<li class="flex flex-col items-center gap-3 text-center text-[14.4px]">
<svg class="size-7" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true">
<path d="M12 20s-7-4.4-7-9.2C5 8 6.8 6.2 9 6.2c1.3 0 2.4.6 3 1.6.6-1 1.7-1.6 3-1.6 2.2 0 4 1.8 4 4.6C19 15.6 12 20 12 20z"/>
</svg>
{{ 'about.value_3' | t }}
</li>
</ul>
</section>
<section class="px-[45px] pb-8 pt-6 md:px-5">
<div class="mx-auto max-w-[1100px]">
<h2 class="m-0 text-center text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[28px]">
{{ 'about.facts_title' | t }}
<span class="font-medium">{{ 'about.facts_brand' | t }}</span>
</h2>
<p class="mx-auto mb-6 mt-4 max-w-[760px] text-center text-[16px] leading-[1.5]">
{{ 'about.facts_intro' | t }}
</p>
<div class="grid grid-cols-4 gap-4 xl:grid-cols-2 md:grid-cols-1">
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_1_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_1_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_2_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_2_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_3_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_3_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_4_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_4_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_5_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_5_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_6_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_6_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_7_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_7_text' | t }}</p>
</article>
<article class="rounded-[18px] border border-solid border-[#ececec] bg-[#f9f9fa] px-[22px] py-5">
<h3 class="m-0 mb-1.5 text-[15px] font-medium text-[#1a1b18]">{{ 'about.fact_8_title' | t }}</h3>
<p class="m-0 text-[14px] leading-[1.45]">{{ 'about.fact_8_text' | t }}</p>
</article>
</div>
<p class="mx-auto mb-0 mt-6 max-w-[760px] text-center text-[14px] leading-[1.5]">
{{ 'about.press' | t }}
</p>
</div>
</section>
<section class="px-[45px] py-12 text-center md:px-5">
<h2 class="m-0 text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[28px]">
{{ 'about.stores_title' | t }}
</h2>
<p class="mb-0 mt-3 text-[16px] leading-[1.5]">{{ 'about.stores_text' | t }}</p>
<a
class="mt-6 inline-flex items-center justify-center rounded-full border border-solid border-brand-mint bg-brand-mint px-[27px] py-[9px] text-[12px] font-medium uppercase leading-none text-[#212326] no-underline"
href="/pages/donde-encontrarnos"
>
{{ 'about.stores_button' | t }}
</a>
</section>
<section class="about-faq mx-auto w-full max-w-[1170px] px-[45px] pb-12 pt-4 md:px-5">
<h2 class="mb-2 text-center text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[28px]">
{{ 'about.faq_title' | t }}
</h2>
{% for i in (1..6) %}
{% liquid
case i
when 1
assign question = 'about.faq_1_q' | t
assign answer = 'about.faq_1_a' | t
when 2
assign question = 'about.faq_2_q' | t
assign answer = 'about.faq_2_a' | t
when 3
assign question = 'about.faq_3_q' | t
assign answer = 'about.faq_3_a' | t
when 4
assign question = 'about.faq_4_q' | t
assign answer = 'about.faq_4_a' | t
when 5
assign question = 'about.faq_5_q' | t
assign answer = 'about.faq_5_a' | t
else
assign question = 'about.faq_6_q' | t
assign answer = 'about.faq_6_a' | t
endcase
%}
<details class="border-b border-solid border-[#d2d5d9]">
<summary class="flex cursor-pointer items-center justify-between gap-4 py-[26px] text-left text-[22px] font-light leading-none text-[#1a1b18] md:text-[18px]">
{{ question }}
<span class="about-faq__icon shrink-0 text-[28px] font-light leading-none transition-transform" aria-hidden="true">+</span>
</summary>
<p class="mb-0 max-w-[900px] pb-8 text-[14.4px] leading-[1.89]">{{ answer }}</p>
</details>
{% endfor %}
</section>
<section class="grid min-h-[650px] grid-cols-2 lg:grid-cols-1">
<div class="h-[650px] bg-[#f3f3f3] md:h-[420px]">
<img
class="h-full w-full object-cover"
src="{{ join_image }}"
alt="{{ 'about.join_title' | t | escape }}"
width="1400"
height="1000"
loading="lazy"
>
</div>
<div class="flex items-center px-[90px] py-[45px] md:px-6 md:py-10">
<div class="max-w-[460px]">
<h2 class="m-0 text-[50px] font-light leading-[1.08] tracking-[0.6px] text-[#212326] md:text-[36px]">
{{ 'about.join_title' | t }}
</h2>
<p class="mb-0 mt-5 text-[18px] leading-[26px]">{{ 'about.join_text' | t }}</p>
<a
class="mt-6 inline-flex items-center justify-center rounded-full border border-solid border-[#1a1b18] bg-[#1a1b18] px-[18px] py-[8px] text-[11px] font-medium uppercase leading-none text-white no-underline"
href="/pages/quieres-ser-distribuidor"
>
{{ 'about.join_button' | t }}
</a>
</div>
</div>
</section>
</div>
{% javascript %}
document.querySelectorAll('[data-about-play]').forEach((button) => {
if (button.getAttribute('data-bound') === 'true') return;
button.setAttribute('data-bound', 'true');
button.addEventListener('click', () => {
const video = button.parentElement.querySelector('[data-about-video]');
if (!video) return;
video.setAttribute('controls', 'controls');
video.play();
button.hidden = true;
});
});
document.querySelectorAll('[data-about-pillars]').forEach((root) => {
if (root.getAttribute('data-bound') === 'true') return;
root.setAttribute('data-bound', 'true');
const images = [...root.querySelectorAll('[data-panel-image]')];
const panels = [...root.querySelectorAll('[data-panel]')];
if (!images.length || !('IntersectionObserver' in window)) return;
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if (!entry.isIntersecting) return;
const index = entry.target.getAttribute('data-panel');
images.forEach((image) => {
const active = image.getAttribute('data-panel-image') === index;
image.classList.toggle('opacity-100', active);
image.classList.toggle('opacity-0', !active);
});
});
}, { rootMargin: '-35% 0px -35% 0px', threshold: 0.1 });
panels.forEach((panel) => observer.observe(panel));
});
{% endjavascript %}
{% schema %}
{
"name": "t:about_section.name",
"settings": [
{
"type": "video",
"id": "hero_video",
"label": "t:about_section.hero_video"
},
{
"type": "image_picker",
"id": "pillar_1",
"label": "t:about_section.pillar_1"
},
{
"type": "image_picker",
"id": "pillar_2",
"label": "t:about_section.pillar_2"
},
{
"type": "image_picker",
"id": "pillar_3",
"label": "t:about_section.pillar_3"
},
{
"type": "image_picker",
"id": "pillar_4",
"label": "t:about_section.pillar_4"
},
{
"type": "image_picker",
"id": "join_image",
"label": "t:about_section.join_image"
}
]
}
{% endschema %}
+280 -48
View File
@@ -1,68 +1,300 @@
{% comment %}
This section is used in the article template to render the article page, which
displays the full content of the blog post and can optionally include a
comments section for customers (not shown in this example).
{% liquid
assign share_url = shop.url | append: article.url
assign share_url_encoded = share_url | url_encode
assign share_title = article.title | url_encode
assign published = article.published_at | date: '%B %d, %Y'
https://shopify.dev/docs/storefronts/themes/architecture/templates/article
{% endcomment %}
assign share_image = ''
if article.image != blank
assign share_image = article.image | image_url: width: 1200
unless share_image contains 'https:'
assign share_image = share_image | prepend: 'https:'
endunless
assign share_image = share_image | url_encode
endif
%}
{% if article.image %}
{{ article.image | image_url: width: 1000 | image_tag }}
{% endif %}
<div class="article full-width bg-white pb-9 font-sans text-[#212326]">
<article>
{% if article.image != blank %}
<div class="mx-auto mt-[45px] w-full max-w-[1170px] px-5 md:mt-8">
{{
article.image
| image_url: width: 2000
| image_tag:
loading: 'eager',
widths: '600, 900, 1200, 1600, 2000',
sizes: '(max-width: 1200px) 100vw, 1170px',
alt: article.image.alt | default: article.title,
class: 'h-auto w-full bg-[#f3f3f3]'
}}
</div>
{% endif %}
<h1>{{ article.title }}</h1>
<div class="mx-auto w-full max-w-[1170px] px-5">
<nav
class="mt-7 text-center text-[9px] uppercase leading-none tracking-[1.17px] text-[#212326]/75"
aria-label="{{ 'blog.breadcrumb' | t }}"
>
<a class="text-inherit no-underline hover:underline" href="{{ routes.root_url }}">
{{- 'blog.home' | t -}}
</a>
<span class="px-1" aria-hidden="true">/</span>
<a class="text-inherit no-underline hover:underline" href="{{ blog.url }}">
{{- blog.title | escape -}}
</a>
<span class="px-1" aria-hidden="true">/</span>
</nav>
{% assign date = article.published_at | time_tag: format: 'date' %}
<p>{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}</p>
<header class="mb-[45px] mt-7 text-center">
<h1 class="relative m-0 mb-[27px] pb-[18px] text-balance text-[64px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] after:absolute after:bottom-0 after:left-1/2 after:h-[3px] after:w-[90px] after:-translate-x-1/2 after:bg-[#1a1b18] after:content-[''] lg:text-[48px] md:text-[34px] md:leading-[1.2]">
{{ article.title | escape }}
</h1>
<time
class="text-[18px] font-normal leading-none text-[#212326]/75"
datetime="{{ article.published_at | date: '%Y-%m-%d' }}"
>
{{- published -}}
</time>
</header>
{{ article.content }}
<div class="article-rte">
{{ article.content }}
</div>
{% if blog.comments_enabled? %}
<h2>{{ 'blog.article_comments' | t }}</h2>
{% if blog.comments_enabled? %}
<div id="comments" class="mt-12 border-t border-solid border-[#d2d5d9] pt-10">
<h2 class="m-0 text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[26px]">
{{ 'blog.article_comments' | t }}
</h2>
<div id="comments">
{% paginate article.comments by 10 %}
{% for comment in article.comments %}
<div>
<p>{{ comment.author }}</p>
<p>
{{- comment.created_at | time_tag: format: 'date' -}}
</p>
<p>{{ comment.content }}</p>
{% paginate article.comments by 10 %}
<div class="mt-6 flex flex-col gap-6">
{% for comment in article.comments %}
<div class="border-b border-solid border-[#d2d5d9] pb-6">
<p class="m-0 text-[14.4px] font-medium text-[#1a1b18]">{{ comment.author | escape }}</p>
<p class="m-0 mt-1 text-[12.6px] text-[#212326]/75">
{{ comment.created_at | date: '%B %d, %Y' }}
</p>
<div class="mt-3 text-[14.4px] leading-[1.89]">{{ comment.content }}</div>
</div>
{% endfor %}
</div>
{% if paginate.pages > 1 %}
<div class="mt-6 text-[14.4px]">
{{ paginate | default_pagination: anchor: 'comments' }}
</div>
{% endif %}
{% endpaginate %}
{% form 'new_comment', article %}
<h2 class="mb-4 mt-10 text-[28px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18]">
{{ 'blog.comment_form_title' | t }}
</h2>
{% if form.posted_successfully? %}
<p class="m-0 mb-4 text-[14.4px]" role="status">{{ 'blog.comment_success' | t }}</p>
{% endif %}
{{ form.errors | default_errors }}
<div class="grid gap-4">
<div>
<label class="text-[12.6px] text-[#1a1b18]" for="author">{{ 'blog.comment_form_name' | t }}</label>
<input
class="mt-2 w-full rounded-lg border border-solid border-[#d2d5d9] bg-white px-4 py-3 text-[14.4px] text-[#1a1b18] outline-none focus:border-[#1a1b18]"
type="text"
name="comment[author]"
id="author"
value="{{ form.author }}"
required
>
</div>
<div>
<label class="text-[12.6px] text-[#1a1b18]" for="email">{{ 'blog.comment_form_email' | t }}</label>
<input
class="mt-2 w-full rounded-lg border border-solid border-[#d2d5d9] bg-white px-4 py-3 text-[14.4px] text-[#1a1b18] outline-none focus:border-[#1a1b18]"
type="email"
name="comment[email]"
id="email"
value="{{ form.email }}"
required
>
</div>
<div>
<label class="text-[12.6px] text-[#1a1b18]" for="body">{{ 'blog.comment_form_body' | t }}</label>
<textarea
class="mt-2 min-h-[140px] w-full rounded-lg border border-solid border-[#d2d5d9] bg-white px-4 py-3 text-[14.4px] text-[#1a1b18] outline-none focus:border-[#1a1b18]"
name="comment[body]"
id="body"
required
>{{ form.body }}</textarea>
</div>
<div>
<button
class="inline-flex cursor-pointer items-center justify-center rounded-full border border-solid border-brand-mint bg-brand-mint px-[27px] py-[9px] text-[12px] font-medium uppercase leading-none text-[#212326]"
type="submit"
>
{{ 'blog.comment_form_submit' | t }}
</button>
</div>
</div>
{% endform %}
</div>
{% endfor %}
{% endif %}
{{ paginate | default_pagination: anchor: 'comments' }}
{% endpaginate %}
</div>
{% if section.settings.show_share %}
<div class="mt-7 flex flex-wrap items-center gap-x-4 gap-y-2 text-[12.6px] text-[#1a1b18]">
<span class="uppercase tracking-[0.08em]">{{ 'blog.share' | t }}</span>
<a
class="text-inherit no-underline hover:underline"
href="https://www.facebook.com/sharer.php?u={{ share_url_encoded }}"
target="_blank"
rel="noopener noreferrer"
>
Facebook
</a>
<a
class="text-inherit no-underline hover:underline"
href="https://twitter.com/intent/tweet?url={{ share_url_encoded }}&text={{ share_title }}"
target="_blank"
rel="noopener noreferrer"
>
X
</a>
{% if share_image != blank %}
<a
class="text-inherit no-underline hover:underline"
href="https://pinterest.com/pin/create/button/?url={{ share_url_encoded }}&media={{ share_image }}&description={{ share_title }}"
target="_blank"
rel="noopener noreferrer"
>
Pinterest
</a>
{% endif %}
<a
class="text-inherit no-underline hover:underline"
href="https://wa.me/?text={{ share_title }}%20{{ share_url_encoded }}"
target="_blank"
rel="noopener noreferrer"
>
WhatsApp
</a>
<button
class="cursor-pointer border-0 bg-transparent p-0 text-[12.6px] text-inherit underline-offset-2 hover:underline"
type="button"
data-copy-link
data-url="{{ share_url | escape }}"
data-copied="{{ 'blog.copied' | t | escape }}"
>
<span data-copy-label>{{ 'blog.copy_link' | t }}</span>
</button>
</div>
{% endif %}
{% form 'new_comment', article %}
<h2>{{ 'blog.comment_form_title' | t }}</h2>
{{ form.errors | default_errors }}
<div>
<label for="author">{{ 'blog.comment_form_name' | t }}</label>
<input type="text" name="comment[author]" id="author" value="{{ form.author }}" required>
<div class="mt-10 text-center">
<a
class="inline-flex items-center gap-2 rounded-full px-4 py-2 text-[11px] font-medium uppercase tracking-[0.08em] text-[#1a1b18] no-underline hover:underline"
href="{{ blog.url }}"
>
<svg class="size-3.5" viewBox="0 0 14 10" fill="none" aria-hidden="true">
<path fill="currentColor" fill-rule="evenodd" d="M5.463.808a.5.5 0 0 0-.817-.162l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.207 5.5H13a.5.5 0 0 0 0-1H2.207L5.354 1.354a.5.5 0 0 0 .109-.546z"/>
</svg>
{{ 'blog.back' | t: blog: blog.title }}
</a>
</div>
</div>
<div>
<label for="email">{{ 'blog.comment_form_email' | t }}</label>
<input type="email" name="comment[email]" id="email" value="{{ form.email }}" required>
</div>
{% if blog.previous_article or blog.next_article %}
<ul class="mx-auto mt-[45px] grid w-full max-w-[1440px] list-none grid-cols-2 gap-[27px] border border-solid border-[#d2d5d9] px-[45px] py-[45px] md:grid-cols-1 md:px-5 md:py-8">
<li>
{% if blog.previous_article %}
<a class="inline-flex items-center gap-3 text-[#1a1b18] no-underline hover:underline" href="{{ blog.previous_article.url }}">
<svg class="size-3.5 shrink-0" viewBox="0 0 14 10" fill="none" aria-hidden="true">
<path fill="currentColor" fill-rule="evenodd" d="M5.463.808a.5.5 0 0 0-.817-.162l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L2.207 5.5H13a.5.5 0 0 0 0-1H2.207L5.354 1.354a.5.5 0 0 0 .109-.546z"/>
</svg>
<span class="text-[22px] font-light leading-[1.27] tracking-[0.6px]">
{{ blog.previous_article.title | escape }}
</span>
</a>
{% endif %}
</li>
<li class="md:text-left text-right">
{% if blog.next_article %}
<a class="inline-flex items-center justify-end gap-3 text-[#1a1b18] no-underline hover:underline md:justify-start" href="{{ blog.next_article.url }}">
<span class="text-[22px] font-light leading-[1.27] tracking-[0.6px]">
{{ blog.next_article.title | escape }}
</span>
<svg class="size-3.5 shrink-0" viewBox="0 0 14 10" fill="none" aria-hidden="true">
<path fill="currentColor" fill-rule="evenodd" d="M8.537.808a.5.5 0 0 1 .817-.162l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 1 1-.708-.708L11.793 5.5H1a.5.5 0 0 1 0-1h10.793L8.646 1.354a.5.5 0 0 1-.109-.546z"/>
</svg>
</a>
{% endif %}
</li>
</ul>
{% endif %}
</article>
<div>
<label for="body">{{ 'blog.comment_form_body' | t }}</label>
<textarea name="comment[body]" id="body" required>{{ form.body }}</textarea>
</div>
{% if section.settings.show_related and blog.articles.size > 1 %}
<section class="mx-auto mt-9 w-full max-w-[1440px] px-[45px] pb-[72px] md:px-5 md:pb-12" aria-labelledby="RelatedArticles-{{ section.id }}">
<div class="mb-[27px] flex items-center justify-between gap-4 md:flex-col md:items-start">
<h2 id="RelatedArticles-{{ section.id }}" class="m-0 text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[26px]">
{{ 'blog.related' | t }}
</h2>
<a
class="inline-flex items-center justify-center rounded-full border border-solid border-brand-mint bg-brand-mint px-[27px] py-[9px] text-[12px] font-medium uppercase leading-none text-[#212326] no-underline"
href="{{ blog.url }}"
>
{{ 'blog.view_all' | t }}
</a>
</div>
<input type="submit" value="{{ 'blog.comment_form_submit' | t }}">
{% endform %}
{% endif %}
<div class="grid grid-cols-3 gap-x-[27px] gap-y-10 lg:grid-cols-2 md:grid-cols-1">
{% for related in blog.articles limit: 3 %}
{% render 'blog-card', article: related, heading_tag: 'h3' %}
{% endfor %}
</div>
</section>
{% endif %}
</div>
{% javascript %}
document.querySelectorAll('[data-copy-link]').forEach((button) => {
if (button.getAttribute('data-copy-bound') === 'true') return;
button.setAttribute('data-copy-bound', 'true');
button.addEventListener('click', () => {
const url = button.getAttribute('data-url');
const label = button.querySelector('[data-copy-label]');
if (!url || !navigator.clipboard || !label) return;
navigator.clipboard.writeText(url).then(() => {
const original = label.textContent;
label.textContent = button.getAttribute('data-copied') || original;
window.setTimeout(() => {
label.textContent = original;
}, 2000);
});
});
});
{% endjavascript %}
{% schema %}
{
"name": "t:general.article",
"settings": []
"settings": [
{
"type": "checkbox",
"id": "show_share",
"label": "t:blog_section.show_share",
"default": true
},
{
"type": "checkbox",
"id": "show_related",
"label": "t:blog_section.show_related",
"default": true
}
]
}
{% endschema %}
+5 -1
View File
@@ -83,7 +83,7 @@
widths: '372, 486, 744, 972',
sizes: '(max-width: 1024px) calc(100vw - 30px), 486px',
class: 'bestsellers__promo-image',
loading: 'eager'
loading: 'lazy'
}}
{% else %}
<img
@@ -92,6 +92,10 @@
alt="{{ heading | escape }}"
width="486"
height="550"
srcset="{{ 'bestsellers-promo-sm.avif' | asset_url }} 700w, {{ 'bestsellers-promo.avif' | asset_url }} 980w"
sizes="(max-width: 1024px) 95vw, 486px"
loading="lazy"
decoding="async"
>
{% endif %}
</{{ promo_tag }}>
+119 -26
View File
@@ -1,35 +1,128 @@
{% comment %}
This section is used in the blog template to render the blog page listing all
articles within a blog.
<div class="blog full-width bg-white pb-[72px] pt-[60px] font-sans text-[#212326] md:pb-12 md:pt-10">
<div class="mx-auto w-full max-w-[1440px] px-[45px] md:px-5">
<header class="mb-[18px] flex items-end justify-between gap-8 lg:flex-col lg:items-start lg:gap-4">
<h1 class="m-0 shrink-0 text-[50px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[36px]">
{{ blog.title | escape }}
</h1>
https://shopify.dev/docs/storefronts/themes/architecture/templates/blog
{% endcomment %}
<h1>{{ blog.title }}</h1>
{% paginate blog.articles by 5 %}
{% for article in blog.articles %}
<div>
{% if article.image %}
{{ article.image | image_url: width: 1000 | image_tag }}
{% if section.settings.show_tags and blog.all_tags.size > 0 %}
<ul class="m-0 flex max-w-[1070px] list-none flex-wrap justify-end p-0 lg:max-w-none lg:justify-start">
<li class="px-[11px] py-[6px]">
<a
class="text-[12.6px] leading-none text-[#1a1b18] no-underline hover:underline {% if current_tags == blank %}underline underline-offset-[5px]{% endif %}"
href="{{ blog.url }}"
{% if current_tags == blank %}
aria-current="page"
{% endif %}
>
{{- 'blog.all' | t -}}
</a>
</li>
{% for tag in blog.all_tags %}
<li class="px-[11px] py-[6px]">
<a
class="text-[12.6px] leading-none text-[#1a1b18] no-underline hover:underline {% if current_tags contains tag %}underline underline-offset-[5px]{% endif %}"
href="{{ blog.url }}/tagged/{{ tag | handle }}"
{% if current_tags contains tag %}
aria-current="page"
{% endif %}
>
{{- tag | escape -}}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
<h2>
{{ article.title | link_to: article.url }}
</h2>
{% assign date = article.published_at | time_tag: format: 'date' %}
<p>{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}</p>
<p>{{ article.excerpt }}</p>
</div>
{% endfor %}
</header>
{%- if paginate.pages > 1 -%}
{{- paginate | default_pagination -}}
{%- endif -%}
{% endpaginate %}
{% paginate blog.articles by 12 %}
<div class="grid grid-cols-3 gap-x-[27px] gap-y-16 lg:grid-cols-2 md:grid-cols-1 md:gap-y-10">
{% for article in blog.articles %}
{% render 'blog-card',
article: article,
show_excerpt: true,
show_author: section.settings.show_author,
eager: forloop.first
%}
{% else %}
<p class="col-span-full m-0 text-[14.4px] leading-[1.89]">{{ 'blog.empty' | t }}</p>
{% endfor %}
</div>
{% if paginate.pages > 1 %}
<nav class="mt-14" aria-label="{{ 'blog.pagination' | t }}">
<ul class="m-0 flex list-none flex-wrap items-center justify-center p-0">
{% if paginate.previous %}
<li class="mx-[4px]">
<a
class="inline-flex items-center px-2 text-[14.4px] text-[#1a1b18] no-underline hover:underline"
href="{{ paginate.previous.url }}"
>
<span aria-hidden="true">‹</span>
{{ 'blog.previous' | t }}
</a>
</li>
{% endif %}
{% for part in paginate.parts %}
<li class="mx-[4px]">
{% if part.is_link %}
<a
class="flex size-[31px] items-center justify-center text-[14.4px] text-[#1a1b18] no-underline hover:underline"
href="{{ part.url }}"
aria-label="{{ 'blog.page' | t: page: part.title }}"
>
{{- part.title -}}
</a>
{% elsif part.title == paginate.current_page %}
<span
class="flex size-[31px] items-center justify-center rounded-full bg-brand-mint text-[14.4px] text-[#212326]"
aria-current="page"
>
{{- part.title -}}
</span>
{% else %}
<span class="flex size-[31px] items-center justify-center text-[14.4px] text-[#212326]" aria-hidden="true">
{{- part.title -}}
</span>
{% endif %}
</li>
{% endfor %}
{% if paginate.next %}
<li class="mx-[4px]">
<a
class="inline-flex items-center gap-1 px-2 text-[14.4px] text-[#1a1b18] no-underline hover:underline"
href="{{ paginate.next.url }}"
>
{{ 'blog.next' | t }}
<span aria-hidden="true">›</span>
</a>
</li>
{% endif %}
</ul>
</nav>
{% endif %}
{% endpaginate %}
</div>
</div>
{% schema %}
{
"name": "t:general.blog",
"settings": []
"settings": [
{
"type": "checkbox",
"id": "show_tags",
"label": "t:blog_section.show_tags",
"default": true
},
{
"type": "checkbox",
"id": "show_author",
"label": "t:blog_section.show_author",
"default": true
}
]
}
{% endschema %}
+28 -17
View File
@@ -74,7 +74,7 @@
| image_tag:
alt: banner_title,
widths: '600, 960, 1400',
sizes: '(max-width: 767px) 70vw, 50vw',
sizes: '(max-width: 767px) 100vw, 50vw',
class: 'collection__banner-image',
loading: 'eager'
}}
@@ -97,6 +97,8 @@
alt=""
width="185"
height="210"
loading="lazy"
decoding="async"
>
</div>
</div>
@@ -294,6 +296,7 @@
.collection__banner-media {
height: 100%;
min-height: 380px;
max-height: 380px;
}
.collection__banner-image {
@@ -330,6 +333,8 @@
font-size: 18px;
font-weight: 300;
line-height: 1.4;
position: relative;
z-index: 2;
}
.collection__banner-text p {
@@ -597,33 +602,35 @@
@media (max-width: 767px) {
.collection__banner {
grid-template-columns: 1fr;
min-height: 250px;
display: flex;
flex-direction: column;
min-height: 0;
background: transparent;
}
.collection__banner-media {
position: absolute;
inset: 0 auto 0 0;
width: 58%;
min-height: 0;
}
.collection__banner {
position: relative;
position: static;
width: 100%;
height: 250px;
min-height: 250px;
max-height: 250px;
}
.collection__banner-image {
width: 100%;
height: 250px;
min-height: 250px;
object-fit: cover;
}
.collection__banner-copy {
position: relative;
z-index: 1;
min-height: 250px;
justify-content: flex-end;
justify-content: flex-start;
gap: 15px;
padding: 20px;
background: linear-gradient(90deg, rgba(247, 197, 133, 0) 0%, #f7c585 46%);
min-height: 250px;
padding: 77px 20px 40px;
overflow: hidden;
background: #f7c585;
}
.collection__banner-title {
@@ -636,7 +643,11 @@
}
.collection__banner-blob {
display: none;
display: block;
top: 4px;
right: 20px;
width: 153px;
transform: none;
}
.collection__body {
+9
View File
@@ -54,6 +54,9 @@
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 %}
@@ -63,6 +66,8 @@
alt="{{ 'distributors.wordmark' | t }}"
width="324"
height="210"
loading="lazy"
decoding="async"
>
</div>
@@ -73,6 +78,8 @@
alt=""
width="355"
height="403"
loading="lazy"
decoding="async"
>
<img
class="distributors__blob distributors__blob--bottom"
@@ -80,6 +87,8 @@
alt=""
width="210"
height="114"
loading="lazy"
decoding="async"
>
<div class="distributors__copy">
-9
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{
"type": "footer",
"name": "t:general.footer",
+48 -45
View File
@@ -1,26 +1,5 @@
{% liquid
assign copyright_year = 'now' | date: '%Y'
assign privacy_url = '/pages/aviso-de-privacidad'
assign shipping_url = '/pages/envios'
assign returns_url = '/pages/devoluciones'
assign payments_url = '/pages/politica-de-pagos'
if shop.privacy_policy != blank
assign privacy_url = shop.privacy_policy.url
endif
if shop.shipping_policy != blank
assign shipping_url = shop.shipping_policy.url
endif
if shop.refund_policy != blank
assign returns_url = shop.refund_policy.url
endif
if shop.terms_of_service != blank
assign payments_url = shop.terms_of_service.url
endif
assign form_id = 'FooterSignup-' | append: section.id
assign email_id = 'FooterEmail-' | append: section.id
assign message_id = 'FooterSignupMessage-' | append: section.id
@@ -63,9 +42,24 @@
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-{{ forloop.index }}">
{% for child in link.links %}
<li>
<a href="{{ child.url }}">{{ child.title }}</a>
</li>
{% 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 %}
@@ -83,9 +77,8 @@
</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/seasons">{{ 'footer.seasons.blog' | t }}</a></li>
<li><a href="/pages/resenas">{{ 'footer.seasons.reviews' | t }}</a></li>
<li><a href="/pages/puntos-de-venta">{{ 'footer.seasons.stores' | 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">
@@ -96,11 +89,8 @@
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-shop">
<li><a href="{{ routes.all_products_collection_url }}">{{ 'footer.shop.all' | t }}</a></li>
<li><a href="/collections/mas-vendidos">{{ 'footer.shop.bestsellers' | t }}</a></li>
<li><a href="/collections/nuevos-lanzamientos">{{ 'footer.shop.new' | t }}</a></li>
<li><a href="/collections/kits-y-rutinas">{{ 'footer.shop.kits' | t }}</a></li>
<li><a href="/collections/linea-anterior">{{ 'footer.shop.previous' | t }}</a></li>
<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">
@@ -111,12 +101,11 @@
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-routine">
<li><a href="/pages/tu-rutina-ideal">{{ 'footer.routine.ideal' | t }}</a></li>
<li><a href="/collections/piel-grasa">{{ 'footer.routine.oily' | t }}</a></li>
<li><a href="/collections/piel-mixta">{{ 'footer.routine.combination' | t }}</a></li>
<li><a href="/collections/piel-seca">{{ 'footer.routine.dry' | t }}</a></li>
<li><a href="/collections/todo-tipo">{{ 'footer.routine.all' | t }}</a></li>
<li><a href="/collections/kits-y-rutinas">{{ 'footer.routine.kits' | 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">
@@ -127,12 +116,11 @@
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-help">
<li><a href="/pages/preguntas-frecuentes">{{ 'footer.help.faq' | t }}</a></li>
<li><a href="{{ shipping_url }}">{{ 'footer.help.shipping' | t }}</a></li>
<li><a href="{{ returns_url }}">{{ 'footer.help.returns' | t }}</a></li>
<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="{{ payments_url }}">{{ 'footer.help.payments' | t }}</a></li>
<li><a href="{{ privacy_url }}">{{ 'footer.help.privacy' | 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">
@@ -143,10 +131,9 @@
</span>
</button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-community">
<li><a href="/pages/seasons-experts">{{ 'footer.community.experts' | t }}</a></li>
<li><a href="/pages/ser-distribuidor">{{ 'footer.community.distributor' | t }}</a></li>
<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>
<li><a href="/pages/videos-y-tips">{{ 'footer.community.videos' | t }}</a></li>
</ul>
</div>
{% endif %}
@@ -351,6 +338,22 @@
font-weight: 300;
line-height: 30px;
text-decoration: none;
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.footer__column a:hover,
.footer__column a:focus-visible {
background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
.footer__column a {
transition: none;
}
}
.footer a:focus-visible {
+172
View File
@@ -0,0 +1,172 @@
{% render 'glow-army-page' %}
{% schema %}
{
"name": "t:glow_army.name",
"tag": "section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "t:glow_army.heading",
"default": "Glow Army"
},
{
"type": "textarea",
"id": "text",
"label": "t:glow_army.text",
"default": "Nuestro espacio exclusivo dónde recompensamos que cuides tu carita. Cada compra que hagas te acerca a recompensas increíbles."
},
{
"type": "text",
"id": "join_label",
"label": "t:glow_army.join",
"default": "Unirse"
},
{
"type": "url",
"id": "join_link",
"label": "t:glow_army.join_link"
},
{
"type": "text",
"id": "points_label",
"label": "t:glow_army.points",
"default": "Ver mis puntos"
},
{
"type": "url",
"id": "points_link",
"label": "t:glow_army.points_link"
},
{
"type": "text",
"id": "how_heading",
"label": "t:glow_army.how",
"default": "Cómo funciona"
},
{
"type": "text",
"id": "earn_heading",
"label": "t:glow_army.earn",
"default": "Formas de ganar puntos"
},
{
"type": "text",
"id": "redeem_heading",
"label": "t:glow_army.redeem",
"default": "Formas de canjear puntos"
},
{
"type": "text",
"id": "referral_heading",
"label": "t:glow_army.referral_heading",
"default": "Da 10% de descuento, recibe 10% de descuento"
},
{
"type": "textarea",
"id": "referral_text",
"label": "t:glow_army.referral_text",
"default": "Únete al programa de referidos y reclama tus recompensas"
},
{
"type": "text",
"id": "referral_button",
"label": "t:glow_army.referral_button",
"default": "Únete ahora"
},
{
"type": "url",
"id": "referral_link",
"label": "t:glow_army.referral_link"
}
],
"blocks": [
{
"type": "step",
"name": "t:glow_army.step",
"settings": [
{
"type": "text",
"id": "number",
"label": "t:glow_army.number",
"default": "01"
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "Crear una cuenta"
},
{
"type": "textarea",
"id": "text",
"label": "t:glow_army.text",
"default": "Conviértete en miembro para recibir recompensas"
}
]
},
{
"type": "earn",
"name": "t:glow_army.earn_item",
"settings": [
{
"type": "select",
"id": "icon",
"label": "t:glow_army.icon",
"default": "order",
"options": [
{ "value": "order", "label": "t:glow_army.icons.order" },
{ "value": "birthday", "label": "t:glow_army.icons.birthday" },
{ "value": "review", "label": "t:glow_army.icons.review" },
{ "value": "profile", "label": "t:glow_army.icons.profile" }
]
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "Completar un pedido"
},
{
"type": "text",
"id": "text",
"label": "t:glow_army.text",
"default": "Gana 1 punto por cada $1"
}
]
},
{
"type": "reward",
"name": "t:glow_army.reward",
"settings": [
{
"type": "image_picker",
"id": "image",
"label": "t:glow_army.image"
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "$50 off"
},
{
"type": "text",
"id": "text",
"label": "t:glow_army.text",
"default": "1,000 puntos"
}
]
}
],
"presets": [
{
"name": "t:glow_army.name"
}
],
"disabled_on": {
"groups": ["header", "footer"]
}
}
{% endschema %}
+1 -10
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{
"type": "header",
"name": "t:general.header",
@@ -18,5 +9,5 @@
},
"order": [
"header"
],
]
}
+47 -15
View File
@@ -122,7 +122,7 @@
<li>
<a
class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
href="{{ routes.root_url }}"
href="/pages/glow-army"
>
{{ 'header.links.glow_army' | t }}
</a>
@@ -130,7 +130,7 @@
<li>
<a
class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
href="{{ routes.root_url }}"
href="https://seasonsexperts.com/pages/quiero-ser-distribuidor"
>
{{ 'header.links.experts' | t }}
</a>
@@ -183,12 +183,12 @@
assign label_hydration = 'header.dropdowns.hydration' | t
assign label_aging = 'header.dropdowns.anti_aging' | t
assign label_spots = 'header.dropdowns.spots' | t
assign categories_menu = label_all | append: '::' | append: routes.all_products_collection_url | append: '|' | append: label_blockers | append: '::/collections/bloqueadores|' | append: label_moisturizers | append: '::/collections/hidratantes|' | append: label_cleansers | append: '::/collections/limpiadores|' | append: label_masks | append: '::/collections/mascarillas|' | append: label_serums | append: '::/collections/serums'
assign routine_menu = label_clean | append: '::/collections/limpia|' | append: label_treat | append: '::/collections/trata|' | append: label_hydrate | append: '::/collections/hidrata|' | append: label_protect | append: '::/collections/protege|' | append: label_kits | append: '::/collections/kits-y-rutinas-completas'
assign skin_menu = label_combination | append: '::/collections/mixta-grasa|' | append: label_oily | append: '::/collections/grasa|' | append: label_dry | append: '::/collections/seca'
assign concern_menu = label_sun | append: '::/collections/proteccion-solar|' | append: label_oil | append: '::/collections/control-grasa|' | append: label_acne | append: '::/collections/acne|' | append: label_hydration | append: '::/collections/hidratacion|' | append: label_aging | append: '::/collections/antiedad|' | append: label_spots | append: '::/collections/manchas'
assign categories_menu = label_all | append: '::/collections/all-products|' | append: label_blockers | append: '::/collections/proteccion-solar-1|' | append: label_moisturizers | append: '::/collections/hidratantes|' | append: label_cleansers | append: '::/collections/limpiadores|' | append: label_masks | append: '::/collections/mascarillas|' | append: label_serums | append: '::/collections/serum'
assign routine_menu = label_clean | append: '::/collections/1-limpia|' | append: label_treat | append: '::/collections/2-trata|' | append: label_hydrate | append: '::/collections/3-hidrata|' | append: label_protect | append: '::/collections/4-protege-bloqueadores-solares|' | append: label_kits | append: '::/collections/kits-skincare-facial'
assign skin_menu = label_combination | append: '::/collections/piel-mixta-grasa|' | append: label_oily | append: '::/collections/piel-grasa|' | append: label_dry | append: '::/collections/piel-seca-1'
assign concern_menu = label_sun | append: '::/collections/proteccion-solar-1|' | append: label_oil | append: '::/collections/control-grasa|' | append: label_acne | append: '::/collections/acne-1|' | append: label_hydration | append: '::/collections/hidratacion|' | append: label_aging | append: '::/collections/antiedad-1|' | append: label_spots | append: '::/collections/aclarar'
%}
{% render 'header-menu-item', title: nav_categories, url: routes.all_products_collection_url, child_menu: categories_menu %}
{% render 'header-menu-item', title: nav_categories, url: '/collections/all-products', child_menu: categories_menu %}
{% render 'header-menu-item', title: nav_routine, url: routes.collections_url, child_menu: routine_menu %}
{% render 'header-menu-item', title: nav_skin_type, url: routes.collections_url, child_menu: skin_menu %}
{% render 'header-menu-item', title: nav_concern, url: routes.collections_url, child_menu: concern_menu %}
@@ -209,22 +209,17 @@
{% endfor %}
{% else %}
<li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}">
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/proteccion-solar-1">
{{ 'header.links.sunscreen' | t }}
</a>
</li>
<li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}">
{{ 'header.links.favorites' | t }}
</a>
</li>
<li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}">
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/kits-skincare-facial">
{{ 'header.links.kits' | t }}
</a>
</li>
<li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}">
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/hidratantes">
{{ 'header.links.moisturizers' | t }}
</a>
</li>
@@ -651,6 +646,43 @@
width: 128px;
}
}
.header__item > a,
.header__submenu a,
.header__utility a {
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.header__item > a:hover,
.header__item > a:focus-visible,
.header__submenu a:hover,
.header__submenu a:focus-visible,
.header__utility a:hover,
.header__utility a:focus-visible {
background-size: 100% 1px;
}
.header__pills a {
transition: background-color 0.2s ease, color 0.2s ease;
}
.header__pills a:hover,
.header__pills a:focus-visible {
background: #9dd6c7;
}
@media (prefers-reduced-motion: reduce) {
.header__item > a,
.header__submenu a,
.header__utility a,
.header__pills a {
transition: none;
}
}
{% endstylesheet %}
{% javascript %}
+45
View File
@@ -316,6 +316,7 @@
}
.hero__card-media {
position: relative;
display: block;
width: 100px;
height: 100px;
@@ -328,6 +329,50 @@
height: 100%;
max-width: none;
object-fit: cover;
transition: transform 0.35s ease;
}
.hero__card:hover .hero__card-image,
.hero__card:focus-within .hero__card-image {
transform: scale(1.06);
}
.hero__card-image--hover {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero__card:hover .hero__card-image--hover,
.hero__card:focus-within .hero__card-image--hover {
opacity: 1;
}
.hero__card-title {
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.hero__card:hover .hero__card-title,
.hero__card-title:focus-visible {
background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
.hero__card-image,
.hero__card-image--hover,
.hero__card-title {
transition: none;
}
.hero__card:hover .hero__card-image,
.hero__card:focus-within .hero__card-image {
transform: none;
}
}
.hero__card-copy {
+17 -2
View File
@@ -25,8 +25,14 @@
data-cart-url="{{ routes.cart_url }}.js"
data-active="{{ active_index }}"
>
<img class="learn__blob learn__blob--right" src="{{ 'learn-shape-right.avif' | asset_url }}" alt="" width="539" height="516">
<img class="learn__blob learn__blob--left" src="{{ 'learn-shape-left.avif' | asset_url }}" alt="" width="407" height="314">
<img class="learn__blob learn__blob--right" src="{{ 'learn-shape-right.avif' | asset_url }}" alt="" width="539" height="516"
loading="lazy"
decoding="async"
>
<img class="learn__blob learn__blob--left" src="{{ 'learn-shape-left.avif' | asset_url }}" alt="" width="407" height="376"
loading="lazy"
decoding="async"
>
<div class="learn__header">
<h2 class="learn__heading">{{ heading | escape }}</h2>
@@ -46,6 +52,10 @@
endif
endfor
endif
if video_src == blank and forloop.index <= 5
assign reel_name = forloop.index | append: '-reel-ig.mp4'
assign video_src = reel_name | asset_url
endif
assign fallback_image = blank
case forloop.index
@@ -53,6 +63,8 @@
assign fallback_image = 'learn-cover-1.avif'
when 2
assign fallback_image = 'learn-cover-2.avif'
when 3
assign fallback_image = 'reel1.jpg'
when 4
assign fallback_image = 'learn-cover-4.avif'
when 5
@@ -86,6 +98,9 @@
width="384"
height="680"
loading="lazy"
srcset="{{ fallback_image | replace: '.avif', '-sm.avif' | asset_url }} 400w, {{ fallback_image | asset_url }} 780w"
sizes="(max-width: 1024px) 220px, 384px"
decoding="async"
>
{% endif %}
{% if video_src != blank %}
+3
View File
@@ -29,6 +29,9 @@
endif
endfor
endif
if video_src == blank and section.settings.promo_link == blank
assign video_src = 'nuevos-productos.mp4' | asset_url
endif
assign poster = section.settings.poster
assign poster_url = blank
+6 -2
View File
@@ -5,9 +5,13 @@
https://shopify.dev/docs/storefronts/themes/architecture/templates/page
{% endcomment %}
<h1>{{ page.title }}</h1>
{% if page.handle == 'glow-army' %}
{% render 'glow-army-page' %}
{% else %}
<h1>{{ page.title }}</h1>
{{ page.content }}
{{ page.content }}
{% endif %}
{% schema %}
{
+650 -162
View File
@@ -165,22 +165,63 @@
{% endif %}
</div>
{% if product.images.size > 1 %}
<div class="product__thumbs">
{% assign gallery_count = 0 %}
{% if main_image != blank %}
{% assign gallery_count = 1 %}
{% endif %}
{% for image in product.images %}
{% if image.id != main_image.id %}
{% assign gallery_count = gallery_count | plus: 1 %}
{% endif %}
{% endfor %}
<div class="product__thumbs" data-product-thumbs>
{% if main_image != blank %}
<div class="product__thumb product__thumb--main">
{{
main_image
| image_url: width: 1400
| image_tag:
alt: main_alt,
loading: 'eager',
fetchpriority: 'high',
widths: '700, 1000, 1400',
sizes: '100vw',
draggable: false
}}
</div>
{% endif %}
{% for image in product.images %}
{% if image.id != main_image.id %}
{% assign thumb_alt = image.alt | default: product.title %}
{{
image
| image_url: width: 900
| image_tag:
alt: thumb_alt,
loading: 'lazy',
widths: '400, 700, 900',
sizes: '(min-width: 1120px) 28vw, 50vw'
}}
<div class="product__thumb">
{{
image
| image_url: width: 900
| image_tag:
alt: thumb_alt,
loading: 'lazy',
widths: '400, 700, 900',
sizes: '(max-width: 767px) 100vw, (min-width: 1120px) 28vw, 50vw',
draggable: false
}}
</div>
{% endif %}
{% endfor %}
</div>
{% if gallery_count > 1 %}
<div
class="product__gallery-progress"
data-gallery-progress
style="--slides: {{ gallery_count }}"
role="progressbar"
aria-valuemin="1"
aria-valuemax="{{ gallery_count }}"
aria-valuenow="1"
aria-label="{{ 'product_page.gallery' | t }}"
>
<span></span>
</div>
{% endif %}
{% endif %}
</div>
@@ -428,7 +469,10 @@
}}
<span class="product__compare-label product__compare-label--after">{{ 'product_page.after' | t }}</span>
</div>
<img class="product__compare-mark" src="{{ 'logo-seasons.svg' | asset_url }}" alt="" width="280" height="80">
<img class="product__compare-mark" src="{{ 'logo-seasons.svg' | asset_url }}" alt="" width="280" height="80"
loading="lazy"
decoding="async"
>
</section>
{% endif %}
@@ -458,90 +502,87 @@
</section>
{% if show_reviews %}
<section class="product__reviews" id="product-reviews">
<h2 class="product__block-title">{{ 'product_page.reviews' | t }}</h2>
{% if rating_count > 0 %}
<div class="product__summary">
<div>
<p class="product__score">{{ 'product_page.rating_of' | t: rating: rating_value }}</p>
<p class="product__based">{{ 'product_page.based_on' | t: count: rating_count }}</p>
</div>
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > rating_value %} is-off{% endif %}" width="18" height="18" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
</div>
{% assign rating_exact = product.metafields.reviews.rating.value.rating | default: rating_value | round: 2 %}
{% assign rating_text = rating_exact | append: '' %}
{% unless rating_text contains '.' %}
{% assign rating_text = rating_text | append: '.00' %}
{% else %}
{% assign rating_decimals = rating_text | split: '.' | last %}
{% if rating_decimals.size == 1 %}
{% assign rating_text = rating_text | append: '0' %}
{% endif %}
{% endunless %}
<section
class="product__reviews"
id="product-reviews"
data-product-reviews
data-product-id="{{ product.id }}"
data-product-handle="{{ product.handle | escape }}"
data-shop="{{ shop.permanent_domain | escape }}"
data-reviews-shop="{{ section.settings.reviews_shop | escape }}"
data-reviews-storefront="{{ section.settings.reviews_storefront | escape }}"
>
<div class="product__reviews-head">
<h2 class="product__reviews-title">{{ 'product_page.reviews' | t }}</h2>
<div class="product__reviews-bar">
{% if rating_count > 0 %}
<div class="product__summary">
<div class="product__summary-score">
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > rating_value %} is-off{% endif %}" width="16" height="16" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
<p class="product__score">{{ 'product_page.rating_of' | t: rating: rating_text }}</p>
</div>
<p class="product__based">{{ 'product_page.based_on' | t: count: rating_count }}</p>
</div>
<span class="product__reviews-rule" aria-hidden="true"></span>
{% endif %}
<button
class="product__write"
type="button"
data-write-review
aria-expanded="false"
aria-controls="product-review-form"
>
{{ 'product_page.write_review' | t }}
</button>
</div>
</div>
{% if review_items != blank %}
<div data-review-list>
{% for review in review_items %}
{% liquid
assign review_field = review.texto | default: review.text | default: review.comentario | default: review.resena
assign review_author = review.autor.value | default: review.autor | default: review.author.value | default: review.nombre.value | default: review.name.value
assign review_stars = review.calificacion.value | default: review.rating.value | default: 5 | round
assign review_photo = review.foto.value | default: review.image.value | default: review.avatar.value
assign review_image = blank
if review_photo.preview_image != blank
assign review_image = review_photo.preview_image
elsif review_photo.width != blank
assign review_image = review_photo
endif
if review_author == blank
assign review_author = 'product_page.reviewer' | t
endif
assign review_initial = review_author | slice: 0, 1 | upcase
assign review_plain = ''
if review.id == blank
assign review_plain = review | strip
endif
%}
{% if review_field != blank or review_plain != blank %}
<article class="product__review" data-review {% if forloop.index > 3 %}hidden{% endif %}>
{% if review_image %}
{{ review_image | image_url: width: 120 | image_tag: class: 'product__avatar', alt: review_author, loading: 'lazy' }}
{% else %}
<span class="product__avatar" aria-hidden="true">{{ review_initial | escape }}</span>
{% endif %}
<div>
<p class="product__review-name">{{ review_author | escape }}</p>
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > review_stars %} is-off{% endif %}" width="14" height="14" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
<div class="product__review-text">
{% if review_field != blank %}
{{ review_field | metafield_tag }}
{% else %}
{{ review_plain | escape | newline_to_br }}
{% endif %}
</div>
</div>
</article>
{% endif %}
<form
id="product-review-form"
class="product__write-form"
data-sent="{{ 'product_page.review_sent' | t | escape }}"
data-error="{{ 'product_page.review_error' | t | escape }}"
>
<p class="product__write-success" role="status" hidden></p>
<p class="product__write-error" role="alert" hidden></p>
<label class="product__write-label" for="ReviewName">{{ 'product_page.review_name' | t }}</label>
<input id="ReviewName" class="product__write-input" type="text" name="reviewer_name" autocomplete="name" required>
<label class="product__write-label" for="ReviewEmail">{{ 'product_page.review_email' | t }}</label>
<input id="ReviewEmail" class="product__write-input" type="email" name="reviewer_email" autocomplete="email" required>
<fieldset class="product__write-stars">
<legend class="product__write-label">{{ 'product_page.review_rating' | t }}</legend>
{% for star in (1..5) %}
<label>
<input type="radio" name="score" value="{{ star }}" {% if star == 5 %}checked{% endif %}>
<span>{{ star }}</span>
</label>
{% endfor %}
</div>
{% if review_count > 3 %}
<nav class="product__pager" data-review-pager aria-label="{{ 'product_page.reviews_label' | t }}">
{% for page_number in (1..review_pages) %}
<button type="button" data-review-page="{{ forloop.index0 }}" {% if forloop.first %}class="is-current"{% endif %} aria-label="{{ 'collection_page.page' | t: page: forloop.index }}">
{{ forloop.index }}
</button>
{% endfor %}
<button type="button" data-review-next aria-label="{{ 'collection_page.next_page' | t }}">
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
<path d="M5 2.5l4.5 4.5L5 11.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</nav>
{% endif %}
{% endif %}
</fieldset>
<label class="product__write-label" for="ReviewBody">{{ 'product_page.review_body' | t }}</label>
<textarea id="ReviewBody" class="product__write-input" name="review_body" rows="4" required></textarea>
<button class="product__write" type="submit">{{ 'product_page.review_submit' | t }}</button>
</form>
<div class="product__review-list" data-review-list></div>
<button class="product__more" type="button" data-review-more hidden>
{{ 'product_page.view_more' | t }}
</button>
</section>
{% endif %}
</article>
@@ -594,6 +635,20 @@
gap: 10px;
}
.product__thumb {
min-width: 0;
}
.product__thumb--main,
.product__gallery-progress {
display: none;
}
.product__thumbs img {
-webkit-user-drag: none;
user-select: none;
}
.product__badges {
display: flex;
flex-wrap: wrap;
@@ -780,7 +835,7 @@
.product__add,
.product__buy,
.product__favorite,
.product__pager button {
.product__more {
font-family: inherit;
}
@@ -999,11 +1054,138 @@
pointer-events: none;
}
.product__also,
.product__reviews {
.product__also {
margin-top: 72px;
}
.product:has(.product__reviews) {
padding-bottom: 0;
}
.product__reviews {
margin: 72px -50px 0;
padding: 100px 100px 80px;
background: linear-gradient(180deg, #f9f9fa 0%, #e8fff9 100%);
}
.product__reviews-head {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.product__reviews-title {
margin: 0 0 60px;
font-size: 30px;
font-weight: 500;
line-height: 1.2;
text-transform: uppercase;
}
.product__reviews-bar {
display: flex;
align-items: center;
justify-content: center;
gap: 100px;
}
.product__reviews-head .product__summary {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
margin: 0;
}
.product__summary-score {
display: flex;
align-items: center;
gap: 8px;
}
.product__reviews .product__stars {
gap: 1px;
}
.product__reviews-head .product__score,
.product__reviews-head .product__based {
margin: 0;
color: #111;
font-size: 16px;
font-weight: 300;
}
.product__reviews-rule {
flex: none;
width: 1px;
height: 70px;
background: #d9d9d9;
}
.product__write {
flex: none;
width: 326px;
height: 50px;
padding: 0 28px;
border: 0;
border-radius: 60px;
background: #9dd6c7;
color: #111;
font: inherit;
font-size: 16px;
font-weight: 300;
cursor: pointer;
}
.product__write-form {
display: none;
max-width: 640px;
margin: 20px 0 8px;
gap: 8px;
}
.product__write-form.is-open {
display: grid;
}
.product__write-label {
margin-top: 8px;
font-size: 14px;
font-weight: 500;
}
.product__write-input {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
border: 1px solid #e5e5e5;
border-radius: 10px;
font: inherit;
font-weight: 300;
}
.product__write-stars {
display: flex;
gap: 8px;
margin: 0;
padding: 0;
border: 0;
}
.product__write-stars label {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 14px;
font-weight: 300;
}
.product__write-success {
margin: 0;
font-size: 16px;
font-weight: 300;
}
.product__score {
margin: 0;
font-size: 28px;
@@ -1016,68 +1198,68 @@
margin-bottom: 8px;
}
.product__review-list {
margin: 40px 140px 0;
}
.product__review {
display: grid;
grid-template-columns: 56px minmax(0, 1fr);
gap: 16px;
padding: 20px 0;
border-top: 1px solid #ececec;
display: flex;
flex-direction: column;
gap: 10px;
padding: 20px 50px;
border-top: 1px solid #e6e6e6;
}
.product__review:last-child {
border-bottom: 1px solid #e6e6e6;
}
.product__review-person {
display: flex;
align-items: center;
gap: 10px;
}
.product__avatar {
display: grid;
width: 56px;
width: 55px;
height: 56px;
place-items: center;
overflow: hidden;
border-radius: 50%;
background: #f3f3f3;
font-weight: 600;
}
img.product__avatar {
display: block;
object-fit: cover;
border: 1px solid #ececec;
border-radius: 10px;
background: #fff;
color: #111;
}
.product__review-name {
margin: 0 0 6px;
margin: 0;
font-size: 16px;
font-weight: 600;
font-weight: 300;
}
.product__review-text {
margin-top: 8px;
font-size: 15px;
margin: 0;
font-size: 16px;
font-weight: 300;
line-height: 1.5;
line-height: 22px;
}
.product__pager {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 28px;
}
.product__pager button {
display: grid;
width: 40px;
height: 40px;
place-items: center;
.product__more {
display: block;
margin: 28px auto 0;
padding: 6px 10px;
border: 0;
border-radius: 50%;
background: transparent;
color: #111;
font-size: 16px;
font-weight: 500;
line-height: 1;
cursor: pointer;
}
.product__pager button.is-current {
background: #111;
color: #fff;
}
.product__pager [data-review-next] {
background: #c9c9c9;
.product__more:disabled {
opacity: 0.5;
cursor: default;
}
.product [hidden] {
@@ -1102,6 +1284,23 @@
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product__reviews {
margin-left: -20px;
margin-right: -20px;
padding-left: 40px;
padding-right: 40px;
}
.product__review-list {
margin-left: 0;
margin-right: 0;
}
.product__review {
padding-left: 0;
padding-right: 0;
}
.product__compare {
height: 360px;
}
@@ -1112,6 +1311,60 @@
padding: 12px 16px 56px;
}
.product__gallery {
gap: 16px;
}
.product__thumbs {
display: flex;
gap: 0;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
scrollbar-width: none;
cursor: grab;
-webkit-overflow-scrolling: touch;
}
.product__thumbs::-webkit-scrollbar {
display: none;
}
.product__thumbs.is-dragging {
cursor: grabbing;
scroll-snap-type: none;
}
.product__gallery:has(.product__thumbs) .product__main {
display: none;
}
.product__thumb {
flex: 0 0 100%;
scroll-snap-align: start;
}
.product__thumb--main {
display: block;
}
.product__gallery-progress {
display: block;
position: relative;
height: 2px;
background: #d9d9d9;
}
.product__gallery-progress span {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: calc(100% / var(--slides));
background: #111;
transform: translateX(0);
}
.product__title {
font-size: 26px;
}
@@ -1142,11 +1395,58 @@
display: none;
}
.product__also,
.product__reviews {
.product__also {
margin-top: 40px;
}
.product__reviews {
margin: 40px -16px 0;
padding: 50px 15px 48px;
}
.product__reviews-title {
margin-bottom: 20px;
font-size: 20px;
}
.product__reviews-bar {
flex-direction: column;
align-items: stretch;
gap: 20px;
}
.product__reviews-rule {
display: none;
}
.product__write {
width: 100%;
height: 35px;
font-size: 12px;
font-weight: 500;
}
.product__review-list {
margin: 30px 0 0;
}
.product__review {
padding: 20px 0;
}
.product__avatar {
width: 45px;
height: 45px;
}
.product__review-name {
font-size: 15px;
}
.product__more {
font-size: 15px;
}
.product__summary {
align-items: flex-start;
flex-direction: column;
@@ -1192,6 +1492,50 @@
applyWish();
const thumbs = root.querySelector('[data-product-thumbs]');
if (thumbs) {
let pointerId = null;
let startX = 0;
let startScroll = 0;
thumbs.addEventListener('pointerdown', (event) => {
if (event.pointerType !== 'mouse' || event.button !== 0) return;
pointerId = event.pointerId;
startX = event.clientX;
startScroll = thumbs.scrollLeft;
thumbs.classList.add('is-dragging');
thumbs.setPointerCapture(pointerId);
});
thumbs.addEventListener('pointermove', (event) => {
if (event.pointerId !== pointerId) return;
thumbs.scrollLeft = startScroll - (event.clientX - startX);
});
const endDrag = (event) => {
if (event.pointerId !== pointerId) return;
pointerId = null;
thumbs.classList.remove('is-dragging');
};
thumbs.addEventListener('pointerup', endDrag);
thumbs.addEventListener('pointercancel', endDrag);
thumbs.addEventListener('dragstart', (event) => event.preventDefault());
const progress = root.querySelector('[data-gallery-progress]');
const mark = progress ? progress.querySelector('span') : null;
const syncProgress = () => {
if (!mark || !thumbs.clientWidth) return;
const slides = thumbs.children.length;
const index = Math.max(0, Math.min(slides - 1, Math.round(thumbs.scrollLeft / thumbs.clientWidth)));
mark.style.transform = 'translateX(' + (index * 100) + '%)';
if (progress) progress.setAttribute('aria-valuenow', String(index + 1));
};
thumbs.addEventListener('scroll', syncProgress, { passive: true });
window.addEventListener('resize', syncProgress);
syncProgress();
}
const form = root.querySelector('.product__form');
const qtyInput = root.querySelector('[data-qty-input]');
@@ -1343,33 +1687,163 @@
}
})();
const reviewNodes = [...root.querySelectorAll('[data-review]')];
const pager = root.querySelector('[data-review-pager]');
if (reviewNodes.length && pager) {
const pageSize = 3;
const pageButtons = [...pager.querySelectorAll('[data-review-page]')];
const showPage = (page) => {
const maxPage = Math.max(0, pageButtons.length - 1);
const nextPage = Math.min(Math.max(0, page), maxPage);
reviewNodes.forEach((node, index) => {
const visible = index >= nextPage * pageSize && index < (nextPage + 1) * pageSize;
node.hidden = !visible;
});
pageButtons.forEach((button) => {
button.classList.toggle('is-current', Number(button.dataset.reviewPage) === nextPage);
});
pager.dataset.page = String(nextPage);
const reviewsRoot = root.querySelector('[data-product-reviews]');
if (reviewsRoot) {
const list = reviewsRoot.querySelector('[data-review-list]');
const more = reviewsRoot.querySelector('[data-review-more]');
const writeButton = reviewsRoot.querySelector('[data-write-review]');
const writeForm = reviewsRoot.querySelector('#product-review-form');
const cache = new Map();
let productExternalId = reviewsRoot.dataset.productId;
let currentPage = 1;
let loading = false;
const reviewsShop = reviewsRoot.dataset.reviewsShop || reviewsRoot.dataset.shop;
const starPath = 'M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z';
const plainText = (html) => {
const parsed = new DOMParser().parseFromString(html || '', 'text/html');
return (parsed.body.textContent || '').trim();
};
pager.addEventListener('click', (event) => {
const pageButton = event.target.closest('[data-review-page]');
if (pageButton) {
showPage(Number(pageButton.dataset.reviewPage));
return;
const renderReviews = (reviews, append) => {
if (!append) list.replaceChildren();
reviews.forEach((review) => {
const rating = Math.max(1, Math.min(5, Math.round(Number(review.rating) || 0)));
const article = document.createElement('article');
article.className = 'product__review';
article.dataset.review = '';
const stars = document.createElement('span');
stars.className = 'product__stars';
stars.setAttribute('aria-label', rating + ' de 5');
for (let star = 1; star <= 5; star += 1) {
const icon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
icon.setAttribute('class', 'product__star' + (star > rating ? ' is-off' : ''));
icon.setAttribute('width', '16');
icon.setAttribute('height', '16');
icon.setAttribute('viewBox', '0 0 14 14');
icon.setAttribute('aria-hidden', 'true');
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
path.setAttribute('d', starPath);
path.setAttribute('fill', 'currentColor');
icon.append(path);
stars.append(icon);
}
const person = document.createElement('div');
person.className = 'product__review-person';
const avatar = document.createElement('span');
avatar.className = 'product__avatar';
avatar.setAttribute('aria-hidden', 'true');
avatar.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="8" r="3.25" stroke="currentColor" stroke-width="1.4"/><path d="M5.2 19.4c1.15-3.15 3.35-4.7 6.8-4.7s5.65 1.55 6.8 4.7" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>';
const name = document.createElement('p');
name.className = 'product__review-name';
name.textContent = review.reviewer_name || 'Cliente';
person.append(avatar, name);
const text = document.createElement('p');
text.className = 'product__review-text';
const body = plainText(review.body_html);
text.textContent = body || review.title || '';
article.append(stars, person, text);
list.append(article);
});
};
const updateMore = (page, total) => {
currentPage = page;
if (!more) return;
more.hidden = page >= total;
};
const loadPage = async (page, append) => {
if (loading || !productExternalId || !reviewsShop) return;
loading = true;
if (more) more.disabled = true;
try {
if (!cache.has(page)) {
const url = new URL('https://judge.me/reviews/reviews_for_widget');
url.searchParams.set('url', reviewsShop);
url.searchParams.set('shop_domain', reviewsShop);
url.searchParams.set('platform', 'shopify');
url.searchParams.set('page', String(page));
url.searchParams.set('per_page', '3');
url.searchParams.set('product_id', String(productExternalId));
const response = await fetch(url);
if (!response.ok) return;
cache.set(page, await response.json());
}
const data = cache.get(page);
renderReviews(data.reviews || [], append);
updateMore(page, data.pagination ? data.pagination.total_pages : 1);
} finally {
loading = false;
if (more) more.disabled = false;
}
if (event.target.closest('[data-review-next]')) {
showPage(Number(pager.dataset.page || 0) + 1);
}
});
};
const resolveProduct = async () => {
if (!reviewsShop || reviewsShop === reviewsRoot.dataset.shop) return;
const storefront = (reviewsRoot.dataset.reviewsStorefront || '').replace(/\/$/, '');
const handle = reviewsRoot.dataset.productHandle;
if (!storefront || !handle) return;
const response = await fetch(storefront + '/products/' + handle + '.js');
if (!response.ok) return;
const product = await response.json();
if (product && product.id) productExternalId = String(product.id);
};
if (more) {
more.addEventListener('click', () => {
loadPage(currentPage + 1, true);
});
}
resolveProduct().then(() => loadPage(1, false)).catch(() => {});
if (writeButton && writeForm) {
const openForm = (open) => {
writeForm.classList.toggle('is-open', open);
writeButton.setAttribute('aria-expanded', open ? 'true' : 'false');
};
writeButton.addEventListener('click', () => {
openForm(!writeForm.classList.contains('is-open'));
});
writeForm.addEventListener('submit', async (event) => {
event.preventDefault();
const success = writeForm.querySelector('.product__write-success');
const error = writeForm.querySelector('.product__write-error');
if (success) success.hidden = true;
if (error) error.hidden = true;
const payload = new URLSearchParams();
payload.set('shop_domain', reviewsShop);
payload.set('platform', 'shopify');
payload.set('id', String(productExternalId || ''));
payload.set('name', writeForm.reviewer_name.value);
payload.set('email', writeForm.reviewer_email.value);
payload.set('rating', (writeForm.querySelector('input[name="score"]:checked') || {}).value || '5');
payload.set('body', writeForm.review_body.value);
try {
const response = await fetch('https://api.judge.me/api/v1/reviews', {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: payload,
});
if (!response.ok) throw new Error('review');
if (success) {
success.hidden = false;
success.textContent = writeForm.dataset.sent || '';
}
writeForm.reset();
} catch (submitError) {
if (error) {
error.hidden = false;
error.textContent = writeForm.dataset.error || '';
}
}
});
}
}
})();
{% endjavascript %}
@@ -1381,6 +1855,20 @@
{
"type": "paragraph",
"content": "t:product_page.metafields"
},
{
"type": "text",
"id": "reviews_shop",
"label": "t:product_page.reviews_shop",
"info": "t:product_page.reviews_shop_info",
"default": "seasons-world.myshopify.com"
},
{
"type": "text",
"id": "reviews_storefront",
"label": "t:product_page.reviews_storefront",
"info": "t:product_page.reviews_storefront_info",
"default": "https://www.seasonsmexico.com"
}
],
"disabled_on": {
+49 -3
View File
@@ -29,7 +29,7 @@
widths: '400, 800, 1200, 1700',
sizes: '(max-width: 1024px) calc(100vw - 30px), 50vw',
class: 'routine__cover-image',
loading: 'eager'
loading: 'lazy'
}}
{% else %}
<img
@@ -38,6 +38,10 @@
alt="{{ heading | escape }}"
width="849"
height="892"
srcset="{{ 'routine-photo-sm.avif' | asset_url }} 700w, {{ 'routine-photo.avif' | asset_url }} 1240w"
sizes="(max-width: 1024px) 95vw, 849px"
loading="lazy"
decoding="async"
>
{% endif %}
<h2 class="routine__heading">{{ heading | escape | newline_to_br }}</h2>
@@ -53,7 +57,21 @@
assign step_title = step_key | t
endif
if block.settings.link != blank
assign step_url = block.settings.link
if step_url == blank
case forloop.index
when 1
assign step_url = '/collections/1-limpia'
when 2
assign step_url = '/collections/2-trata'
when 3
assign step_url = '/collections/3-hidrata'
when 4
assign step_url = '/collections/4-protege-bloqueadores-solares'
endcase
endif
if step_url != blank
assign step_tag = 'a'
else
assign step_tag = 'div'
@@ -76,7 +94,7 @@
class="routine__card"
{{ block.shopify_attributes }}
{% if step_tag == 'a' %}
href="{{ block.settings.link }}"
href="{{ step_url }}"
{% endif %}
>
<span class="routine__media">
@@ -98,6 +116,10 @@
alt="{{ step_title | escape }}"
width="415"
height="436"
srcset="{{ fallback_image | replace: '.avif', '-sm.avif' | asset_url }} 450w, {{ fallback_image | asset_url }} 750w"
sizes="(max-width: 1024px) 245px, 415px"
loading="lazy"
decoding="async"
>
{% endif %}
<span class="routine__shade" aria-hidden="true"></span>
@@ -198,6 +220,12 @@
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.45s ease;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: scale(1.06);
}
.routine__shade {
@@ -205,6 +233,24 @@
inset: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
pointer-events: none;
transition: background 0.35s ease;
}
.routine__card:hover .routine__shade,
.routine__card:focus-visible .routine__shade {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
}
@media (prefers-reduced-motion: reduce) {
.routine__image,
.routine__shade {
transition: none;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: none;
}
}
.routine__caption {
+6 -1
View File
@@ -48,6 +48,8 @@
alt=""
width="317"
height="360"
loading="lazy"
decoding="async"
>
</div>
@@ -92,7 +94,10 @@
>
<button class="signup__submit" type="submit" aria-label="{{ 'signup.submit' | t }}">
<span class="signup__arrow">
<img src="{{ 'signup-arrow.svg' | asset_url }}" alt="" width="20" height="20">
<img src="{{ 'signup-arrow.svg' | asset_url }}" alt="" width="20" height="20"
loading="lazy"
decoding="async"
>
</span>
</button>
</div>
+31 -14
View File
@@ -44,6 +44,7 @@
width="308"
height="301"
loading="lazy"
decoding="async"
>
</div>
<div class="skin-match__blob skin-match__blob--peach" aria-hidden="true">
@@ -53,6 +54,7 @@
width="327"
height="302"
loading="lazy"
decoding="async"
>
</div>
<div class="skin-match__blob skin-match__blob--green" aria-hidden="true">
@@ -62,6 +64,7 @@
width="277"
height="311"
loading="lazy"
decoding="async"
>
</div>
<div class="skin-match__blob skin-match__blob--pink" aria-hidden="true">
@@ -71,6 +74,7 @@
width="338"
height="324"
loading="lazy"
decoding="async"
>
</div>
@@ -100,9 +104,12 @@
class="skin-match__image skin-match__image--serum"
src="{{ 'skin-match-photo-serum.avif' | asset_url }}"
alt="{{ serum_alt | escape }}"
width="1333"
height="2000"
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>
@@ -124,9 +131,12 @@
class="skin-match__image skin-match__image--dropper"
src="{{ 'skin-match-photo-dropper.avif' | asset_url }}"
alt="{{ dropper_alt | escape }}"
width="2498"
height="3123"
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>
@@ -148,9 +158,12 @@
class="skin-match__image skin-match__image--cheek"
src="{{ 'skin-match-photo-cheek.avif' | asset_url }}"
alt="{{ cheek_alt | escape }}"
width="3043"
height="3043"
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>
@@ -172,9 +185,12 @@
class="skin-match__image skin-match__image--jar"
src="{{ 'skin-match-photo-jar.avif' | asset_url }}"
alt="{{ jar_alt | escape }}"
width="4096"
height="2731"
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>
@@ -189,7 +205,9 @@
{{ button_label | escape }}
</a>
{% else %}
<span class="skin-match__button">{{ button_label | escape }}</span>
<button class="skin-match__button" type="button" data-open-aitana>
{{ button_label | escape }}
</button>
{% endif %}
</div>
</div>
@@ -375,25 +393,24 @@
justify-content: center;
margin: 50px auto 0;
padding: 15px;
border: 0;
border-radius: 60px;
background: #9dd6c7;
color: #000;
font-family: inherit;
font-size: 16px;
font-weight: 300;
line-height: normal;
text-align: center;
text-decoration: none;
}
a.skin-match__button {
cursor: pointer;
}
a.skin-match__button:hover {
.skin-match__button:hover {
filter: brightness(0.96);
}
a.skin-match__button:focus-visible {
.skin-match__button:focus-visible {
outline: 2px solid #000;
outline-offset: 2px;
}
+8 -3
View File
@@ -25,6 +25,8 @@
alt=""
width="434"
height="486"
loading="lazy"
decoding="async"
>
<div class="testimonials__header">
@@ -45,7 +47,7 @@
{% unless forloop.first %}hidden{% endunless %}
>
<div class="testimonials__meta">
<div class="testimonials__stars" aria-label="{{ 'testimonials.rating' | t: rating: block.settings.rating }}">
<div class="testimonials__stars" role="img" aria-label="{{ 'testimonials.rating' | t: rating: block.settings.rating }}">
{% for index in (1..5) %}
<span class="testimonials__star{% if index > block.settings.rating %} is-off{% endif %}" aria-hidden="true">
<svg width="15" height="15" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -152,7 +154,10 @@
{% unless variant.available %}disabled{% endunless %}
aria-label="{{ 'testimonials.add_to_cart' | t: product: slide_product.title }}"
>
<img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25">
<img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25"
loading="lazy"
decoding="async"
>
</button>
<button
class="testimonials__buy"
@@ -463,7 +468,7 @@
}
.testimonials__compare {
color: #808181;
color: #6e6f6f;
font-weight: 400;
}