Alejandro #2

Merged
alcastromol merged 2 commits from alejandro into master 2026-10-09 23:04:18 -06:00
145 changed files with 12578 additions and 6354 deletions
+2
View File
@@ -8,6 +8,8 @@
ehthumbs.db
Thumbs.db
node_modules/
src/.generated-tailwind.css
src/.tailwind.min.css
# Shopify CLI files
.shopify/
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 22 KiB

+78
View File
@@ -121,3 +121,81 @@ body {
opacity: 0;
}
}
/* Hero paints before the bundled stylesheet arrives. */
.hero {
position: relative;
width: 100%;
min-height: 650px;
overflow: hidden;
color: #fff;
background: #c8c2bc;
}
.hero__media {
position: absolute;
inset: 0;
}
.hero__poster,
.hero__still,
.hero__poster-image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
max-width: none;
object-fit: cover;
object-position: center center;
}
.hero__content {
position: relative;
z-index: 2;
display: flex;
min-height: 650px;
padding: 104px 160px 80px 100px;
}
.hero__title {
margin: 0;
color: #fff;
font-family: Archivo, sans-serif;
font-size: 70px;
font-weight: 500;
line-height: 69px;
text-transform: uppercase;
}
.hero__title-line {
display: block;
}
.hero__title-line--light {
font-weight: 300;
}
.hero__title-line--medium {
font-weight: 500;
}
@media (max-width: 1023px) {
.hero,
.hero__content {
min-height: 550px;
}
.hero__poster-image {
object-position: center 22%;
}
.hero__content {
align-items: flex-end;
padding: 24px 20px 15px;
}
.hero__title {
font-size: 35px;
line-height: 40px;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File diff suppressed because one or more lines are too long
-20
View File
@@ -22,27 +22,7 @@
{% content_for 'blocks' %}
</div>
{% stylesheet %}
.group {
display: flex;
flex-wrap: nowrap;
overflow: hidden;
width: 100%;
}
.group--horizontal {
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0 var(--padding);
}
.group--vertical {
flex-direction: column;
align-items: var(--alignment);
padding: var(--padding) 0;
}
{% endstylesheet %}
{% schema %}
{
+1 -12
View File
@@ -13,18 +13,7 @@
{{ block.settings.text }}
</div>
{% stylesheet %}
.text {
text-align: var(--text-align);
}
.text--title {
font-size: 2rem;
font-weight: 700;
}
.text--subtitle {
font-size: 1.5rem;
}
{% endstylesheet %}
{% schema %}
{
+1 -12
View File
@@ -1,12 +1 @@
/*
* ------------------------------------------------------------
* 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.
* ------------------------------------------------------------
*/
{
"current": {}
}
{"current":{}}
+19 -1
View File
@@ -64,5 +64,23 @@
"default": 4
}
]
},
{
"name": "SEO",
"settings": [
{
"type": "image_picker",
"id": "favicon",
"label": "Favicon",
"info": "PNG cuadrado, mínimo 192 × 192 px. Vacío = ícono Seasons por defecto."
},
{
"type": "textarea",
"id": "default_meta_description",
"label": "Meta descripción por defecto",
"default": "Skincare mexicano con ingredientes naturales: protectores solares, sérums, hidratantes y limpiadores para cada tipo de piel. Encuentra tu rutina Seasons.",
"info": "Se usa en páginas sin descripción propia (inicio, colecciones sin descripción). Máx. ~155 caracteres."
}
]
}
]
]
+1 -2
View File
@@ -4,8 +4,7 @@
{% # Inlined CSS Variables %}
{% render 'css-variables' %}
{% # Load and preload the critical CSS %}
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }}
{% render 'tailwind-css' %}
{% # Social, title, etc. %}
{% render 'meta-tags' %}
+9 -4
View File
@@ -1,19 +1,23 @@
<!doctype html>
<html lang="{{ request.locale.iso_code }}" style="max-width:100%;overflow-x:hidden">
<html lang="{{ request.locale.iso_code }}" style="max-width:100%;overflow-x:clip">
<head>
{% # Inlined CSS Variables %}
{% render 'css-variables' %}
{% # Load and preload the critical CSS %}
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }}
{% # Tailwind v3 bundle: reset, utilities, and component CSS, minified %}
{% render 'tailwind-css' %}
{% render 'font-faces' %}
{{ 'tailwind.css' | asset_url | stylesheet_tag }}
{% # Social, title, etc. %}
{% render 'meta-tags' %}
{% capture shopify_header %}{{ content_for_header }}{% endcapture %}
{% render 'delay-header-scripts', html: shopify_header %}
{% # WhatsApp coupon widget host: warm up the connection early %}
{%- unless request.design_mode %}
<link rel="preconnect" href="https://bpuemzaabpwmxvfcorjc.supabase.co" crossorigin>
<link rel="dns-prefetch" href="https://bpuemzaabpwmxvfcorjc.supabase.co">
{%- endunless %}
</head>
<body>
@@ -33,5 +37,6 @@
<script type="rocketlazyloadscript" src="{{ 'anime.min.js' | asset_url }}" defer></script>
<script type="rocketlazyloadscript" src="{{ 'scroll-motion.js' | asset_url }}" defer></script>
{% endif %}
{% render 'whatsapp-coupon-widget' %}
</body>
</html>
+175 -31
View File
@@ -14,19 +14,97 @@
"back_to_shopping": "Back to shopping"
},
"blog": {
"article_comments": "Comments",
"article_metadata_html": "{{ date }} by {{ author }}",
"comment_form_body": "Comment",
"comment_form_email": "Email",
"comment_form_name": "Name",
"comment_form_submit": "Post",
"comment_form_title": "Add a comment"
"all": "Todas",
"article_comments": "Comentarios",
"article_metadata_html": "{{ date }} por {{ author }}",
"back": "Volver a {{ blog }}",
"breadcrumb": "Migas de pan",
"comment_form_body": "Comentario",
"comment_form_email": "Correo electrónico",
"comment_form_name": "Nombre",
"comment_form_submit": "Publicar",
"comment_form_title": "Escribe un comentario",
"comment_success": "Tu comentario se publicó.",
"copied": "Enlace copiado",
"copy_link": "Copiar enlace",
"empty": "No hay artículos por ahora.",
"home": "Inicio",
"next": "Siguiente",
"page": "Página {{ page }}",
"pagination": "Paginación",
"previous": "Anterior",
"read_more": "— Leer más",
"related": "También te puede interesar",
"share": "Compartir",
"view_all": "Ver todo"
},
"about": {
"hero_title": "Nuestro propósito",
"hero_line_1": "Acompañar a las personas a",
"hero_emphasis_1": "reconocerse, sentirse",
"hero_and": "y",
"hero_emphasis_2": "celebrarse",
"hero_line_3": "en cada una de sus temporadas.",
"play": "Reproducir video",
"pillars_title": "Creamos skincare hecho en México con estándares globales.",
"pillar_1_title": "Inspirados y desarrollados para piel latina",
"pillar_1_text": "Creamos productos pensados para las necesidades reales de la piel latina, considerando su diversidad de tonos, climas y estilos de vida.",
"pillar_2_title": "Unimos ciencia con ingredientes naturales",
"pillar_2_text": "Formulamos con activos respaldados por la ciencia, potenciados con ingredientes naturales que maximizan resultados sin comprometer la salud de la piel. Es el equilibrio perfecto entre innovación y naturaleza.",
"pillar_3_title": "Skinmalismo con productos multipropósito",
"pillar_3_text": "Creemos en menos pasos, mejores resultados: desarrollamos productos multifuncionales que simplifican la rutina sin sacrificar eficacia.",
"pillar_4_title": "Rutina de 4 pasos",
"pillar_4_text": "Estructuramos el cuidado de la piel en una rutina clara de 4 pasos, fácil de seguir y adaptable a cualquier estilo de vida. Esto permite constancia, mejores resultados y una experiencia sin complicaciones.",
"values_title": "Lo que somos",
"value_1": "Textura ligera",
"value_2": "Cruelty-free",
"value_3": "Love your skin",
"facts_title": "Sobre",
"facts_brand": "Seasons",
"facts_intro": "Seasons (Seasons Love Your Skin) es una marca mexicana de dermocosmética fundada en 2012 en Guadalajara, Jalisco. Con desarrollo de fórmulas y manufactura propias en Zapopan, Jalisco, creamos skincare hecho en México, vegano y cruelty-free, que une ciencia dermatológica con ingredientes naturales para la piel latina.",
"fact_1_title": "Fundación",
"fact_1_text": "Marca mexicana fundada en 2012 en Guadalajara, Jalisco, México.",
"fact_2_title": "Hecho en México",
"fact_2_text": "Desarrollo de fórmulas y manufactura propias en Zapopan, Jalisco. Productos hechos en México.",
"fact_3_title": "Veganas y cruelty-free",
"fact_3_text": "Fórmulas 100% veganas (sin ingredientes de origen animal) y libres de crueldad animal (no testeadas en animales).",
"fact_4_title": "Ciencia + naturaleza",
"fact_4_text": "Unimos la ciencia dermatológica con ingredientes naturales y activos de alta eficacia para las necesidades reales de la piel latina.",
"fact_5_title": "Activos clave",
"fact_5_text": "Niacinamida, ácido hialurónico, vitamina C, vitamina E, retinol, ácido salicílico, coenzima Q10 y péptidos, con extractos botánicos (manzana verde, nopal, té verde, aloe, avena y más).",
"fact_6_title": "Portafolio",
"fact_6_text": "Más de 30 productos organizados por necesidad de piel, bajo un sistema de 4 pasos: 01. Limpia · 02. Trata · 03. Hidrata · 04. Protege.",
"fact_7_title": "Certificación sanitaria",
"fact_7_text": "Aviso de Funcionamiento COFEPRIS 2314105019X00941 · Aviso de Publicidad COFEPRIS 2314102002D00053. Sellos de vegano, cruelty-free y envase reciclable.",
"fact_8_title": "Dónde encontrarnos",
"fact_8_text": "Tienda oficial seasonsmexico.com (con Glow Army), Liverpool, Amazon, Mercado Libre y TikTok Shop, además de una red nacional de distribuidoras, cosmetólogas y spas.",
"press": "Reconocida en medios como Grazia México y Latinoamérica como marca de belleza mexicana cruelty-free.",
"stores_title": "Encuentra productos Seasons cerca de ti.",
"stores_text": "Estás a un clic de tu rutina, en tu marketplace favorito o en tiendas físicas.",
"stores_button": "Consultar ubicaciones",
"faq_title": "Preguntas frecuentes sobre Seasons",
"faq_1_q": "¿Dónde se fabrica Seasons?",
"faq_1_a": "En instalaciones de manufactura propias en Zapopan, Jalisco, México. Por eso nuestros productos son hechos en México, con control de la fórmula y la calidad de principio a fin.",
"faq_2_q": "¿Los productos son veganos y cruelty-free?",
"faq_2_a": "Sí. Nuestras fórmulas son 100% veganas (sin ingredientes de origen animal) y libres de crueldad animal: no se testean en animales.",
"faq_3_q": "¿Seasons cuenta con registro ante COFEPRIS?",
"faq_3_a": "Sí. Contamos con Aviso de Funcionamiento COFEPRIS 2314105019X00941 y Aviso de Publicidad COFEPRIS 2314102002D00053, requeridos para la comercialización de nuestros productos.",
"faq_4_q": "¿Para quién están pensadas las fórmulas?",
"faq_4_a": "Para la piel latina. Unimos ciencia dermatológica con ingredientes naturales, considerando la diversidad de tonos, climas y estilos de vida de nuestra piel.",
"faq_5_q": "¿Cómo es la rutina Seasons?",
"faq_5_a": "Un sistema sencillo de 4 pasos: 01. Limpia, 02. Trata, 03. Hidrata y 04. Protege, con más de 30 productos organizados por necesidad de piel.",
"faq_6_q": "¿Dónde puedo comprar Seasons?",
"faq_6_a": "En nuestra tienda oficial seasonsmexico.com (con el programa de lealtad Glow Army), en Liverpool, y en Amazon, Mercado Libre y TikTok Shop. También a través de nuestra red de distribuidoras, cosmetólogas y spas.",
"join_title": "Crezcamos juntos",
"join_text": "Buscamos socios que compartan nuestra visión de bienestar y cuidado consciente. Únete a Seasons y construyamos juntos una experiencia de valor para más personas.",
"join_button": "Distribuidores"
},
"cart": {
"checkout": "Checkout",
"title": "Cart",
"update": "Update",
"remove": "Remove"
"checkout": "Finalizar pedido",
"title": "Su carrito",
"update": "Actualizar",
"remove": "Eliminar",
"continue": "Seguir comprando"
},
"cart_drawer": {
"recommendations": "También te recomiendo",
@@ -38,6 +116,7 @@
"unlocked": "Ya tienes envío gratis",
"shipping_progress": "Progreso hacia el envío gratis",
"add": "Agregar al carrito",
"add_short": "Agregar",
"subtotal": "Subtotal",
"taxes": "Impuestos incluidos. Descuentos y envío calculados en pantalla de pago.",
"checkout": "Finalizar pedido",
@@ -59,7 +138,7 @@
"title": "Collections"
},
"product_page": {
"add": "Añadir a la bolsa de compra",
"add": "Añadir a carrito",
"buy": "Comprar ahora",
"favorite": "Favoritos",
"options": "Opciones: {{ option }}",
@@ -83,13 +162,26 @@
"before": "Antes",
"after": "Después",
"reviewer": "Cliente",
"gallery": "Imágenes del producto",
"write_review": "Escribir Reseña",
"view_more": "Ver más",
"review_name": "Nombre",
"review_email": "Correo electrónico",
"review_rating": "Calificación",
"review_body": "Tu reseña",
"review_submit": "Publicar reseña",
"review_sent": "Gracias, recibimos tu reseña.",
"review_error": "No pudimos enviar tu reseña. Inténtalo de nuevo.",
"reviews_label": "Reseñas",
"decrease": "Reducir cantidad",
"increase": "Aumentar cantidad"
},
"collection_page": {
"filters": "Filtros",
"close_filters": "Cerrar filtros",
"sort": "Ordenar por: {{ sort }}",
"sort_title": "Ordenar por",
"close_sort": "Cerrar orden",
"apply": "Aplicar",
"clear": "Limpiar",
"no_filters": "Esta colección no tiene filtros.",
@@ -117,26 +209,37 @@
"enter": "Enter"
},
"search": {
"title": "Search",
"placeholder": "Search articles, pages, or products",
"submit": "Search",
"no_results_html": "No results found for {{ terms }}",
"results_for_html": "{{ count }} results found for {{ terms }}"
"title": "Buscar",
"placeholder": "Busca tu producto seasons favorito",
"submit": "Buscar",
"no_results_html": "No hay resultados para {{ terms }}",
"results_for_html": "{{ count }} resultados para {{ terms }}"
},
"header": {
"menu_open": "Abrir menú",
"menu_close": "Cerrar menú",
"search_label": "Buscar",
"search_placeholder": "Busca tu producto seasons favorito",
"search_empty": "No hay productos para “{{ terms }}”",
"search_view_all": "Ver todos los resultados",
"search_status": {
"one": "{{ count }} producto",
"other": "{{ count }} productos"
},
"account": "Cuenta",
"wishlist": "Favoritos",
"wishlist_count": "Favoritos, {{ count }} productos",
"wishlist_empty": "Aún no tienes favoritos.",
"wishlist_remove": "Quitar",
"wishlist_close": "Cerrar favoritos",
"cart_count": "Carrito, {{ count }} productos",
"promo": "Cambia tu piel ¡hoy!",
"submenu": "Abrir {{ menu_title }}",
"links": {
"categories": "Categorías",
"routine": "Por rutina",
"skin_type": "Por tipo de piel",
"concern": "Por preocupación",
"routine": "Rutina",
"skin_type": "Tipo de piel",
"concern": "Preocupación",
"sunscreen": "Protección Solar",
"favorites": "Los favoritos",
"kits": "Kits y Rutinas",
@@ -155,7 +258,7 @@
"treat": "2. Trata",
"hydrate": "3. Hidrata",
"protect": "4. Protege",
"kits": "Kits y rutinas completas",
"kits": "Kits y rutinas",
"combination": "Mixta-grasa",
"oily": "Grasa",
"dry": "Seca",
@@ -198,19 +301,14 @@
},
"seasons": {
"about": "Quiénes somos",
"blog": "Blog Seasons",
"reviews": "Reseñas",
"blog": "Blog",
"stores": "Puntos de venta"
},
"shop": {
"all": "Todos los productos",
"bestsellers": "Más vendidos",
"new": "Nuevos lanzamientos",
"kits": "Kits y rutinas",
"previous": "Línea anterior"
"kits": "Kits y rutinas"
},
"routine": {
"ideal": "Tu rutina ideal",
"oily": "Piel grasa",
"combination": "Piel mixta",
"dry": "Piel seca",
@@ -218,7 +316,6 @@
"kits": "Kits y rutinas"
},
"help": {
"faq": "Preguntas frecuentes",
"shipping": "Envíos",
"returns": "Devoluciones",
"billing": "Facturación",
@@ -228,8 +325,7 @@
"community": {
"experts": "Seasons Experts",
"distributor": "Ser distribuidor",
"glow_army": "Glow Army",
"videos": "Videos y tips"
"glow_army": "Glow Army"
},
"newsletter": {
"heading": "Obtén un descuento sorpresa\nen tu primera compra",
@@ -309,6 +405,54 @@
"success": "Gracias por registrarte.",
"error": "No pudimos registrarte. Intenta de nuevo."
},
"glow_army": {
"heading": "Glow Army",
"text": "Nuestro espacio exclusivo dónde recompensamos que cuides tu carita. Cada compra que hagas te acerca a recompensas increíbles.",
"join": "Unirse",
"points": "Ver mis puntos",
"how": "Cómo funciona",
"earn": "Formas de ganar puntos",
"redeem": "Formas de canjear puntos",
"referral_heading": "Da 10% de descuento, recibe 10% de descuento",
"referral_text": "Únete al programa de referidos y reclama tus recompensas",
"referral_button": "Únete ahora",
"steps": {
"one_title": "Crear una cuenta",
"one_text": "Conviértete en miembro para recibir recompensas",
"two_title": "Ganar puntos",
"two_text": "Completa estas actividades para acumular puntos",
"three_title": "Canjear puntos",
"three_text": "Intercambia puntos por descuentos emocionantes"
},
"earn_items": {
"order_title": "Completar un pedido",
"order_text": "Gana 1 punto por cada $1",
"birthday_title": "Feliz cumpleaños",
"birthday_text": "200 puntos",
"review_title": "Dejar una reseña",
"review_text": "100 puntos",
"profile_title": "Completa tu perfil",
"profile_text": "50 puntos"
},
"rewards": {
"rate_title": "Canjea tus puntos (20 por cada $1)",
"rate_text": "20 puntos = $1",
"off_50_title": "$50 off",
"off_50_text": "1,000 puntos",
"balm_title": "Bálsamo labial gratis",
"balm_text": "1,200 puntos",
"off_100_title": "$100 off",
"off_100_text": "2,000 puntos",
"toner_title": "Tónico té verde gratis",
"toner_text": "3,000 puntos",
"off_200_title": "$200 off",
"off_200_text": "4,000 puntos",
"off_300_title": "$300 off",
"off_300_text": "6,000 puntos",
"sunscreen_title": "Bloqueador solar manzana gratis",
"sunscreen_text": "10,500 puntos"
}
},
"skin_match": {
"heading": "¿Qué necesita tu piel hoy?",
"subheading": "Encuentra tu match de cuidado facial con Seasons.",
+52 -4
View File
@@ -88,7 +88,8 @@
"pills_menu": "Highlighted links",
"utility_menu": "Utility links",
"promo_text": "Promo text",
"promo_link": "Promo link"
"promo_link": "Promo link",
"predictive": "Predictive search"
},
"hero": {
"name": "Hero",
@@ -156,7 +157,7 @@
"poster": "Cover image",
"poster_info": "Shown beside the slider, and used as the video poster. On mobile it sits above the slider.",
"video": "Video",
"video_info": "Optional. The cover stays on screen until the block is near the viewport, then the video file loads.",
"video_info": "Leave empty to use the theme video. The cover stays on screen until the block is near the viewport, then the video file loads.",
"promo_link": "Image link",
"promo_link_info": "Used when no video is set."
},
@@ -204,7 +205,7 @@
"poster": "Cover image",
"poster_info": "Shown until this clip is in the center. Leave empty to use the theme image.",
"video": "Video",
"video_info": "Plays only while this clip is centered. The file loads at that moment.",
"video_info": "Leave empty to use the theme video for this position. Plays only while this clip is centered. The file loads at that moment.",
"product_1": "Product 1",
"product_2": "Product 2"
},
@@ -229,9 +230,41 @@
"rating_label": "Rating",
"product": "Product"
},
"glow_army": {
"name": "Glow Army",
"heading": "Heading",
"text": "Text",
"join": "Join button",
"points": "Points button",
"join_link": "Join link",
"points_link": "Points link",
"how": "How it works heading",
"earn": "Earn heading",
"redeem": "Redeem heading",
"referral_heading": "Referral heading",
"referral_text": "Referral text",
"referral_button": "Referral button",
"referral_link": "Referral link",
"step": "Step",
"number": "Number",
"earn_item": "Way to earn",
"icon": "Icon",
"icons": {
"order": "Order",
"birthday": "Birthday",
"review": "Review",
"profile": "Profile"
},
"reward": "Reward",
"image": "Image"
},
"product_page": {
"name": "Product",
"metafields": "Optional product custom fields: custom.subtitulo, custom.tipo_de_piel, custom.descripcion_corta, custom.como_aplicarlo, custom.ingredientes, custom.antes, custom.despues, custom.rutina, custom.llevate, custom.resenas."
"metafields": "Product content uses custom metafields (subtitulo, tipo de piel, descripcion corta, ingredientes, como aplicarlo) and Judge.me reviews.",
"reviews_shop": "Judge.me shop domain",
"reviews_shop_info": "Shop that stores the reviews, for example seasons-world.myshopify.com. When it matches this store, the product id is used directly.",
"reviews_storefront": "Storefront used to match products",
"reviews_storefront_info": "Used only when the Judge.me shop is different from this store. The product is matched by handle."
},
"collection_page": {
"name": "Collection",
@@ -239,6 +272,21 @@
"metafields": "Banner custom fields on the collection: custom.banner_tipo (titulo, listado or ambos), custom.banner_imagen, custom.banner_titulo, custom.banner_texto, custom.banner_listado, custom.banner_enlace.",
"recent_name": "Recently viewed"
},
"about_section": {
"name": "About",
"hero_video": "Hero video",
"pillar_1": "Pillar image 1",
"pillar_2": "Pillar image 2",
"pillar_3": "Pillar image 3",
"pillar_4": "Pillar image 4",
"join_image": "Distributors image"
},
"blog_section": {
"show_tags": "Show tags",
"show_author": "Show author",
"show_share": "Show share links",
"show_related": "Show related articles"
},
"cart_drawer": {
"name": "Cart drawer",
"free_shipping": "Free shipping from",
+2 -2
View File
@@ -2,8 +2,8 @@
"name": "season",
"private": true,
"scripts": {
"dev:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --watch",
"build:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --minify"
"dev:css": "node scripts/build-css.js --watch",
"build:css": "node scripts/build-css.js"
},
"devDependencies": {
"tailwindcss": "^3.4.17"
+106
View File
@@ -0,0 +1,106 @@
const fs = require('fs');
const path = require('path');
const { spawnSync } = require('child_process');
const root = path.join(__dirname, '..');
const entry = path.join(root, 'src', '.generated-tailwind.css');
const componentsFile = path.join(root, 'src', 'components.css');
const tailwindSource = path.join(root, 'src', 'tailwind.css');
const criticalFile = path.join(root, 'assets', 'critical.css');
const output = path.join(root, 'src', '.tailwind.min.css');
const snippetFile = path.join(root, 'snippets', 'tailwind-css.liquid');
const publicCss = path.join(root, 'assets', 'tailwind.css');
const cli = path.join(root, 'node_modules', 'tailwindcss', 'lib', 'cli.js');
const stylesheetPattern = /\{%-?\s*stylesheet\s*-?%\}[\t ]*\r?\n?([\s\S]*?)\{%-?\s*endstylesheet\s*-?%\}[\t ]*\r?\n?/g;
function walk(dir, files) {
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
if (entry.name === 'node_modules' || entry.name === '.git') continue;
const full = path.join(dir, entry.name);
if (entry.isDirectory()) walk(full, files);
else if (entry.name.endsWith('.liquid')) files.push(full);
}
return files;
}
function extractStylesheets() {
const files = walk(root, []);
const chunks = [];
for (const file of files) {
const text = fs.readFileSync(file, 'utf8');
if (!text.includes('stylesheet')) continue;
const parts = [];
const next = text.replace(stylesheetPattern, (_, css) => {
parts.push(css.trim());
return '\n';
});
if (!parts.length) continue;
const relative = path.relative(root, file).replace(/\\/g, '/');
chunks.push(`/* ${relative} */\n${parts.join('\n\n')}`);
fs.writeFileSync(file, next.replace(/\n{3,}/g, '\n\n'));
}
if (!chunks.length) return false;
const banner = '/* Component CSS compiled with Tailwind CSS v3. Moved out of stylesheet tags. */\n\n';
fs.writeFileSync(componentsFile, banner + chunks.join('\n\n') + '\n');
return true;
}
function assemble() {
const critical = fs.readFileSync(criticalFile, 'utf8').trim();
const tailwind = fs.readFileSync(tailwindSource, 'utf8').trim();
const components = fs.existsSync(componentsFile) ? fs.readFileSync(componentsFile, 'utf8').trim() : '';
fs.writeFileSync(
entry,
`${critical}\n\n${tailwind}\n\n${components}\n`
);
}
function writeSnippet() {
const css = fs.readFileSync(output, 'utf8').trim();
if (css.includes('{{') || css.includes('{%') || css.includes('</style>')) {
console.error('Minified CSS contains Liquid or a closing style tag, so it cannot be printed inline.');
process.exit(1);
}
const snippet = `{% doc %}
Prints the minified Tailwind CSS v3 bundle in the document head.
Generated by scripts/build-css.js. Do not edit by hand.
{% enddoc %}
<style>${css}</style>
`;
fs.writeFileSync(snippetFile, snippet);
if (fs.existsSync(publicCss)) fs.unlinkSync(publicCss);
}
function compile() {
if (!fs.existsSync(cli)) {
console.error('Missing tailwindcss. Run npm install in the theme folder.');
process.exit(1);
}
const watch = process.argv.includes('--watch');
const args = [cli, '-i', entry, '-o', output, '--minify'];
if (watch) args.push('--watch');
if (watch) {
fs.watchFile(output, { interval: 400 }, () => {
if (fs.existsSync(output)) writeSnippet();
});
}
const result = spawnSync(process.execPath, args, { cwd: root, stdio: 'inherit' });
if (!watch && result.status === 0) writeSnippet();
if (result.status !== 0) process.exit(result.status || 1);
}
extractStylesheets();
assemble();
compile();
+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 %}
+22 -610
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 }}>
@@ -115,610 +119,6 @@
</div>
</section>
{% stylesheet %}
.bestsellers {
padding: 50px 0;
color: #000;
background: #fff;
font-family: Archivo, sans-serif;
}
.bestsellers__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 20px;
padding: 0 100px;
}
.bestsellers__heading {
margin: 0;
color: #000;
font-family: "Roc Grotesk", Archivo, sans-serif;
font-size: 30px;
font-weight: 500;
line-height: normal;
text-transform: uppercase;
}
.bestsellers__tools {
display: flex;
flex-shrink: 0;
align-items: center;
gap: 10px;
}
.bestsellers__more {
padding: 0 10px;
color: #000;
font-size: 16px;
font-weight: 500;
line-height: normal;
text-decoration: none;
}
.bestsellers__arrows {
display: flex;
align-items: center;
gap: 20px;
}
.bestsellers__arrow {
display: grid;
width: 30px;
height: 30px;
place-items: center;
padding: 0;
border: 0;
border-radius: 60px;
background: #9dd6c7;
cursor: pointer;
}
.bestsellers__arrow:disabled {
cursor: default;
opacity: 0.35;
}
.bestsellers__arrow-icon {
display: block;
width: 20px;
height: 20px;
}
.bestsellers__arrow--prev .bestsellers__arrow-icon {
transform: rotate(-90deg);
}
.bestsellers__arrow--next .bestsellers__arrow-icon {
transform: rotate(90deg);
}
.bestsellers__body {
display: flex;
align-items: flex-start;
gap: 28px;
}
.bestsellers__promo {
position: relative;
display: block;
flex: 0 0 486px;
width: 486px;
height: 550px;
overflow: hidden;
border-radius: 0 10px 10px 0;
color: inherit;
text-decoration: none;
}
.bestsellers__promo-image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.bestsellers__slider {
display: flex;
min-width: 0;
flex: 1 1 auto;
flex-direction: column;
align-self: stretch;
}
.bestsellers__progress {
position: relative;
height: 1px;
margin-top: auto;
background: #e6e6e6;
}
.bestsellers__progress-bar {
position: absolute;
top: 0;
left: 0;
height: 2px;
background: #000;
}
.bestsellers__viewport {
min-width: 0;
min-height: 493px;
flex: 1 1 auto;
overflow-x: auto;
scroll-snap-type: x mandatory;
scrollbar-width: none;
cursor: grab;
}
.bestsellers[data-feed]:not([data-sorted="true"]) .bestsellers__card {
visibility: hidden;
}
.bestsellers__viewport::-webkit-scrollbar {
display: none;
}
.bestsellers__viewport.is-dragging {
cursor: grabbing;
scroll-snap-type: none;
}
.bestsellers__track {
display: flex;
gap: 30px;
width: max-content;
padding-right: 100px;
}
.bestsellers__card {
display: flex;
flex: 0 0 386px;
flex-direction: column;
gap: 20px;
width: 386px;
scroll-snap-align: start;
}
.bestsellers__media {
position: relative;
width: 386px;
height: 386px;
overflow: hidden;
border-radius: 10px;
background: #fff;
}
.bestsellers__media-link {
position: absolute;
inset: 0;
display: block;
}
.bestsellers__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.bestsellers__image--hover {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.35s ease;
}
.bestsellers__media:hover .bestsellers__image--hover,
.bestsellers__media:focus-within .bestsellers__image--hover {
opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
.bestsellers__image--hover {
transition: none;
}
}
.bestsellers__image--empty {
background: #f3f3f3;
}
.bestsellers__badges {
position: absolute;
top: 10px;
left: 10px;
z-index: 1;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.bestsellers__badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 3px 5px;
border-radius: 2px;
color: #000;
font-size: 10px;
font-weight: 300;
line-height: normal;
text-transform: uppercase;
}
.bestsellers__badge--best {
background: #bfffb2;
}
.bestsellers__badge--skin {
background: #f7c585;
}
.bestsellers__wish {
position: absolute;
top: 20px;
right: 20px;
z-index: 1;
display: grid;
width: 25px;
height: 25px;
place-items: center;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.bestsellers__wish-icon {
display: block;
width: 25px;
height: 25px;
}
.bestsellers__wish-icon svg {
display: block;
}
.bestsellers__wish.is-active svg path {
fill: #000;
}
.bestsellers__info {
display: flex;
flex-direction: column;
gap: 15px;
}
.bestsellers__copy {
display: flex;
flex-direction: column;
gap: 5px;
}
.bestsellers__title {
display: block;
overflow: hidden;
color: #000;
font-size: 18px;
font-weight: 700;
line-height: normal;
text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
}
.bestsellers__subtitle,
.bestsellers__reviews,
.bestsellers__empty {
margin: 0;
}
.bestsellers__subtitle {
overflow: hidden;
color: #808181;
font-size: 14px;
font-weight: 300;
line-height: normal;
text-overflow: ellipsis;
white-space: nowrap;
}
.bestsellers__rating {
display: flex;
align-items: center;
gap: 10px;
}
.bestsellers__stars {
display: flex;
align-items: center;
gap: 1px;
}
.bestsellers__star {
display: block;
width: 10px;
height: 10px;
}
.bestsellers__star svg {
display: block;
}
.bestsellers__star.is-off {
opacity: 0.25;
}
.bestsellers__reviews {
color: #000;
font-size: 9px;
font-weight: 300;
line-height: normal;
white-space: nowrap;
}
.bestsellers__prices {
display: flex;
align-items: center;
gap: 32px;
}
.bestsellers__price,
.bestsellers__compare {
font-size: 16px;
line-height: normal;
}
.bestsellers__price {
font-weight: 700;
}
.bestsellers__compare {
color: #808181;
font-weight: 400;
text-decoration: line-through;
}
.bestsellers__actions {
position: absolute;
right: 20px;
bottom: 10px;
left: 20px;
z-index: 2;
display: flex;
gap: 10px;
margin: 0;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
.bestsellers__media:hover .bestsellers__actions,
.bestsellers__media:focus-within .bestsellers__actions {
opacity: 1;
pointer-events: auto;
}
.bestsellers__bag,
.bestsellers__buy {
display: flex;
align-items: center;
justify-content: center;
height: 50px;
padding: 15px;
border: 0;
border-radius: 60px;
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
cursor: pointer;
}
.bestsellers__bag {
flex: 0 0 50px;
width: 50px;
background: #000;
}
.bestsellers__bag img {
display: block;
width: 25px;
height: 25px;
}
.bestsellers__buy {
flex: 1 1 auto;
background: #9dd6c7;
color: #000;
font-family: Archivo, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: normal;
}
.bestsellers__bag:disabled,
.bestsellers__buy:disabled {
cursor: default;
opacity: 0.55;
}
.bestsellers__empty {
color: #000;
font-size: 14px;
font-weight: 400;
}
.bestsellers__more:focus-visible,
.bestsellers__bag:focus-visible,
.bestsellers__buy:focus-visible,
.bestsellers__arrow:focus-visible,
.bestsellers__wish:focus-visible,
.bestsellers__title:focus-visible,
.bestsellers__media-link:focus-visible,
.bestsellers__promo:focus-visible {
outline: 2px solid #000;
outline-offset: 2px;
}
@media (max-width: 1439px) {
.bestsellers__header {
padding-inline: 40px;
}
.bestsellers__track {
padding-right: 40px;
}
}
@media (max-width: 1024px) {
.bestsellers {
padding-top: 40px;
}
.bestsellers__header {
margin-bottom: 10px;
padding-inline: 15px;
}
.bestsellers__heading {
font-size: 20px;
}
.bestsellers__more {
padding: 0;
font-size: 14px;
}
.bestsellers__arrows {
display: none;
}
.bestsellers__body {
flex-direction: column;
gap: 20px;
}
.bestsellers__promo {
flex-basis: auto;
width: calc(100% - 30px);
height: 460px;
margin-inline: 15px;
border-radius: 10px;
}
.bestsellers__progress {
margin-top: 24px;
}
.bestsellers__viewport {
width: 100%;
min-height: 370px;
cursor: auto;
}
.bestsellers__track {
gap: 20px;
padding-right: 15px;
padding-left: 15px;
}
.bestsellers__card {
flex-basis: 245px;
gap: 10px;
width: 245px;
}
.bestsellers__media {
width: 245px;
height: 244px;
}
.bestsellers__badges {
top: 5px;
left: 5px;
}
.bestsellers__badge {
font-size: 7px;
}
.bestsellers__wish {
top: 10px;
right: 11px;
}
.bestsellers__info {
gap: 10px;
}
.bestsellers__title {
font-size: 14px;
}
.bestsellers__subtitle {
font-size: 10px;
}
.bestsellers__reviews {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
}
.bestsellers__rating {
position: relative;
}
.bestsellers__price,
.bestsellers__compare {
font-size: 14px;
}
.bestsellers__prices {
gap: 16px;
}
.bestsellers__actions {
right: 8px;
bottom: 8px;
left: 8px;
gap: 6px;
opacity: 1;
pointer-events: auto;
}
.bestsellers__bag,
.bestsellers__buy {
height: 36px;
padding: 0 8px;
}
.bestsellers__bag {
flex-basis: 36px;
width: 36px;
}
.bestsellers__bag img {
width: 18px;
height: 18px;
}
.bestsellers__buy {
font-size: 12px;
}
}
@media (prefers-reduced-motion: reduce) {
.bestsellers__viewport {
scroll-behavior: auto;
}
}
{% endstylesheet %}
{% javascript %}
(() => {
const wishlistKey = 'seasons-wishlist';
@@ -726,18 +126,23 @@
const readWishlist = () => {
try {
const stored = JSON.parse(window.localStorage.getItem(wishlistKey));
return Array.isArray(stored) ? stored.map(String) : [];
if (!Array.isArray(stored)) return [];
return stored.map((item) => {
if (item && typeof item === 'object') return { id: String(item.id || ''), handle: String(item.handle || '') };
return { id: String(item), handle: '' };
}).filter((item) => item.id);
} catch (error) {
return [];
}
};
const writeWishlist = (ids) => {
window.localStorage.setItem(wishlistKey, JSON.stringify(ids));
const writeWishlist = (items) => {
window.localStorage.setItem(wishlistKey, JSON.stringify(items));
document.dispatchEvent(new CustomEvent('seasons:wishlist'));
};
const applyWishlist = (root) => {
const saved = readWishlist();
const saved = readWishlist().map((item) => item.id);
root.querySelectorAll('[data-wishlist]').forEach((button) => {
const active = saved.includes(String(button.dataset.productId));
button.classList.toggle('is-active', active);
@@ -950,12 +355,19 @@
if (!root) return;
const id = String(wish.dataset.productId);
const handle = String(wish.dataset.productHandle || '');
const saved = readWishlist();
const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id);
const next = saved.some((item) => item.id === id)
? saved.filter((item) => item.id !== id)
: saved.concat({ id, handle });
writeWishlist(next);
applyWishlist(root);
});
document.addEventListener('seasons:wishlist', () => {
document.querySelectorAll('[data-bestsellers]').forEach((root) => applyWishlist(root));
});
document.addEventListener('submit', async (event) => {
const form = event.target;
if (!(form instanceof HTMLFormElement) || !form.classList.contains('bestsellers__form')) return;
+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 %}
+52 -430
View File
@@ -47,7 +47,7 @@
endunless
assign shown = shown | plus: 1
assign add_label = 'cart_drawer.add' | t
assign add_label = 'cart_drawer.add_short' | t
echo '<article class="cart-drawer__rec"><a class="cart-drawer__thumb cart-drawer__thumb--rec" href="'
echo product.url | escape
@@ -90,15 +90,6 @@
aria-labelledby="cart-drawer-title"
>
<div class="cart-drawer__layout" data-cart-drawer-content data-item-count="{{ cart.item_count }}">
{% if shown > 0 %}
<aside class="cart-drawer__recs" aria-label="{{ 'cart_drawer.recommendations' | t }}">
<h2 class="cart-drawer__heading">{{ 'cart_drawer.recommendations' | t }}</h2>
<div class="cart-drawer__rec-list">
{{ rec_items }}
</div>
</aside>
{% endif %}
<div class="cart-drawer__main">
<div class="cart-drawer__head">
<h2 id="cart-drawer-title" class="cart-drawer__heading">{{ 'cart_drawer.title' | t }}</h2>
@@ -200,6 +191,14 @@
<strong>{{ cart.total_price | money_without_trailing_zeros }} {{ cart.currency.iso_code }}</strong>
</p>
<p class="cart-drawer__note">{{ 'cart_drawer.taxes' | t }}</p>
{% if shown > 0 %}
<aside class="cart-drawer__recs" aria-label="{{ 'cart_drawer.recommendations' | t }}">
<h2 class="cart-drawer__heading">{{ 'cart_drawer.recommendations' | t }}</h2>
<div class="cart-drawer__rec-list">
{{ rec_items }}
</div>
</aside>
{% endif %}
<div class="cart-drawer__actions">
{% if cart.item_count > 0 %}
<form action="{{ routes.cart_url }}" method="post">
@@ -208,7 +207,6 @@
{% else %}
<button class="cart-drawer__checkout" type="button" disabled>{{ 'cart_drawer.checkout' | t }}</button>
{% endif %}
<a class="cart-drawer__view" href="{{ routes.cart_url }}">{{ 'cart_drawer.view' | t }}</a>
</div>
</div>
</div>
@@ -216,425 +214,6 @@
</div>
</div>
{% stylesheet %}
.shopify-section.cart-drawer-section {
display: block;
width: 0;
height: 0;
overflow: visible;
position: static;
}
.cart-drawer {
position: fixed;
inset: 0;
z-index: 80;
visibility: hidden;
pointer-events: none;
}
.cart-drawer.is-open,
.cart-drawer.is-closing {
visibility: visible;
}
.cart-drawer.is-open {
pointer-events: auto;
}
.cart-drawer__backdrop {
position: absolute;
inset: 0;
border: 0;
padding: 0;
background: rgba(32, 36, 36, 0.46);
opacity: 0;
cursor: pointer;
transition: opacity 0.32s ease;
}
.cart-drawer.is-open .cart-drawer__backdrop {
opacity: 1;
}
.cart-drawer__panel {
position: absolute;
top: 0;
right: 0;
display: flex;
width: min(980px, 100%);
height: 100%;
background: #fff;
color: #000;
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
transform: translate3d(100%, 0, 0);
transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer.is-open .cart-drawer__panel {
transform: translate3d(0, 0, 0);
}
.cart-drawer__layout {
display: grid;
grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
width: 100%;
min-height: 0;
}
.cart-drawer__layout:not(:has(.cart-drawer__recs)) {
grid-template-columns: 1fr;
}
.cart-drawer__recs,
.cart-drawer__items {
overscroll-behavior: contain;
}
.cart-drawer__recs {
overflow: auto;
padding: 28px 24px 32px;
border-right: 1px solid #ededed;
}
.cart-drawer__main {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
padding: 28px 28px 0;
}
.cart-drawer__heading {
margin: 0;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
line-height: 1.3;
text-transform: uppercase;
}
.cart-drawer__head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.cart-drawer__close,
.cart-drawer__remove,
.cart-drawer__add,
.cart-drawer__qty button {
border: 0;
background: transparent;
color: inherit;
cursor: pointer;
}
.cart-drawer__close {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
margin: -6px -6px 0 0;
padding: 0;
}
.cart-drawer__shipping {
margin-top: 18px;
}
.cart-drawer__shipping p {
margin: 0 0 10px;
font-size: 13px;
font-weight: 400;
line-height: 1.4;
}
.cart-drawer__shipping span {
color: #1aa37a;
font-weight: 700;
}
.cart-drawer__bar {
height: 4px;
overflow: hidden;
border-radius: 999px;
background: #ececec;
}
.cart-drawer__bar-fill {
display: block;
width: var(--progress);
height: 100%;
border-radius: inherit;
background: #9dd6c7;
}
.cart-drawer__items {
flex: 1;
overflow: auto;
margin-top: 8px;
}
.cart-drawer__empty {
margin: 48px 0;
color: #666;
font-size: 14px;
font-weight: 400;
text-align: center;
}
.cart-drawer__line,
.cart-drawer__rec {
display: grid;
align-items: center;
gap: 14px;
}
.cart-drawer__line {
grid-template-columns: 72px minmax(0, 1fr) auto;
padding: 18px 0;
}
.cart-drawer__rec {
grid-template-columns: 56px minmax(0, 1fr);
align-items: start;
padding: 18px 0;
border-bottom: 1px solid #f1f1f1;
}
.cart-drawer__thumb {
display: block;
overflow: hidden;
width: 72px;
height: 72px;
background: #f7f7f7;
}
.cart-drawer__thumb--rec {
width: 56px;
height: 64px;
}
.cart-drawer__img {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
}
.cart-drawer__line-title,
.cart-drawer__rec-title {
display: block;
color: inherit;
font-size: 14px;
font-weight: 500;
line-height: 1.35;
text-decoration: none;
}
.cart-drawer__rec-title {
font-size: 13px;
font-weight: 400;
}
.cart-drawer__variant {
margin: 2px 0 0;
color: #777;
font-size: 12px;
font-weight: 400;
}
.cart-drawer__price {
margin: 6px 0 0;
font-size: 14px;
font-weight: 600;
line-height: 1.2;
}
.cart-drawer__add {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 8px;
padding: 0;
font-size: 11px;
font-weight: 500;
letter-spacing: 0.04em;
line-height: 1;
text-transform: uppercase;
}
.cart-drawer__qty {
display: inline-flex;
align-items: center;
height: 32px;
margin-top: 10px;
border: 1px solid #e1e1e1;
border-radius: 4px;
}
.cart-drawer__qty button {
width: 32px;
height: 32px;
padding: 0;
font-size: 16px;
line-height: 1;
}
.cart-drawer__qty button:disabled {
color: #bbb;
cursor: default;
}
.cart-drawer__qty span {
min-width: 16px;
font-size: 14px;
text-align: center;
}
.cart-drawer__remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
}
.cart-drawer__footer {
flex: 0 0 auto;
padding: 16px 0 24px;
background: #fff;
}
.cart-drawer__subtotal {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
margin: 0;
font-size: 16px;
font-weight: 500;
}
.cart-drawer__subtotal strong {
font-weight: 600;
}
.cart-drawer__note {
margin: 8px 0 0;
color: #6d6d6d;
font-size: 12px;
font-weight: 300;
line-height: 1.4;
text-align: center;
}
.cart-drawer__actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-top: 16px;
}
.cart-drawer__actions form {
display: contents;
}
.cart-drawer__checkout,
.cart-drawer__view {
display: flex;
align-items: center;
justify-content: center;
height: 48px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
line-height: 1;
text-align: center;
text-decoration: none;
text-transform: uppercase;
}
.cart-drawer__checkout {
border: 0;
background: #9dd6c7;
color: #000;
cursor: pointer;
}
.cart-drawer__checkout:disabled {
opacity: 0.45;
cursor: default;
}
.cart-drawer__view {
border: 1px solid #111;
background: #fff;
color: #000;
}
.cart-drawer.is-busy .cart-drawer__layout {
pointer-events: none;
}
html.cart-drawer-open,
html.cart-drawer-open body {
overflow: hidden;
}
@media (max-width: 767px) {
.cart-drawer__panel {
width: 100%;
}
.cart-drawer__layout,
.cart-drawer__layout:not(:has(.cart-drawer__recs)) {
display: flex;
flex-direction: column;
overflow: auto;
}
.cart-drawer__recs {
order: 2;
border-right: 0;
border-top: 1px solid #ededed;
}
.cart-drawer__main {
order: 1;
min-height: 100%;
padding: 20px 16px 0;
}
.cart-drawer__items {
overflow: visible;
}
.cart-drawer__footer {
position: sticky;
bottom: 0;
padding-bottom: 20px;
}
.cart-drawer__actions {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
.cart-drawer__backdrop,
.cart-drawer__panel {
transition: none;
}
}
{% endstylesheet %}
{% javascript %}
(() => {
if (window.__seasonCartDrawer) return;
@@ -666,6 +245,47 @@
});
};
const mobileQuery = window.matchMedia('(max-width: 767px)');
let floaterObserver = null;
const parkFloaters = (root) => {
if (!mobileQuery.matches) return;
const nodes = root === document.body ? document.body.querySelectorAll('*') : [root, ...root.querySelectorAll('*')];
nodes.forEach((node) => {
if (!(node instanceof HTMLElement) || node.closest('[data-cart-drawer]')) return;
if (node.hasAttribute('data-cart-parked')) return;
const style = window.getComputedStyle(node);
if (style.position !== 'fixed') return;
const rect = node.getBoundingClientRect();
if (rect.width < 24 || rect.height < 24) return;
const namedWidget = node.id === 'aitana-fab' || node.id === 'aitana-overlay' || node.id === 'wa-coupon-fab' || node.id === 'wa-coupon-overlay';
const low = rect.top > window.innerHeight * 0.4;
const side = rect.left < 160 || rect.right > window.innerWidth - 160;
if (!namedWidget && (!low || !side)) return;
node.setAttribute('data-cart-parked', '');
});
};
const watchFloaters = () => {
parkFloaters(document.body);
if (floaterObserver) return;
floaterObserver = new MutationObserver((records) => {
if (!document.documentElement.classList.contains('cart-drawer-open')) return;
records.forEach((record) => {
record.addedNodes.forEach((node) => {
if (node instanceof HTMLElement) parkFloaters(node);
});
});
});
floaterObserver.observe(document.body, { childList: true, subtree: true });
};
const releaseFloaters = () => {
document.querySelectorAll('[data-cart-parked]').forEach((node) => {
node.removeAttribute('data-cart-parked');
});
};
const openDrawer = () => {
const drawer = getDrawer();
if (!drawer) return;
@@ -674,6 +294,7 @@
drawer.classList.add('is-open');
drawer.setAttribute('aria-hidden', 'false');
document.documentElement.classList.add('cart-drawer-open');
watchFloaters();
document.querySelectorAll('[data-cart-open]').forEach((button) => {
button.setAttribute('aria-expanded', 'true');
});
@@ -687,6 +308,7 @@
drawer.classList.add('is-closing');
drawer.setAttribute('aria-hidden', 'true');
document.documentElement.classList.remove('cart-drawer-open');
releaseFloaters();
document.querySelectorAll('[data-cart-open]').forEach((button) => {
button.setAttribute('aria-expanded', 'false');
});
+133 -27
View File
@@ -1,37 +1,143 @@
{% comment %}
This section is used in the cart template to render /cart page with an
overview of the items in customer's cart.
{% liquid
assign free_shipping = section.settings.free_shipping | default: 699
assign threshold = free_shipping | times: 100
assign progress = 0
assign remaining = 0
assign unlocked = false
https://shopify.dev/docs/storefronts/themes/architecture/templates/cart
{% endcomment %}
if threshold > 0
if cart.total_price >= threshold
assign progress = 100
assign unlocked = true
else
assign remaining = threshold | minus: cart.total_price
assign progress = cart.total_price | times: 100 | divided_by: threshold
endif
endif
%}
<h1>{{ 'cart.title' | t }}</h1>
<section class="cart-page full-width">
<div class="cart-page__body">
<h1 class="cart-page__title">{{ 'cart.title' | t }}</h1>
{% if cart.item_count == 0 %}
<div class="cart-page__empty">
<p>{{ 'cart_drawer.empty' | t }}</p>
<a class="cart-page__checkout" href="{{ routes.all_products_collection_url }}">{{ 'cart.continue' | t }}</a>
</div>
{% else %}
<div class="cart-page__layout">
<div class="cart-page__items">
{% for item in cart.items %}
<article class="cart-page__line">
<a class="cart-page__thumb" href="{{ item.url }}">
{% if item.image %}
{{
item.image
| image_url: width: 240
| image_tag:
loading: 'lazy',
alt: item.product.title,
class: 'cart-page__img',
widths: '96, 160, 240',
sizes: '96px'
}}
{% endif %}
</a>
<div class="cart-page__copy">
<a class="cart-page__name" href="{{ item.url }}">{{ item.product.title | escape }}</a>
{% unless item.variant.title == 'Default Title' %}
<p class="cart-page__variant">{{ item.variant.title | escape }}</p>
{% endunless %}
<p class="cart-page__price">
{{ item.final_line_price | money_without_trailing_zeros }}
{% if item.original_line_price > item.final_line_price %}
<s>{{ item.original_line_price | money_without_trailing_zeros }}</s>
{% endif %}
</p>
<div class="cart-page__qty">
{% if item.quantity > 1 %}
<a
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | minus: 1 }}"
aria-label="{{ 'cart_drawer.decrease' | t }}"
>−</a>
{% else %}
<span class="is-disabled" aria-hidden="true">−</span>
{% endif %}
<span>{{ item.quantity }}</span>
<a
href="{{ routes.cart_change_url }}?line={{ forloop.index }}&quantity={{ item.quantity | plus: 1 }}"
aria-label="{{ 'cart_drawer.increase' | t }}"
>+</a>
</div>
</div>
<a class="cart-page__remove" href="{{ item.url_to_remove }}" aria-label="{{ 'cart.remove' | t }}">
<svg width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false">
<path d="M2.5 4h11M6.5 4V2.5h3V4M4 4l.6 9.2a1 1 0 0 0 1 .8h4.8a1 1 0 0 0 1-.8L12 4" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
</article>
{% endfor %}
</div>
<aside class="cart-page__summary">
{% if threshold > 0 %}
<div class="cart-page__shipping">
<p>
{% if unlocked %}
{{ 'cart_drawer.unlocked' | t }}
{% else %}
{{ 'cart_drawer.remaining_before' | t }}
{{ remaining | money_without_trailing_zeros }}
{{ 'cart_drawer.remaining_after' | t }}
<span>{{ 'cart_drawer.free' | t }}</span>
{% endif %}
</p>
<div
class="cart-page__bar"
style="--progress: {{ progress }}%;"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
aria-valuenow="{{ progress }}"
aria-label="{{ 'cart_drawer.shipping_progress' | t }}"
>
<span class="cart-page__bar-fill"></span>
</div>
</div>
{% endif %}
<p class="cart-page__subtotal">
<span>{{ 'cart_drawer.subtotal' | t }}</span>
<strong>{{ cart.total_price | money_without_trailing_zeros }}</strong>
</p>
<p class="cart-page__note">{{ 'cart_drawer.taxes' | t }}</p>
<form action="{{ routes.cart_url }}" method="post">
<button class="cart-page__checkout" type="submit" name="checkout">{{ 'cart.checkout' | t }}</button>
</form>
<a class="cart-page__continue" href="{{ routes.all_products_collection_url }}">{{ 'cart.continue' | t }}</a>
</aside>
</div>
{% endif %}
</div>
</section>
<form action="{{ routes.cart_url }}" method="post">
<table>
{% for item in cart.items %}
<tr>
<td>
{% render 'image', image: item.image, url: item.url %}
</td>
<td>
<p>{{ item.product.title }}</p>
{{ 'cart.remove' | t | link_to: item.url_to_remove }}
</td>
<td>
<input type="text" name="updates[]" value="{{ item.quantity }}">
<input type="submit" value="{{ 'cart.update' | t }}">
</td>
</tr>
{% endfor %}
</table>
<input type="submit" name="checkout" value="{{ 'cart.checkout' | t }}">
</form>
{% schema %}
{
"name": "t:general.cart",
"settings": []
"settings": [
{
"type": "number",
"id": "free_shipping",
"label": "t:cart_drawer.free_shipping",
"info": "t:cart_drawer.free_shipping_info",
"default": 699
}
]
}
{% endschema %}
+121 -434
View File
@@ -14,6 +14,42 @@
assign banner_title = collection.title
endif
assign banner_asset = blank
case collection.handle
when 'all-products'
assign banner_asset = 'banner-todos-productos.avif'
when 'proteccion-solar-1'
assign banner_asset = 'banner-proteccion-solar.avif'
when '4-protege-bloqueadores-solares'
assign banner_asset = 'banner-protectores.avif'
when 'hidratantes'
assign banner_asset = 'banner-hidratantes.avif'
when 'limpiadores'
assign banner_asset = 'banner-limpiadores.avif'
when 'mascarillas'
assign banner_asset = 'banner-mascarillas.avif'
when 'serum'
assign banner_asset = 'banner-serums.avif'
when 'kits-skincare-facial'
assign banner_asset = 'banner-kits.avif'
when 'piel-mixta-grasa'
assign banner_asset = 'banner-piel-mixta-grasa.avif'
when 'piel-grasa'
assign banner_asset = 'banner-piel-grasa.avif'
when 'piel-seca-1'
assign banner_asset = 'banner-piel-seca.avif'
when 'control-grasa'
assign banner_asset = 'banner-control-grasa.avif'
when 'acne-1'
assign banner_asset = 'banner-preocupacion-acne.avif'
when 'hidratacion'
assign banner_asset = 'banner-preocupacion-hidratacion.avif'
when 'antiedad-1'
assign banner_asset = 'banner-antiedad.avif'
when 'aclarar'
assign banner_asset = 'banner-manchas.avif'
endcase
assign banner_text = collection.metafields.custom.banner_texto.value | default: collection.metafields.custom.banner_text.value
assign banner_text_is_html = false
if banner_text == blank
@@ -35,6 +71,10 @@
assign show_hero = true
endif
if banner_asset != blank
assign show_hero = true
endif
if show_grid_banner and grid_image == blank
assign grid_image = collection.metafields.custom.banner_imagen.value | default: collection.metafields.custom.banner_image.value
endif
@@ -65,16 +105,30 @@
data-cart-add-url="{{ routes.cart_add_url }}.js"
>
{% if show_hero %}
<div class="collection__banner{% if banner_image == blank %} collection__banner--text{% endif %}">
{% if banner_image != blank %}
<div class="collection__banner{% if banner_asset == blank and banner_image == blank %} collection__banner--text{% endif %}">
{% if banner_asset != blank %}
<div class="collection__banner-media">
<img
class="collection__banner-image"
src="{{ banner_asset | asset_url }}"
alt="{{ banner_title | escape }}"
width="1600"
height="667"
fetchpriority="high"
loading="eager"
decoding="async"
>
</div>
{% elsif banner_image != blank %}
<div class="collection__banner-media">
{{
banner_image
| image_url: width: 1600
| image_tag:
alt: banner_title,
fetchpriority: 'high',
widths: '600, 960, 1400',
sizes: '(max-width: 767px) 70vw, 50vw',
sizes: '(max-width: 767px) 100vw, 50vw',
class: 'collection__banner-image',
loading: 'eager'
}}
@@ -97,6 +151,8 @@
alt=""
width="185"
height="210"
loading="lazy"
decoding="async"
>
</div>
</div>
@@ -123,8 +179,17 @@
<p class="collection__count">{{ 'collection_page.products' | t: count: collection.products_count }}</p>
</div>
<div class="collection__panel" id="collection-filters" data-filter-panel>
<div class="collection__panel-inner">
<div class="collection__drawer" id="collection-filters" data-filter-panel aria-hidden="true">
<button class="collection__drawer-backdrop" type="button" data-filter-close tabindex="-1" aria-label="{{ 'collection_page.close_filters' | t }}"></button>
<div class="collection__drawer-panel" role="dialog" aria-modal="true" aria-labelledby="collection-filters-title">
<div class="collection__drawer-head">
<h2 id="collection-filters-title" class="collection__drawer-title">{{ 'collection_page.filters' | t }}</h2>
<button class="collection__drawer-close" type="button" data-filter-close aria-label="{{ 'collection_page.close_filters' | t }}">
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
<path d="M2 2l10 10M12 2L2 12" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
</svg>
</button>
</div>
{% if collection.filters.size > 0 %}
<form class="collection__filter-form" action="{{ collection.url }}" method="get">
{% if current_sort != blank %}
@@ -182,8 +247,17 @@
</div>
</div>
<div class="collection__panel" id="collection-sort" data-sort-panel>
<div class="collection__panel-inner">
<div class="collection__drawer" id="collection-sort" data-sort-panel aria-hidden="true">
<button class="collection__drawer-backdrop" type="button" data-sort-close tabindex="-1" aria-label="{{ 'collection_page.close_sort' | t }}"></button>
<div class="collection__drawer-panel" role="dialog" aria-modal="true" aria-labelledby="collection-sort-title">
<div class="collection__drawer-head">
<h2 id="collection-sort-title" class="collection__drawer-title">{{ 'collection_page.sort_title' | t }}</h2>
<button class="collection__drawer-close" type="button" data-sort-close aria-label="{{ 'collection_page.close_sort' | t }}">
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false">
<path d="M2 2l10 10M12 2L2 12" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/>
</svg>
</button>
</div>
<form class="collection__sort-form" action="{{ collection.url }}" method="get">
{% for filter in collection.filters %}
{% if filter.type == 'price_range' %}
@@ -273,454 +347,67 @@
</div>
</section>
{% stylesheet %}
.collection {
background: #f9f9fa;
color: #000;
}
.collection__banner {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 380px;
background: #f7c585;
overflow: hidden;
}
.collection__banner--text {
grid-template-columns: 1fr;
}
.collection__banner-media {
height: 100%;
min-height: 380px;
}
.collection__banner-image {
display: block;
width: 100%;
height: 100%;
min-height: 380px;
object-fit: cover;
}
.collection__banner-copy {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
gap: 22px;
padding: 48px 180px 48px 70px;
}
.collection__banner-title,
.collection__fallback-title {
margin: 0;
font-size: 32px;
font-weight: 700;
line-height: normal;
}
.collection__fallback-title {
padding: 40px 100px 0;
}
.collection__banner-text {
max-width: 570px;
font-size: 18px;
font-weight: 300;
line-height: 1.4;
}
.collection__banner-text p {
margin: 0;
}
.collection__banner-blob {
position: absolute;
top: 50%;
right: 48px;
width: 185px;
height: auto;
opacity: 0.8;
pointer-events: none;
transform: translateY(-50%);
}
.collection__body {
padding: 28px 100px 80px;
}
.collection__bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 8px;
}
.collection__tools {
display: flex;
flex-wrap: wrap;
gap: 20px;
}
.collection__tool {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
height: 50px;
padding: 0 18px;
border: 1px solid #808181;
border-radius: 60px;
background: transparent;
color: #000;
font: inherit;
font-size: 16px;
font-weight: 300;
cursor: pointer;
}
.collection__tool svg {
display: block;
flex: 0 0 auto;
}
.collection__count,
.collection__empty,
.collection__none {
margin: 0;
font-size: 16px;
font-weight: 300;
}
.collection__panel {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 0.28s ease;
}
.collection__panel.is-open {
grid-template-rows: 1fr;
}
.collection__panel-inner {
overflow: hidden;
}
.collection__filter-form,
.collection__sort-form {
padding: 22px 0 8px;
}
.collection__filter-groups {
display: flex;
flex-wrap: wrap;
gap: 28px 48px;
}
.collection__filter {
min-width: 180px;
margin: 0;
padding: 0;
border: 0;
}
.collection__filter legend {
margin-bottom: 10px;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.collection__options {
display: flex;
flex-direction: column;
gap: 8px;
}
.collection__option {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
font-weight: 300;
}
.collection__price {
display: flex;
gap: 8px;
}
.collection__price input {
width: 110px;
height: 40px;
padding: 0 10px;
border: 1px solid #d0d0d0;
border-radius: 8px;
background: #fff;
font: inherit;
}
.collection__filter-actions {
display: flex;
align-items: center;
gap: 16px;
margin-top: 22px;
}
.collection__apply {
height: 44px;
padding: 0 22px;
border: 0;
border-radius: 60px;
background: #9dd6c7;
color: #000;
font: inherit;
font-size: 15px;
font-weight: 500;
cursor: pointer;
}
.collection__clear {
color: #000;
font-size: 15px;
font-weight: 300;
}
.collection__sort-list {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
}
.collection__sort-option {
padding: 6px 0;
border: 0;
background: transparent;
color: #000;
font: inherit;
font-size: 16px;
font-weight: 300;
cursor: pointer;
}
.collection__sort-option.is-current {
font-weight: 700;
}
.collection__grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px 20px;
margin-top: 28px;
}
.collection__promo {
display: block;
overflow: hidden;
border-radius: 10px;
aspect-ratio: 1;
}
.collection__promo img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.collection__empty {
margin-top: 40px;
}
.collection__pages {
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
margin-top: 48px;
}
.collection__page,
.collection__next {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 25px;
color: #000;
font-size: 16px;
font-weight: 300;
line-height: 1;
text-decoration: none;
}
.collection__page.is-current {
background: #000;
color: #fff;
}
.collection__next {
background: #c9c9c9;
color: #000;
}
.collection__next svg {
display: block;
}
@media (max-width: 1119px) {
.collection__banner-copy {
padding: 36px 40px;
}
.collection__banner-blob {
width: 120px;
right: 16px;
}
.collection__body,
.collection__fallback-title {
padding-right: 24px;
padding-left: 24px;
}
.collection__grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 767px) {
.collection__banner {
grid-template-columns: 1fr;
min-height: 250px;
}
.collection__banner-media {
position: absolute;
inset: 0 auto 0 0;
width: 58%;
min-height: 0;
}
.collection__banner {
position: relative;
}
.collection__banner-image {
min-height: 250px;
}
.collection__banner-copy {
position: relative;
z-index: 1;
min-height: 250px;
justify-content: flex-end;
gap: 15px;
padding: 20px;
background: linear-gradient(90deg, rgba(247, 197, 133, 0) 0%, #f7c585 46%);
}
.collection__banner-title {
font-size: 25px;
}
.collection__banner-text {
font-size: 14px;
line-height: 18px;
}
.collection__banner-blob {
display: none;
}
.collection__body {
padding: 18px 10px 48px;
}
.collection__fallback-title {
padding: 24px 16px 0;
font-size: 25px;
}
.collection__bar {
align-items: flex-start;
}
.collection__tools {
gap: 8px;
}
.collection__tool {
height: 40px;
padding: 0 12px;
font-size: 13px;
}
.collection__count {
font-size: 13px;
}
.collection__grid {
gap: 20px 10px;
}
}
@media (prefers-reduced-motion: reduce) {
.collection__panel {
transition: none;
}
}
{% endstylesheet %}
{% javascript %}
(() => {
if (window.__seasonCollection) return;
window.__seasonCollection = true;
const closePanels = (root) => {
root.querySelectorAll('[data-filter-panel], [data-sort-panel]').forEach((panel) => {
panel.classList.remove('is-open');
});
root.querySelectorAll('[data-filter-toggle], [data-sort-toggle]').forEach((button) => {
button.setAttribute('aria-expanded', 'false');
});
};
const togglePanel = (root, name) => {
const setPanel = (root, name, open) => {
const panel = root.querySelector(`[data-${name}-panel]`);
const button = root.querySelector(`[data-${name}-toggle]`);
if (!panel || !button) return;
const willOpen = !panel.classList.contains('is-open');
closePanels(root);
if (willOpen) {
panel.classList.add('is-open');
button.setAttribute('aria-expanded', 'true');
}
panel.classList.toggle('is-open', open);
button.setAttribute('aria-expanded', open ? 'true' : 'false');
if (!panel.classList.contains('collection__drawer')) return;
panel.setAttribute('aria-hidden', open ? 'false' : 'true');
const anyOpen = root.querySelector('.collection__drawer.is-open');
document.documentElement.classList.toggle('overflow-hidden', Boolean(anyOpen));
if (open) panel.querySelector('.collection__drawer-close')?.focus();
};
document.addEventListener('click', (event) => {
const root = event.target.closest('[data-collection]') || document.querySelector('[data-collection]');
const root = event.target.closest('[data-collection]');
if (!root) return;
if (event.target.closest('[data-filter-close]')) {
setPanel(root, 'filter', false);
root.querySelector('[data-filter-toggle]')?.focus();
return;
}
if (event.target.closest('[data-sort-close]')) {
setPanel(root, 'sort', false);
root.querySelector('[data-sort-toggle]')?.focus();
return;
}
if (event.target.closest('[data-filter-toggle]')) {
togglePanel(root, 'filter');
const panel = root.querySelector('[data-filter-panel]');
const willOpen = !panel.classList.contains('is-open');
setPanel(root, 'sort', false);
setPanel(root, 'filter', willOpen);
return;
}
if (event.target.closest('[data-sort-toggle]')) {
togglePanel(root, 'sort');
const panel = root.querySelector('[data-sort-panel]');
const willOpen = !panel.classList.contains('is-open');
setPanel(root, 'filter', false);
setPanel(root, 'sort', willOpen);
return;
}
});
if (!event.target.closest('[data-filter-panel], [data-sort-panel]')) {
closePanels(root);
}
document.addEventListener('keydown', (event) => {
if (event.key !== 'Escape') return;
document.querySelectorAll('[data-collection]').forEach((root) => {
const filtersOpen = root.querySelector('[data-filter-panel]')?.classList.contains('is-open');
const sortOpen = root.querySelector('[data-sort-panel]')?.classList.contains('is-open');
setPanel(root, 'filter', false);
setPanel(root, 'sort', false);
if (filtersOpen) root.querySelector('[data-filter-toggle]')?.focus();
if (sortOpen) root.querySelector('[data-sort-toggle]')?.focus();
});
});
})();
{% endjavascript %}
+1 -18
View File
@@ -34,24 +34,7 @@
{% endfor %}
</div>
{% stylesheet %}
.collections {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(var(--collection-card-size), 100%), 1fr));
gap: var(--grid-gap);
}
.collections--compact {
--collection-card-size: 160px;
}
.collections--full {
--collection-card-size: 280px;
}
.collection-card {
display: flex;
flex-direction: column;
width: 100%;
}
{% endstylesheet %}
{% schema %}
{
+1 -29
View File
@@ -10,35 +10,7 @@
</div>
</div>
{% stylesheet %}
.custom-section {
position: relative;
overflow: hidden;
width: 100%;
}
.custom-section__background {
position: absolute;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
}
.custom-section__background img {
position: absolute;
width: 100%;
height: auto;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.custom-section__content {
display: grid;
grid-template-columns: var(--content-grid);
}
.custom-section__content > * {
grid-column: 2;
}
{% endstylesheet %}
{% schema %}
{
+9 -221
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">
@@ -109,227 +118,6 @@
</div>
</section>
{% stylesheet %}
.distributors {
margin-top: 100px;
color: #000;
font-family: Archivo, sans-serif;
}
.distributors__layout {
display: grid;
grid-template-columns: minmax(0, 859fr) minmax(0, 860fr);
width: min(1719px, calc(100% - 200px));
margin-inline: auto;
}
.distributors__photo {
position: relative;
overflow: hidden;
border-radius: 10px 0 0 10px;
aspect-ratio: 859 / 964;
background: #f3f1ee;
}
.distributors__photo-image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.distributors__photo-image--flip {
transform: scaleX(-1);
}
.distributors__wordmark {
position: absolute;
left: 31.2%;
top: 39.1%;
display: block;
width: 37.7%;
height: auto;
}
.distributors__panel {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 0 10px 10px 0;
background: linear-gradient(131deg, #ffffff 0%, #ffffff 35.6%, #e5f4ff 67.9%);
}
.distributors__blob {
position: absolute;
height: auto;
opacity: 0.7;
pointer-events: none;
user-select: none;
}
.distributors__blob--top {
top: 5%;
right: 4%;
width: 41.3%;
}
.distributors__blob--bottom {
display: none;
}
.distributors__copy {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 40px;
width: min(804px, 100%);
padding: 48px 28px;
}
.distributors__heading {
margin: 0;
font-family: "Roc Grotesk", Archivo, sans-serif;
font-size: 60px;
font-weight: 500;
line-height: 75px;
text-align: center;
text-transform: uppercase;
}
.distributors__line {
display: block;
}
.distributors__bold {
font-weight: 700;
}
.distributors__text {
max-width: 672px;
margin: 0;
font-size: 20px;
font-weight: 300;
line-height: 30px;
text-align: center;
}
.distributors__button {
display: flex;
align-items: center;
justify-content: center;
width: 341px;
max-width: 100%;
height: 50px;
padding: 15px;
border-radius: 60px;
background: #9dd6c7;
color: #000;
font-size: 16px;
font-weight: 400;
line-height: normal;
text-align: center;
text-decoration: none;
}
a.distributors__button {
cursor: pointer;
}
a.distributors__button:hover {
filter: brightness(0.96);
}
a.distributors__button:focus-visible {
outline: 2px solid #000;
outline-offset: 3px;
}
@media (max-width: 1439px) {
.distributors__layout {
width: min(1719px, calc(100% - 80px));
}
.distributors__heading {
font-size: 44px;
line-height: 54px;
}
.distributors__text {
font-size: 18px;
line-height: 26px;
}
}
@media (max-width: 1024px) {
.distributors {
margin-top: 50px;
}
.distributors__layout {
grid-template-columns: 1fr;
width: min(372px, calc(100% - 30px));
}
.distributors__photo {
border-radius: 10px 10px 0 0;
aspect-ratio: 372 / 420;
}
.distributors__panel {
min-height: 420px;
border-radius: 0 0 10px 10px;
}
.distributors__blob--top {
top: 0;
right: 0;
width: 46%;
}
.distributors__blob--bottom {
display: block;
bottom: -18%;
left: 28%;
width: 56%;
}
.distributors__copy {
gap: 18px;
padding: 48px 10px;
}
.distributors__heading {
font-size: 30px;
line-height: 30px;
}
.distributors__bold {
font-weight: 500;
}
.distributors__line--rest {
font-weight: 300;
}
.distributors__text {
max-width: none;
font-size: 14px;
line-height: 20px;
}
.distributors__button {
width: 300px;
height: 45px;
font-size: 14px;
font-weight: 500;
}
}
{% endstylesheet %}
{% schema %}
{
"name": "t:distributors.name",
-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",
+32 -447
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 %}
@@ -250,409 +237,7 @@
</div>
</footer>
{% stylesheet %}
.footer {
color: #000;
background: #fff;
}
.footer__brand {
display: flex;
justify-content: center;
padding: 158px 100px;
}
.footer__logo {
display: block;
max-width: 100%;
line-height: 0;
text-decoration: none;
}
.footer__logo-mark svg,
.footer__logo-image {
display: block;
width: 1083px;
max-width: 100%;
height: auto;
}
.footer__panel {
background: #eaeaea;
padding: 50px 100px 30px;
}
.footer__columns {
display: flex;
flex-wrap: nowrap;
align-items: flex-start;
gap: clamp(16px, 4vw, 100px);
}
.footer__column {
flex: 1 1 0;
min-width: 0;
}
.footer__toggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
margin: 0 0 10px;
padding: 0;
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
pointer-events: none;
}
.footer__heading {
margin: 0;
font-size: 18px;
font-weight: 700;
line-height: 30px;
color: #000;
text-decoration: none;
}
.footer__chevron {
display: none;
flex-shrink: 0;
width: 20px;
height: 20px;
transform: rotate(180deg);
}
.footer__chevron svg {
display: block;
width: 20px;
height: 20px;
max-width: none;
}
.footer__links,
.footer__column ul {
margin: 0;
padding: 0;
list-style: none;
}
.footer__column li {
margin: 0;
padding: 0;
}
.footer__column a {
color: #000;
font-size: 16px;
font-weight: 300;
line-height: 30px;
text-decoration: none;
}
.footer a:focus-visible {
outline: 2px solid #000;
outline-offset: 4px;
}
.footer__newsletter {
display: flex;
flex: 0 1 395px;
flex-direction: column;
gap: 20px;
width: 395px;
max-width: 395px;
min-width: 0;
}
.footer__newsletter .footer__heading {
margin: 0;
}
.footer__form {
display: flex;
flex-direction: column;
gap: 20px;
margin: 0;
}
.footer__field {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 50px;
padding: 0 30px;
border-radius: 100px;
background: #fff;
}
.footer__field:focus-within {
outline: 2px solid #000;
outline-offset: 3px;
}
.footer__label {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.footer__input {
flex: 1;
min-width: 0;
height: 100%;
padding: 0;
border: 0;
border-radius: 0;
background: transparent;
color: #000;
font-family: Archivo, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: normal;
outline: none;
}
.footer__input::placeholder {
color: #808181;
opacity: 1;
}
.footer__arrow {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
margin-left: 12px;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.footer__arrow-icon {
display: block;
width: 20px;
height: 20px;
transform: rotate(90deg);
}
.footer__arrow-icon svg {
display: block;
width: 20px;
height: 20px;
max-width: none;
}
.footer__discount {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 50px;
padding: 15px;
border: 0;
border-radius: 60px;
background: #9dd6c7;
color: #000;
font-family: Archivo, sans-serif;
font-size: 16px;
font-weight: 300;
line-height: normal;
cursor: pointer;
}
.footer__message {
margin: -8px 0 0;
font-size: 14px;
font-weight: 400;
line-height: 1.35;
}
.footer__message--error {
color: #9b1c1c;
}
.footer__bar {
margin-top: 50px;
border-top: 1px solid #d8d8d8;
padding-top: 20px;
}
.footer__bar p {
margin: 0;
font-size: 16px;
font-weight: 300;
line-height: 30px;
}
.footer__social {
display: none;
margin: 10px 0 0;
padding: 0;
list-style: none;
}
.footer__social a,
.footer__social span {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
color: inherit;
text-decoration: none;
}
.footer__social svg {
display: block;
max-width: none;
}
@media (max-width: 1439px) {
.footer__brand,
.footer__panel {
padding-right: 40px;
padding-left: 40px;
}
}
@media (max-width: 1024px) {
.footer__brand {
padding: 36px 30px;
}
.footer__logo-mark svg,
.footer__logo-image {
width: min(100%, 274px);
}
.footer__panel {
padding: 40px 30px 28px;
}
.footer__columns {
flex-direction: column;
gap: 5px;
}
.footer__column,
.footer__newsletter {
flex: none;
width: 100%;
max-width: none;
}
.footer__column--shop {
order: 1;
}
.footer__column--seasons {
order: 2;
}
.footer__column--routine {
order: 3;
}
.footer__column--community {
order: 4;
}
.footer__column--help {
order: 5;
}
.footer__newsletter {
order: 6;
gap: 15px;
margin-top: 20px;
}
.footer.is-collapsible .footer__toggle {
margin: 0;
padding-bottom: 8px;
border-bottom: 1px solid #d5d5d5;
pointer-events: auto;
cursor: pointer;
}
.footer.is-collapsible .footer__chevron {
display: block;
}
.footer.is-collapsible .footer__column.is-open .footer__chevron {
transform: rotate(0deg);
}
.footer.is-collapsible .footer__links {
display: none;
padding: 8px 0 4px;
}
.footer.is-collapsible .footer__column.is-open .footer__links {
display: block;
}
.footer__heading {
font-size: 14px;
line-height: 30px;
}
.footer__newsletter .footer__heading {
line-height: 20px;
}
.footer__column a {
font-size: 14px;
line-height: 28px;
}
.footer__field,
.footer__discount {
height: 45px;
}
.footer__input,
.footer__discount {
font-size: 14px;
}
.footer__discount {
font-weight: 500;
}
.footer__form {
gap: 15px;
}
.footer__bar {
margin-top: 24px;
margin-right: -30px;
margin-left: -30px;
padding: 20px 30px 0;
text-align: center;
}
.footer__social {
display: flex;
justify-content: center;
gap: 20px;
}
}
{% endstylesheet %}
{% javascript %}
(function () {
+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 %}

Some files were not shown because too many files have changed in this diff Show More