344 lines
17 KiB
Plaintext
344 lines
17 KiB
Plaintext
{% 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 %}
|