Produccion 1

This commit is contained in:
2026-10-02 19:32:54 -06:00
parent 7ed1889bfb
commit 220178d421
81 changed files with 2993 additions and 531 deletions
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: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 22 KiB

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.
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

+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -12
View File
@@ -1,12 +1 @@
/* {"current":{}}
* ------------------------------------------------------------
* 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": {}
}
+19 -1
View File
@@ -64,5 +64,23 @@
"default": 4 "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."
}
]
} }
] ]
+8 -2
View File
@@ -5,15 +5,20 @@
{% render 'css-variables' %} {% render 'css-variables' %}
{% # Load and preload the critical CSS %} {% # Load and preload the critical CSS %}
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }} <style>{{ 'critical.css' | inline_asset_content }}</style>
{% render 'font-faces' %} {% render 'font-faces' %}
{{ 'tailwind.css' | asset_url | stylesheet_tag }} {{ 'tailwind.css' | asset_url | stylesheet_tag: preload: true }}
{% # Social, title, etc. %} {% # Social, title, etc. %}
{% render 'meta-tags' %} {% render 'meta-tags' %}
{% capture shopify_header %}{{ content_for_header }}{% endcapture %} {% capture shopify_header %}{{ content_for_header }}{% endcapture %}
{% render 'delay-header-scripts', html: shopify_header %} {% 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> </head>
<body> <body>
@@ -33,5 +38,6 @@
<script type="rocketlazyloadscript" src="{{ 'anime.min.js' | asset_url }}" defer></script> <script type="rocketlazyloadscript" src="{{ 'anime.min.js' | asset_url }}" defer></script>
<script type="rocketlazyloadscript" src="{{ 'scroll-motion.js' | asset_url }}" defer></script> <script type="rocketlazyloadscript" src="{{ 'scroll-motion.js' | asset_url }}" defer></script>
{% endif %} {% endif %}
{% render 'whatsapp-coupon-widget' %}
</body> </body>
</html> </html>
+145 -27
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin language editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{ {
"404": { "404": {
"title": "404", "title": "404",
@@ -14,13 +5,90 @@
"back_to_shopping": "Back to shopping" "back_to_shopping": "Back to shopping"
}, },
"blog": { "blog": {
"article_comments": "Comments", "all": "Todas",
"article_metadata_html": "{{ date }} by {{ author }}", "article_comments": "Comentarios",
"comment_form_body": "Comment", "article_metadata_html": "{{ date }} por {{ author }}",
"comment_form_email": "Email", "back": "Volver a {{ blog }}",
"comment_form_name": "Name", "breadcrumb": "Migas de pan",
"comment_form_submit": "Post", "comment_form_body": "Comentario",
"comment_form_title": "Add a comment" "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": { "cart": {
"checkout": "Checkout", "checkout": "Checkout",
@@ -83,6 +151,16 @@
"before": "Antes", "before": "Antes",
"after": "Después", "after": "Después",
"reviewer": "Cliente", "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", "reviews_label": "Reseñas",
"decrease": "Reducir cantidad", "decrease": "Reducir cantidad",
"increase": "Aumentar cantidad" "increase": "Aumentar cantidad"
@@ -138,7 +216,6 @@
"skin_type": "Por tipo de piel", "skin_type": "Por tipo de piel",
"concern": "Por preocupación", "concern": "Por preocupación",
"sunscreen": "Protección Solar", "sunscreen": "Protección Solar",
"favorites": "Los favoritos",
"kits": "Kits y Rutinas", "kits": "Kits y Rutinas",
"moisturizers": "Hidratantes", "moisturizers": "Hidratantes",
"glow_army": "Glow Army", "glow_army": "Glow Army",
@@ -198,19 +275,14 @@
}, },
"seasons": { "seasons": {
"about": "Quiénes somos", "about": "Quiénes somos",
"blog": "Blog Seasons", "blog": "Blog",
"reviews": "Reseñas",
"stores": "Puntos de venta" "stores": "Puntos de venta"
}, },
"shop": { "shop": {
"all": "Todos los productos", "all": "Todos los productos",
"bestsellers": "Más vendidos", "kits": "Kits y rutinas"
"new": "Nuevos lanzamientos",
"kits": "Kits y rutinas",
"previous": "Línea anterior"
}, },
"routine": { "routine": {
"ideal": "Tu rutina ideal",
"oily": "Piel grasa", "oily": "Piel grasa",
"combination": "Piel mixta", "combination": "Piel mixta",
"dry": "Piel seca", "dry": "Piel seca",
@@ -218,7 +290,6 @@
"kits": "Kits y rutinas" "kits": "Kits y rutinas"
}, },
"help": { "help": {
"faq": "Preguntas frecuentes",
"shipping": "Envíos", "shipping": "Envíos",
"returns": "Devoluciones", "returns": "Devoluciones",
"billing": "Facturación", "billing": "Facturación",
@@ -228,8 +299,7 @@
"community": { "community": {
"experts": "Seasons Experts", "experts": "Seasons Experts",
"distributor": "Ser distribuidor", "distributor": "Ser distribuidor",
"glow_army": "Glow Army", "glow_army": "Glow Army"
"videos": "Videos y tips"
}, },
"newsletter": { "newsletter": {
"heading": "Obtén un descuento sorpresa\nen tu primera compra", "heading": "Obtén un descuento sorpresa\nen tu primera compra",
@@ -309,6 +379,54 @@
"success": "Gracias por registrarte.", "success": "Gracias por registrarte.",
"error": "No pudimos registrarte. Intenta de nuevo." "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": { "skin_match": {
"heading": "¿Qué necesita tu piel hoy?", "heading": "¿Qué necesita tu piel hoy?",
"subheading": "Encuentra tu match de cuidado facial con Seasons.", "subheading": "Encuentra tu match de cuidado facial con Seasons.",
+50 -12
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin language editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{ {
"general": { "general": {
"404": "Not found", "404": "Not found",
@@ -156,7 +147,7 @@
"poster": "Cover image", "poster": "Cover image",
"poster_info": "Shown beside the slider, and used as the video poster. On mobile it sits above the slider.", "poster_info": "Shown beside the slider, and used as the video poster. On mobile it sits above the slider.",
"video": "Video", "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": "Image link",
"promo_link_info": "Used when no video is set." "promo_link_info": "Used when no video is set."
}, },
@@ -204,7 +195,7 @@
"poster": "Cover image", "poster": "Cover image",
"poster_info": "Shown until this clip is in the center. Leave empty to use the theme image.", "poster_info": "Shown until this clip is in the center. Leave empty to use the theme image.",
"video": "Video", "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_1": "Product 1",
"product_2": "Product 2" "product_2": "Product 2"
}, },
@@ -229,9 +220,41 @@
"rating_label": "Rating", "rating_label": "Rating",
"product": "Product" "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": { "product_page": {
"name": "Product", "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": { "collection_page": {
"name": "Collection", "name": "Collection",
@@ -239,6 +262,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.", "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" "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": { "cart_drawer": {
"name": "Cart drawer", "name": "Cart drawer",
"free_shipping": "Free shipping from", "free_shipping": "Free shipping from",
+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 %} {% liquid
This section is used in the article template to render the article page, which assign share_url = shop.url | append: article.url
displays the full content of the blog post and can optionally include a assign share_url_encoded = share_url | url_encode
comments section for customers (not shown in this example). 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 assign share_image = ''
{% endcomment %} 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 %} <div class="article full-width bg-white pb-9 font-sans text-[#212326]">
{{ article.image | image_url: width: 1000 | image_tag }} <article>
{% endif %} {% 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' %} <header class="mb-[45px] mt-7 text-center">
<p>{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}</p> <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? %} {% if blog.comments_enabled? %}
<h2>{{ 'blog.article_comments' | t }}</h2> <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 %}
{% paginate article.comments by 10 %} <div class="mt-6 flex flex-col gap-6">
{% for comment in article.comments %} {% for comment in article.comments %}
<div> <div class="border-b border-solid border-[#d2d5d9] pb-6">
<p>{{ comment.author }}</p> <p class="m-0 text-[14.4px] font-medium text-[#1a1b18]">{{ comment.author | escape }}</p>
<p> <p class="m-0 mt-1 text-[12.6px] text-[#212326]/75">
{{- comment.created_at | time_tag: format: 'date' -}} {{ comment.created_at | date: '%B %d, %Y' }}
</p> </p>
<p>{{ comment.content }}</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> </div>
{% endfor %} {% endif %}
{{ paginate | default_pagination: anchor: 'comments' }} {% if section.settings.show_share %}
{% endpaginate %} <div class="mt-7 flex flex-wrap items-center gap-x-4 gap-y-2 text-[12.6px] text-[#1a1b18]">
</div> <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 %} <div class="mt-10 text-center">
<h2>{{ 'blog.comment_form_title' | t }}</h2> <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"
{{ form.errors | default_errors }} href="{{ blog.url }}"
>
<div> <svg class="size-3.5" viewBox="0 0 14 10" fill="none" aria-hidden="true">
<label for="author">{{ 'blog.comment_form_name' | t }}</label> <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"/>
<input type="text" name="comment[author]" id="author" value="{{ form.author }}" required> </svg>
{{ 'blog.back' | t: blog: blog.title }}
</a>
</div>
</div> </div>
<div> {% if blog.previous_article or blog.next_article %}
<label for="email">{{ 'blog.comment_form_email' | t }}</label> <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">
<input type="email" name="comment[email]" id="email" value="{{ form.email }}" required> <li>
</div> {% 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> {% if section.settings.show_related and blog.articles.size > 1 %}
<label for="body">{{ 'blog.comment_form_body' | t }}</label> <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 }}">
<textarea name="comment[body]" id="body" required>{{ form.body }}</textarea> <div class="mb-[27px] flex items-center justify-between gap-4 md:flex-col md:items-start">
</div> <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 }}"> <div class="grid grid-cols-3 gap-x-[27px] gap-y-10 lg:grid-cols-2 md:grid-cols-1">
{% endform %} {% for related in blog.articles limit: 3 %}
{% endif %} {% 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 %} {% schema %}
{ {
"name": "t:general.article", "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 %} {% endschema %}
+5 -1
View File
@@ -83,7 +83,7 @@
widths: '372, 486, 744, 972', widths: '372, 486, 744, 972',
sizes: '(max-width: 1024px) calc(100vw - 30px), 486px', sizes: '(max-width: 1024px) calc(100vw - 30px), 486px',
class: 'bestsellers__promo-image', class: 'bestsellers__promo-image',
loading: 'eager' loading: 'lazy'
}} }}
{% else %} {% else %}
<img <img
@@ -92,6 +92,10 @@
alt="{{ heading | escape }}" alt="{{ heading | escape }}"
width="486" width="486"
height="550" 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 %} {% endif %}
</{{ promo_tag }}> </{{ promo_tag }}>
+119 -26
View File
@@ -1,35 +1,128 @@
{% comment %} <div class="blog full-width bg-white pb-[72px] pt-[60px] font-sans text-[#212326] md:pb-12 md:pt-10">
This section is used in the blog template to render the blog page listing all <div class="mx-auto w-full max-w-[1440px] px-[45px] md:px-5">
articles within a blog. <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 {% if section.settings.show_tags and blog.all_tags.size > 0 %}
{% endcomment %} <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]">
<h1>{{ blog.title }}</h1> <a
class="text-[12.6px] leading-none text-[#1a1b18] no-underline hover:underline {% if current_tags == blank %}underline underline-offset-[5px]{% endif %}"
{% paginate blog.articles by 5 %} href="{{ blog.url }}"
{% for article in blog.articles %} {% if current_tags == blank %}
<div> aria-current="page"
{% if article.image %} {% endif %}
{{ article.image | image_url: width: 1000 | image_tag }} >
{{- '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 %} {% endif %}
<h2> </header>
{{ 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 %}
{%- if paginate.pages > 1 -%} {% paginate blog.articles by 12 %}
{{- paginate | default_pagination -}} <div class="grid grid-cols-3 gap-x-[27px] gap-y-16 lg:grid-cols-2 md:grid-cols-1 md:gap-y-10">
{%- endif -%} {% for article in blog.articles %}
{% endpaginate %} {% 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 %} {% schema %}
{ {
"name": "t:general.blog", "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 %} {% endschema %}
+28 -17
View File
@@ -74,7 +74,7 @@
| image_tag: | image_tag:
alt: banner_title, alt: banner_title,
widths: '600, 960, 1400', widths: '600, 960, 1400',
sizes: '(max-width: 767px) 70vw, 50vw', sizes: '(max-width: 767px) 100vw, 50vw',
class: 'collection__banner-image', class: 'collection__banner-image',
loading: 'eager' loading: 'eager'
}} }}
@@ -97,6 +97,8 @@
alt="" alt=""
width="185" width="185"
height="210" height="210"
loading="lazy"
decoding="async"
> >
</div> </div>
</div> </div>
@@ -294,6 +296,7 @@
.collection__banner-media { .collection__banner-media {
height: 100%; height: 100%;
min-height: 380px; min-height: 380px;
max-height: 380px;
} }
.collection__banner-image { .collection__banner-image {
@@ -330,6 +333,8 @@
font-size: 18px; font-size: 18px;
font-weight: 300; font-weight: 300;
line-height: 1.4; line-height: 1.4;
position: relative;
z-index: 2;
} }
.collection__banner-text p { .collection__banner-text p {
@@ -597,33 +602,35 @@
@media (max-width: 767px) { @media (max-width: 767px) {
.collection__banner { .collection__banner {
grid-template-columns: 1fr; display: flex;
min-height: 250px; flex-direction: column;
min-height: 0;
background: transparent;
} }
.collection__banner-media { .collection__banner-media {
position: absolute; position: static;
inset: 0 auto 0 0; width: 100%;
width: 58%; height: 250px;
min-height: 0; min-height: 250px;
} max-height: 250px;
.collection__banner {
position: relative;
} }
.collection__banner-image { .collection__banner-image {
width: 100%;
height: 250px;
min-height: 250px; min-height: 250px;
object-fit: cover;
} }
.collection__banner-copy { .collection__banner-copy {
position: relative; position: relative;
z-index: 1; justify-content: flex-start;
min-height: 250px;
justify-content: flex-end;
gap: 15px; gap: 15px;
padding: 20px; min-height: 250px;
background: linear-gradient(90deg, rgba(247, 197, 133, 0) 0%, #f7c585 46%); padding: 77px 20px 40px;
overflow: hidden;
background: #f7c585;
} }
.collection__banner-title { .collection__banner-title {
@@ -636,7 +643,11 @@
} }
.collection__banner-blob { .collection__banner-blob {
display: none; display: block;
top: 4px;
right: 20px;
width: 153px;
transform: none;
} }
.collection__body { .collection__body {
+9
View File
@@ -54,6 +54,9 @@
width="1157" width="1157"
height="1300" height="1300"
loading="lazy" 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 %} {% endif %}
@@ -63,6 +66,8 @@
alt="{{ 'distributors.wordmark' | t }}" alt="{{ 'distributors.wordmark' | t }}"
width="324" width="324"
height="210" height="210"
loading="lazy"
decoding="async"
> >
</div> </div>
@@ -73,6 +78,8 @@
alt="" alt=""
width="355" width="355"
height="403" height="403"
loading="lazy"
decoding="async"
> >
<img <img
class="distributors__blob distributors__blob--bottom" class="distributors__blob distributors__blob--bottom"
@@ -80,6 +87,8 @@
alt="" alt=""
width="210" width="210"
height="114" height="114"
loading="lazy"
decoding="async"
> >
<div class="distributors__copy"> <div class="distributors__copy">
-9
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{ {
"type": "footer", "type": "footer",
"name": "t:general.footer", "name": "t:general.footer",
+48 -45
View File
@@ -1,26 +1,5 @@
{% liquid {% liquid
assign copyright_year = 'now' | date: '%Y' 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 form_id = 'FooterSignup-' | append: section.id
assign email_id = 'FooterEmail-' | append: section.id assign email_id = 'FooterEmail-' | append: section.id
assign message_id = 'FooterSignupMessage-' | append: section.id assign message_id = 'FooterSignupMessage-' | append: section.id
@@ -63,9 +42,24 @@
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-{{ forloop.index }}"> <ul class="footer__links" id="FooterLinks-{{ section.id }}-{{ forloop.index }}">
{% for child in link.links %} {% for child in link.links %}
<li> {% liquid
<a href="{{ child.url }}">{{ child.title }}</a> assign child_title = child.title | downcase
</li> 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 %} {% endfor %}
</ul> </ul>
{% else %} {% else %}
@@ -83,9 +77,8 @@
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-seasons"> <ul class="footer__links" id="FooterLinks-{{ section.id }}-seasons">
<li><a href="/pages/quienes-somos">{{ 'footer.seasons.about' | t }}</a></li> <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="/blogs/skincare">{{ 'footer.seasons.blog' | t }}</a></li>
<li><a href="/pages/resenas">{{ 'footer.seasons.reviews' | t }}</a></li> <li><a href="/pages/tiendas-departamentales">{{ 'footer.seasons.stores' | t }}</a></li>
<li><a href="/pages/puntos-de-venta">{{ 'footer.seasons.stores' | t }}</a></li>
</ul> </ul>
</div> </div>
<div class="footer__column footer__column--shop"> <div class="footer__column footer__column--shop">
@@ -96,11 +89,8 @@
</span> </span>
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-shop"> <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/all-products">{{ 'footer.shop.all' | t }}</a></li>
<li><a href="/collections/mas-vendidos">{{ 'footer.shop.bestsellers' | t }}</a></li> <li><a href="/collections/kits-skincare-facial">{{ 'footer.shop.kits' | 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>
</ul> </ul>
</div> </div>
<div class="footer__column footer__column--routine"> <div class="footer__column footer__column--routine">
@@ -111,12 +101,11 @@
</span> </span>
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-routine"> <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-grasa">{{ 'footer.routine.oily' | t }}</a></li>
<li><a href="/collections/piel-mixta">{{ 'footer.routine.combination' | t }}</a></li> <li><a href="/collections/piel-mixta-grasa">{{ 'footer.routine.combination' | t }}</a></li>
<li><a href="/collections/piel-seca">{{ 'footer.routine.dry' | t }}</a></li> <li><a href="/collections/piel-seca-1">{{ 'footer.routine.dry' | t }}</a></li>
<li><a href="/collections/todo-tipo">{{ 'footer.routine.all' | t }}</a></li> <li><a href="/collections/all-products">{{ 'footer.routine.all' | t }}</a></li>
<li><a href="/collections/kits-y-rutinas">{{ 'footer.routine.kits' | t }}</a></li> <li><a href="/collections/kits-skincare-facial">{{ 'footer.routine.kits' | t }}</a></li>
</ul> </ul>
</div> </div>
<div class="footer__column footer__column--help"> <div class="footer__column footer__column--help">
@@ -127,12 +116,11 @@
</span> </span>
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-help"> <ul class="footer__links" id="FooterLinks-{{ section.id }}-help">
<li><a href="/pages/preguntas-frecuentes">{{ 'footer.help.faq' | t }}</a></li> <li><a href="/policies/shipping-policy">{{ 'footer.help.shipping' | t }}</a></li>
<li><a href="{{ shipping_url }}">{{ 'footer.help.shipping' | t }}</a></li> <li><a href="/policies/refund-policy">{{ 'footer.help.returns' | t }}</a></li>
<li><a href="{{ returns_url }}">{{ 'footer.help.returns' | t }}</a></li>
<li><a href="/pages/facturacion">{{ 'footer.help.billing' | 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="/pages/politica-de-pagos">{{ 'footer.help.payments' | t }}</a></li>
<li><a href="{{ privacy_url }}">{{ 'footer.help.privacy' | t }}</a></li> <li><a href="/policies/privacy-policy">{{ 'footer.help.privacy' | t }}</a></li>
</ul> </ul>
</div> </div>
<div class="footer__column footer__column--community"> <div class="footer__column footer__column--community">
@@ -143,10 +131,9 @@
</span> </span>
</button> </button>
<ul class="footer__links" id="FooterLinks-{{ section.id }}-community"> <ul class="footer__links" id="FooterLinks-{{ section.id }}-community">
<li><a href="/pages/seasons-experts">{{ 'footer.community.experts' | t }}</a></li> <li><a href="https://seasonsexperts.com/pages/quiero-ser-distribuidor">{{ '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.distributor' | t }}</a></li>
<li><a href="/pages/glow-army">{{ 'footer.community.glow_army' | 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> </ul>
</div> </div>
{% endif %} {% endif %}
@@ -351,6 +338,22 @@
font-weight: 300; font-weight: 300;
line-height: 30px; line-height: 30px;
text-decoration: none; text-decoration: none;
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.footer__column a:hover,
.footer__column a:focus-visible {
background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
.footer__column a {
transition: none;
}
} }
.footer a:focus-visible { .footer a:focus-visible {
+172
View File
@@ -0,0 +1,172 @@
{% render 'glow-army-page' %}
{% schema %}
{
"name": "t:glow_army.name",
"tag": "section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "t:glow_army.heading",
"default": "Glow Army"
},
{
"type": "textarea",
"id": "text",
"label": "t:glow_army.text",
"default": "Nuestro espacio exclusivo dónde recompensamos que cuides tu carita. Cada compra que hagas te acerca a recompensas increíbles."
},
{
"type": "text",
"id": "join_label",
"label": "t:glow_army.join",
"default": "Unirse"
},
{
"type": "url",
"id": "join_link",
"label": "t:glow_army.join_link"
},
{
"type": "text",
"id": "points_label",
"label": "t:glow_army.points",
"default": "Ver mis puntos"
},
{
"type": "url",
"id": "points_link",
"label": "t:glow_army.points_link"
},
{
"type": "text",
"id": "how_heading",
"label": "t:glow_army.how",
"default": "Cómo funciona"
},
{
"type": "text",
"id": "earn_heading",
"label": "t:glow_army.earn",
"default": "Formas de ganar puntos"
},
{
"type": "text",
"id": "redeem_heading",
"label": "t:glow_army.redeem",
"default": "Formas de canjear puntos"
},
{
"type": "text",
"id": "referral_heading",
"label": "t:glow_army.referral_heading",
"default": "Da 10% de descuento, recibe 10% de descuento"
},
{
"type": "textarea",
"id": "referral_text",
"label": "t:glow_army.referral_text",
"default": "Únete al programa de referidos y reclama tus recompensas"
},
{
"type": "text",
"id": "referral_button",
"label": "t:glow_army.referral_button",
"default": "Únete ahora"
},
{
"type": "url",
"id": "referral_link",
"label": "t:glow_army.referral_link"
}
],
"blocks": [
{
"type": "step",
"name": "t:glow_army.step",
"settings": [
{
"type": "text",
"id": "number",
"label": "t:glow_army.number",
"default": "01"
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "Crear una cuenta"
},
{
"type": "textarea",
"id": "text",
"label": "t:glow_army.text",
"default": "Conviértete en miembro para recibir recompensas"
}
]
},
{
"type": "earn",
"name": "t:glow_army.earn_item",
"settings": [
{
"type": "select",
"id": "icon",
"label": "t:glow_army.icon",
"default": "order",
"options": [
{ "value": "order", "label": "t:glow_army.icons.order" },
{ "value": "birthday", "label": "t:glow_army.icons.birthday" },
{ "value": "review", "label": "t:glow_army.icons.review" },
{ "value": "profile", "label": "t:glow_army.icons.profile" }
]
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "Completar un pedido"
},
{
"type": "text",
"id": "text",
"label": "t:glow_army.text",
"default": "Gana 1 punto por cada $1"
}
]
},
{
"type": "reward",
"name": "t:glow_army.reward",
"settings": [
{
"type": "image_picker",
"id": "image",
"label": "t:glow_army.image"
},
{
"type": "text",
"id": "title",
"label": "t:glow_army.heading",
"default": "$50 off"
},
{
"type": "text",
"id": "text",
"label": "t:glow_army.text",
"default": "1,000 puntos"
}
]
}
],
"presets": [
{
"name": "t:glow_army.name"
}
],
"disabled_on": {
"groups": ["header", "footer"]
}
}
{% endschema %}
+1 -10
View File
@@ -1,12 +1,3 @@
/*
* ------------------------------------------------------------
* IMPORTANT: The contents of this file are auto-generated.
*
* This file may be updated by the Shopify admin theme editor
* or related systems. Please exercise caution as any changes
* made to this file may be overwritten.
* ------------------------------------------------------------
*/
{ {
"type": "header", "type": "header",
"name": "t:general.header", "name": "t:general.header",
@@ -18,5 +9,5 @@
}, },
"order": [ "order": [
"header" "header"
], ]
} }
+47 -15
View File
@@ -122,7 +122,7 @@
<li> <li>
<a <a
class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black" class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
href="{{ routes.root_url }}" href="/pages/glow-army"
> >
{{ 'header.links.glow_army' | t }} {{ 'header.links.glow_army' | t }}
</a> </a>
@@ -130,7 +130,7 @@
<li> <li>
<a <a
class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black" class="inline-flex items-center px-5 py-1 text-[14px] font-normal leading-none text-black no-underline focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-black"
href="{{ routes.root_url }}" href="https://seasonsexperts.com/pages/quiero-ser-distribuidor"
> >
{{ 'header.links.experts' | t }} {{ 'header.links.experts' | t }}
</a> </a>
@@ -183,12 +183,12 @@
assign label_hydration = 'header.dropdowns.hydration' | t assign label_hydration = 'header.dropdowns.hydration' | t
assign label_aging = 'header.dropdowns.anti_aging' | t assign label_aging = 'header.dropdowns.anti_aging' | t
assign label_spots = 'header.dropdowns.spots' | t assign label_spots = 'header.dropdowns.spots' | t
assign categories_menu = label_all | append: '::' | append: routes.all_products_collection_url | append: '|' | append: label_blockers | append: '::/collections/bloqueadores|' | append: label_moisturizers | append: '::/collections/hidratantes|' | append: label_cleansers | append: '::/collections/limpiadores|' | append: label_masks | append: '::/collections/mascarillas|' | append: label_serums | append: '::/collections/serums' assign categories_menu = label_all | append: '::/collections/all-products|' | append: label_blockers | append: '::/collections/proteccion-solar-1|' | append: label_moisturizers | append: '::/collections/hidratantes|' | append: label_cleansers | append: '::/collections/limpiadores|' | append: label_masks | append: '::/collections/mascarillas|' | append: label_serums | append: '::/collections/serum'
assign routine_menu = label_clean | append: '::/collections/limpia|' | append: label_treat | append: '::/collections/trata|' | append: label_hydrate | append: '::/collections/hidrata|' | append: label_protect | append: '::/collections/protege|' | append: label_kits | append: '::/collections/kits-y-rutinas-completas' assign routine_menu = label_clean | append: '::/collections/1-limpia|' | append: label_treat | append: '::/collections/2-trata|' | append: label_hydrate | append: '::/collections/3-hidrata|' | append: label_protect | append: '::/collections/4-protege-bloqueadores-solares|' | append: label_kits | append: '::/collections/kits-skincare-facial'
assign skin_menu = label_combination | append: '::/collections/mixta-grasa|' | append: label_oily | append: '::/collections/grasa|' | append: label_dry | append: '::/collections/seca' assign skin_menu = label_combination | append: '::/collections/piel-mixta-grasa|' | append: label_oily | append: '::/collections/piel-grasa|' | append: label_dry | append: '::/collections/piel-seca-1'
assign concern_menu = label_sun | append: '::/collections/proteccion-solar|' | append: label_oil | append: '::/collections/control-grasa|' | append: label_acne | append: '::/collections/acne|' | append: label_hydration | append: '::/collections/hidratacion|' | append: label_aging | append: '::/collections/antiedad|' | append: label_spots | append: '::/collections/manchas' assign concern_menu = label_sun | append: '::/collections/proteccion-solar-1|' | append: label_oil | append: '::/collections/control-grasa|' | append: label_acne | append: '::/collections/acne-1|' | append: label_hydration | append: '::/collections/hidratacion|' | append: label_aging | append: '::/collections/antiedad-1|' | append: label_spots | append: '::/collections/aclarar'
%} %}
{% render 'header-menu-item', title: nav_categories, url: routes.all_products_collection_url, child_menu: categories_menu %} {% render 'header-menu-item', title: nav_categories, url: '/collections/all-products', child_menu: categories_menu %}
{% render 'header-menu-item', title: nav_routine, url: routes.collections_url, child_menu: routine_menu %} {% render 'header-menu-item', title: nav_routine, url: routes.collections_url, child_menu: routine_menu %}
{% render 'header-menu-item', title: nav_skin_type, url: routes.collections_url, child_menu: skin_menu %} {% render 'header-menu-item', title: nav_skin_type, url: routes.collections_url, child_menu: skin_menu %}
{% render 'header-menu-item', title: nav_concern, url: routes.collections_url, child_menu: concern_menu %} {% render 'header-menu-item', title: nav_concern, url: routes.collections_url, child_menu: concern_menu %}
@@ -209,22 +209,17 @@
{% endfor %} {% endfor %}
{% else %} {% else %}
<li> <li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}"> <a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/proteccion-solar-1">
{{ 'header.links.sunscreen' | t }} {{ 'header.links.sunscreen' | t }}
</a> </a>
</li> </li>
<li> <li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}"> <a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/kits-skincare-facial">
{{ 'header.links.favorites' | t }}
</a>
</li>
<li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}">
{{ 'header.links.kits' | t }} {{ 'header.links.kits' | t }}
</a> </a>
</li> </li>
<li> <li>
<a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="{{ routes.collections_url }}"> <a class="inline-flex items-center justify-center rounded-full border border-solid border-black px-5 py-1 text-[14px] font-normal leading-none text-black no-underline" href="/collections/hidratantes">
{{ 'header.links.moisturizers' | t }} {{ 'header.links.moisturizers' | t }}
</a> </a>
</li> </li>
@@ -651,6 +646,43 @@
width: 128px; width: 128px;
} }
} }
.header__item > a,
.header__submenu a,
.header__utility a {
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.header__item > a:hover,
.header__item > a:focus-visible,
.header__submenu a:hover,
.header__submenu a:focus-visible,
.header__utility a:hover,
.header__utility a:focus-visible {
background-size: 100% 1px;
}
.header__pills a {
transition: background-color 0.2s ease, color 0.2s ease;
}
.header__pills a:hover,
.header__pills a:focus-visible {
background: #9dd6c7;
}
@media (prefers-reduced-motion: reduce) {
.header__item > a,
.header__submenu a,
.header__utility a,
.header__pills a {
transition: none;
}
}
{% endstylesheet %} {% endstylesheet %}
{% javascript %} {% javascript %}
+45
View File
@@ -316,6 +316,7 @@
} }
.hero__card-media { .hero__card-media {
position: relative;
display: block; display: block;
width: 100px; width: 100px;
height: 100px; height: 100px;
@@ -328,6 +329,50 @@
height: 100%; height: 100%;
max-width: none; max-width: none;
object-fit: cover; object-fit: cover;
transition: transform 0.35s ease;
}
.hero__card:hover .hero__card-image,
.hero__card:focus-within .hero__card-image {
transform: scale(1.06);
}
.hero__card-image--hover {
position: absolute;
inset: 0;
opacity: 0;
transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero__card:hover .hero__card-image--hover,
.hero__card:focus-within .hero__card-image--hover {
opacity: 1;
}
.hero__card-title {
background-image: linear-gradient(currentColor, currentColor);
background-position: 0 100%;
background-repeat: no-repeat;
background-size: 0 1px;
transition: background-size 0.25s ease;
}
.hero__card:hover .hero__card-title,
.hero__card-title:focus-visible {
background-size: 100% 1px;
}
@media (prefers-reduced-motion: reduce) {
.hero__card-image,
.hero__card-image--hover,
.hero__card-title {
transition: none;
}
.hero__card:hover .hero__card-image,
.hero__card:focus-within .hero__card-image {
transform: none;
}
} }
.hero__card-copy { .hero__card-copy {
+17 -2
View File
@@ -25,8 +25,14 @@
data-cart-url="{{ routes.cart_url }}.js" data-cart-url="{{ routes.cart_url }}.js"
data-active="{{ active_index }}" data-active="{{ active_index }}"
> >
<img class="learn__blob learn__blob--right" src="{{ 'learn-shape-right.avif' | asset_url }}" alt="" width="539" height="516"> <img class="learn__blob learn__blob--right" src="{{ 'learn-shape-right.avif' | asset_url }}" alt="" width="539" height="516"
<img class="learn__blob learn__blob--left" src="{{ 'learn-shape-left.avif' | asset_url }}" alt="" width="407" height="314"> loading="lazy"
decoding="async"
>
<img class="learn__blob learn__blob--left" src="{{ 'learn-shape-left.avif' | asset_url }}" alt="" width="407" height="376"
loading="lazy"
decoding="async"
>
<div class="learn__header"> <div class="learn__header">
<h2 class="learn__heading">{{ heading | escape }}</h2> <h2 class="learn__heading">{{ heading | escape }}</h2>
@@ -46,6 +52,10 @@
endif endif
endfor endfor
endif endif
if video_src == blank and forloop.index <= 5
assign reel_name = forloop.index | append: '-reel-ig.mp4'
assign video_src = reel_name | asset_url
endif
assign fallback_image = blank assign fallback_image = blank
case forloop.index case forloop.index
@@ -53,6 +63,8 @@
assign fallback_image = 'learn-cover-1.avif' assign fallback_image = 'learn-cover-1.avif'
when 2 when 2
assign fallback_image = 'learn-cover-2.avif' assign fallback_image = 'learn-cover-2.avif'
when 3
assign fallback_image = 'reel1.jpg'
when 4 when 4
assign fallback_image = 'learn-cover-4.avif' assign fallback_image = 'learn-cover-4.avif'
when 5 when 5
@@ -86,6 +98,9 @@
width="384" width="384"
height="680" height="680"
loading="lazy" loading="lazy"
srcset="{{ fallback_image | replace: '.avif', '-sm.avif' | asset_url }} 400w, {{ fallback_image | asset_url }} 780w"
sizes="(max-width: 1024px) 220px, 384px"
decoding="async"
> >
{% endif %} {% endif %}
{% if video_src != blank %} {% if video_src != blank %}
+3
View File
@@ -29,6 +29,9 @@
endif endif
endfor endfor
endif endif
if video_src == blank and section.settings.promo_link == blank
assign video_src = 'nuevos-productos.mp4' | asset_url
endif
assign poster = section.settings.poster assign poster = section.settings.poster
assign poster_url = blank assign poster_url = blank
+6 -2
View File
@@ -5,9 +5,13 @@
https://shopify.dev/docs/storefronts/themes/architecture/templates/page https://shopify.dev/docs/storefronts/themes/architecture/templates/page
{% endcomment %} {% endcomment %}
<h1>{{ page.title }}</h1> {% if page.handle == 'glow-army' %}
{% render 'glow-army-page' %}
{% else %}
<h1>{{ page.title }}</h1>
{{ page.content }} {{ page.content }}
{% endif %}
{% schema %} {% schema %}
{ {
+650 -162
View File
@@ -165,22 +165,63 @@
{% endif %} {% endif %}
</div> </div>
{% if product.images.size > 1 %} {% if product.images.size > 1 %}
<div class="product__thumbs"> {% assign gallery_count = 0 %}
{% if main_image != blank %}
{% assign gallery_count = 1 %}
{% endif %}
{% for image in product.images %}
{% if image.id != main_image.id %}
{% assign gallery_count = gallery_count | plus: 1 %}
{% endif %}
{% endfor %}
<div class="product__thumbs" data-product-thumbs>
{% if main_image != blank %}
<div class="product__thumb product__thumb--main">
{{
main_image
| image_url: width: 1400
| image_tag:
alt: main_alt,
loading: 'eager',
fetchpriority: 'high',
widths: '700, 1000, 1400',
sizes: '100vw',
draggable: false
}}
</div>
{% endif %}
{% for image in product.images %} {% for image in product.images %}
{% if image.id != main_image.id %} {% if image.id != main_image.id %}
{% assign thumb_alt = image.alt | default: product.title %} {% assign thumb_alt = image.alt | default: product.title %}
{{ <div class="product__thumb">
image {{
| image_url: width: 900 image
| image_tag: | image_url: width: 900
alt: thumb_alt, | image_tag:
loading: 'lazy', alt: thumb_alt,
widths: '400, 700, 900', loading: 'lazy',
sizes: '(min-width: 1120px) 28vw, 50vw' widths: '400, 700, 900',
}} sizes: '(max-width: 767px) 100vw, (min-width: 1120px) 28vw, 50vw',
draggable: false
}}
</div>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
{% if gallery_count > 1 %}
<div
class="product__gallery-progress"
data-gallery-progress
style="--slides: {{ gallery_count }}"
role="progressbar"
aria-valuemin="1"
aria-valuemax="{{ gallery_count }}"
aria-valuenow="1"
aria-label="{{ 'product_page.gallery' | t }}"
>
<span></span>
</div>
{% endif %}
{% endif %} {% endif %}
</div> </div>
@@ -428,7 +469,10 @@
}} }}
<span class="product__compare-label product__compare-label--after">{{ 'product_page.after' | t }}</span> <span class="product__compare-label product__compare-label--after">{{ 'product_page.after' | t }}</span>
</div> </div>
<img class="product__compare-mark" src="{{ 'logo-seasons.svg' | asset_url }}" alt="" width="280" height="80"> <img class="product__compare-mark" src="{{ 'logo-seasons.svg' | asset_url }}" alt="" width="280" height="80"
loading="lazy"
decoding="async"
>
</section> </section>
{% endif %} {% endif %}
@@ -458,90 +502,87 @@
</section> </section>
{% if show_reviews %} {% if show_reviews %}
<section class="product__reviews" id="product-reviews"> {% assign rating_exact = product.metafields.reviews.rating.value.rating | default: rating_value | round: 2 %}
<h2 class="product__block-title">{{ 'product_page.reviews' | t }}</h2> {% assign rating_text = rating_exact | append: '' %}
{% if rating_count > 0 %} {% unless rating_text contains '.' %}
<div class="product__summary"> {% assign rating_text = rating_text | append: '.00' %}
<div> {% else %}
<p class="product__score">{{ 'product_page.rating_of' | t: rating: rating_value }}</p> {% assign rating_decimals = rating_text | split: '.' | last %}
<p class="product__based">{{ 'product_page.based_on' | t: count: rating_count }}</p> {% if rating_decimals.size == 1 %}
</div> {% assign rating_text = rating_text | append: '0' %}
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > rating_value %} is-off{% endif %}" width="18" height="18" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
</div>
{% endif %} {% endif %}
{% endunless %}
<section
class="product__reviews"
id="product-reviews"
data-product-reviews
data-product-id="{{ product.id }}"
data-product-handle="{{ product.handle | escape }}"
data-shop="{{ shop.permanent_domain | escape }}"
data-reviews-shop="{{ section.settings.reviews_shop | escape }}"
data-reviews-storefront="{{ section.settings.reviews_storefront | escape }}"
>
<div class="product__reviews-head">
<h2 class="product__reviews-title">{{ 'product_page.reviews' | t }}</h2>
<div class="product__reviews-bar">
{% if rating_count > 0 %}
<div class="product__summary">
<div class="product__summary-score">
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > rating_value %} is-off{% endif %}" width="16" height="16" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
<p class="product__score">{{ 'product_page.rating_of' | t: rating: rating_text }}</p>
</div>
<p class="product__based">{{ 'product_page.based_on' | t: count: rating_count }}</p>
</div>
<span class="product__reviews-rule" aria-hidden="true"></span>
{% endif %}
<button
class="product__write"
type="button"
data-write-review
aria-expanded="false"
aria-controls="product-review-form"
>
{{ 'product_page.write_review' | t }}
</button>
</div>
</div>
{% if review_items != blank %} <form
<div data-review-list> id="product-review-form"
{% for review in review_items %} class="product__write-form"
{% liquid data-sent="{{ 'product_page.review_sent' | t | escape }}"
assign review_field = review.texto | default: review.text | default: review.comentario | default: review.resena data-error="{{ 'product_page.review_error' | t | escape }}"
assign review_author = review.autor.value | default: review.autor | default: review.author.value | default: review.nombre.value | default: review.name.value >
assign review_stars = review.calificacion.value | default: review.rating.value | default: 5 | round <p class="product__write-success" role="status" hidden></p>
assign review_photo = review.foto.value | default: review.image.value | default: review.avatar.value <p class="product__write-error" role="alert" hidden></p>
assign review_image = blank <label class="product__write-label" for="ReviewName">{{ 'product_page.review_name' | t }}</label>
if review_photo.preview_image != blank <input id="ReviewName" class="product__write-input" type="text" name="reviewer_name" autocomplete="name" required>
assign review_image = review_photo.preview_image <label class="product__write-label" for="ReviewEmail">{{ 'product_page.review_email' | t }}</label>
elsif review_photo.width != blank <input id="ReviewEmail" class="product__write-input" type="email" name="reviewer_email" autocomplete="email" required>
assign review_image = review_photo <fieldset class="product__write-stars">
endif <legend class="product__write-label">{{ 'product_page.review_rating' | t }}</legend>
if review_author == blank {% for star in (1..5) %}
assign review_author = 'product_page.reviewer' | t <label>
endif <input type="radio" name="score" value="{{ star }}" {% if star == 5 %}checked{% endif %}>
assign review_initial = review_author | slice: 0, 1 | upcase <span>{{ star }}</span>
assign review_plain = '' </label>
if review.id == blank
assign review_plain = review | strip
endif
%}
{% if review_field != blank or review_plain != blank %}
<article class="product__review" data-review {% if forloop.index > 3 %}hidden{% endif %}>
{% if review_image %}
{{ review_image | image_url: width: 120 | image_tag: class: 'product__avatar', alt: review_author, loading: 'lazy' }}
{% else %}
<span class="product__avatar" aria-hidden="true">{{ review_initial | escape }}</span>
{% endif %}
<div>
<p class="product__review-name">{{ review_author | escape }}</p>
<span class="product__stars" aria-hidden="true">
{% for star in (1..5) %}
<svg class="product__star{% if star > review_stars %} is-off{% endif %}" width="14" height="14" viewBox="0 0 14 14" focusable="false">
<path d="M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z" fill="currentColor"/>
</svg>
{% endfor %}
</span>
<div class="product__review-text">
{% if review_field != blank %}
{{ review_field | metafield_tag }}
{% else %}
{{ review_plain | escape | newline_to_br }}
{% endif %}
</div>
</div>
</article>
{% endif %}
{% endfor %} {% endfor %}
</div> </fieldset>
{% if review_count > 3 %} <label class="product__write-label" for="ReviewBody">{{ 'product_page.review_body' | t }}</label>
<nav class="product__pager" data-review-pager aria-label="{{ 'product_page.reviews_label' | t }}"> <textarea id="ReviewBody" class="product__write-input" name="review_body" rows="4" required></textarea>
{% for page_number in (1..review_pages) %} <button class="product__write" type="submit">{{ 'product_page.review_submit' | t }}</button>
<button type="button" data-review-page="{{ forloop.index0 }}" {% if forloop.first %}class="is-current"{% endif %} aria-label="{{ 'collection_page.page' | t: page: forloop.index }}"> </form>
{{ forloop.index }}
</button> <div class="product__review-list" data-review-list></div>
{% endfor %} <button class="product__more" type="button" data-review-more hidden>
<button type="button" data-review-next aria-label="{{ 'collection_page.next_page' | t }}"> {{ 'product_page.view_more' | t }}
<svg width="14" height="14" viewBox="0 0 14 14" aria-hidden="true" focusable="false"> </button>
<path d="M5 2.5l4.5 4.5L5 11.5" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
</nav>
{% endif %}
{% endif %}
</section> </section>
{% endif %} {% endif %}
</article> </article>
@@ -594,6 +635,20 @@
gap: 10px; gap: 10px;
} }
.product__thumb {
min-width: 0;
}
.product__thumb--main,
.product__gallery-progress {
display: none;
}
.product__thumbs img {
-webkit-user-drag: none;
user-select: none;
}
.product__badges { .product__badges {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
@@ -780,7 +835,7 @@
.product__add, .product__add,
.product__buy, .product__buy,
.product__favorite, .product__favorite,
.product__pager button { .product__more {
font-family: inherit; font-family: inherit;
} }
@@ -999,11 +1054,138 @@
pointer-events: none; pointer-events: none;
} }
.product__also, .product__also {
.product__reviews {
margin-top: 72px; margin-top: 72px;
} }
.product:has(.product__reviews) {
padding-bottom: 0;
}
.product__reviews {
margin: 72px -50px 0;
padding: 100px 100px 80px;
background: linear-gradient(180deg, #f9f9fa 0%, #e8fff9 100%);
}
.product__reviews-head {
display: flex;
flex-direction: column;
margin-bottom: 8px;
}
.product__reviews-title {
margin: 0 0 60px;
font-size: 30px;
font-weight: 500;
line-height: 1.2;
text-transform: uppercase;
}
.product__reviews-bar {
display: flex;
align-items: center;
justify-content: center;
gap: 100px;
}
.product__reviews-head .product__summary {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
margin: 0;
}
.product__summary-score {
display: flex;
align-items: center;
gap: 8px;
}
.product__reviews .product__stars {
gap: 1px;
}
.product__reviews-head .product__score,
.product__reviews-head .product__based {
margin: 0;
color: #111;
font-size: 16px;
font-weight: 300;
}
.product__reviews-rule {
flex: none;
width: 1px;
height: 70px;
background: #d9d9d9;
}
.product__write {
flex: none;
width: 326px;
height: 50px;
padding: 0 28px;
border: 0;
border-radius: 60px;
background: #9dd6c7;
color: #111;
font: inherit;
font-size: 16px;
font-weight: 300;
cursor: pointer;
}
.product__write-form {
display: none;
max-width: 640px;
margin: 20px 0 8px;
gap: 8px;
}
.product__write-form.is-open {
display: grid;
}
.product__write-label {
margin-top: 8px;
font-size: 14px;
font-weight: 500;
}
.product__write-input {
width: 100%;
box-sizing: border-box;
padding: 12px 14px;
border: 1px solid #e5e5e5;
border-radius: 10px;
font: inherit;
font-weight: 300;
}
.product__write-stars {
display: flex;
gap: 8px;
margin: 0;
padding: 0;
border: 0;
}
.product__write-stars label {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 14px;
font-weight: 300;
}
.product__write-success {
margin: 0;
font-size: 16px;
font-weight: 300;
}
.product__score { .product__score {
margin: 0; margin: 0;
font-size: 28px; font-size: 28px;
@@ -1016,68 +1198,68 @@
margin-bottom: 8px; margin-bottom: 8px;
} }
.product__review-list {
margin: 40px 140px 0;
}
.product__review { .product__review {
display: grid; display: flex;
grid-template-columns: 56px minmax(0, 1fr); flex-direction: column;
gap: 16px; gap: 10px;
padding: 20px 0; padding: 20px 50px;
border-top: 1px solid #ececec; border-top: 1px solid #e6e6e6;
}
.product__review:last-child {
border-bottom: 1px solid #e6e6e6;
}
.product__review-person {
display: flex;
align-items: center;
gap: 10px;
} }
.product__avatar { .product__avatar {
display: grid; display: grid;
width: 56px; width: 55px;
height: 56px; height: 56px;
place-items: center; place-items: center;
overflow: hidden; border: 1px solid #ececec;
border-radius: 50%; border-radius: 10px;
background: #f3f3f3; background: #fff;
font-weight: 600; color: #111;
}
img.product__avatar {
display: block;
object-fit: cover;
} }
.product__review-name { .product__review-name {
margin: 0 0 6px; margin: 0;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 300;
} }
.product__review-text { .product__review-text {
margin-top: 8px; margin: 0;
font-size: 15px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: 1.5; line-height: 22px;
} }
.product__pager { .product__more {
display: flex; display: block;
justify-content: center; margin: 28px auto 0;
gap: 8px; padding: 6px 10px;
margin-top: 28px;
}
.product__pager button {
display: grid;
width: 40px;
height: 40px;
place-items: center;
border: 0; border: 0;
border-radius: 50%;
background: transparent; background: transparent;
color: #111;
font-size: 16px;
font-weight: 500;
line-height: 1;
cursor: pointer; cursor: pointer;
} }
.product__pager button.is-current { .product__more:disabled {
background: #111; opacity: 0.5;
color: #fff; cursor: default;
}
.product__pager [data-review-next] {
background: #c9c9c9;
} }
.product [hidden] { .product [hidden] {
@@ -1102,6 +1284,23 @@
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
} }
.product__reviews {
margin-left: -20px;
margin-right: -20px;
padding-left: 40px;
padding-right: 40px;
}
.product__review-list {
margin-left: 0;
margin-right: 0;
}
.product__review {
padding-left: 0;
padding-right: 0;
}
.product__compare { .product__compare {
height: 360px; height: 360px;
} }
@@ -1112,6 +1311,60 @@
padding: 12px 16px 56px; padding: 12px 16px 56px;
} }
.product__gallery {
gap: 16px;
}
.product__thumbs {
display: flex;
gap: 0;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x mandatory;
scrollbar-width: none;
cursor: grab;
-webkit-overflow-scrolling: touch;
}
.product__thumbs::-webkit-scrollbar {
display: none;
}
.product__thumbs.is-dragging {
cursor: grabbing;
scroll-snap-type: none;
}
.product__gallery:has(.product__thumbs) .product__main {
display: none;
}
.product__thumb {
flex: 0 0 100%;
scroll-snap-align: start;
}
.product__thumb--main {
display: block;
}
.product__gallery-progress {
display: block;
position: relative;
height: 2px;
background: #d9d9d9;
}
.product__gallery-progress span {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: calc(100% / var(--slides));
background: #111;
transform: translateX(0);
}
.product__title { .product__title {
font-size: 26px; font-size: 26px;
} }
@@ -1142,11 +1395,58 @@
display: none; display: none;
} }
.product__also, .product__also {
.product__reviews {
margin-top: 40px; margin-top: 40px;
} }
.product__reviews {
margin: 40px -16px 0;
padding: 50px 15px 48px;
}
.product__reviews-title {
margin-bottom: 20px;
font-size: 20px;
}
.product__reviews-bar {
flex-direction: column;
align-items: stretch;
gap: 20px;
}
.product__reviews-rule {
display: none;
}
.product__write {
width: 100%;
height: 35px;
font-size: 12px;
font-weight: 500;
}
.product__review-list {
margin: 30px 0 0;
}
.product__review {
padding: 20px 0;
}
.product__avatar {
width: 45px;
height: 45px;
}
.product__review-name {
font-size: 15px;
}
.product__more {
font-size: 15px;
}
.product__summary { .product__summary {
align-items: flex-start; align-items: flex-start;
flex-direction: column; flex-direction: column;
@@ -1192,6 +1492,50 @@
applyWish(); applyWish();
const thumbs = root.querySelector('[data-product-thumbs]');
if (thumbs) {
let pointerId = null;
let startX = 0;
let startScroll = 0;
thumbs.addEventListener('pointerdown', (event) => {
if (event.pointerType !== 'mouse' || event.button !== 0) return;
pointerId = event.pointerId;
startX = event.clientX;
startScroll = thumbs.scrollLeft;
thumbs.classList.add('is-dragging');
thumbs.setPointerCapture(pointerId);
});
thumbs.addEventListener('pointermove', (event) => {
if (event.pointerId !== pointerId) return;
thumbs.scrollLeft = startScroll - (event.clientX - startX);
});
const endDrag = (event) => {
if (event.pointerId !== pointerId) return;
pointerId = null;
thumbs.classList.remove('is-dragging');
};
thumbs.addEventListener('pointerup', endDrag);
thumbs.addEventListener('pointercancel', endDrag);
thumbs.addEventListener('dragstart', (event) => event.preventDefault());
const progress = root.querySelector('[data-gallery-progress]');
const mark = progress ? progress.querySelector('span') : null;
const syncProgress = () => {
if (!mark || !thumbs.clientWidth) return;
const slides = thumbs.children.length;
const index = Math.max(0, Math.min(slides - 1, Math.round(thumbs.scrollLeft / thumbs.clientWidth)));
mark.style.transform = 'translateX(' + (index * 100) + '%)';
if (progress) progress.setAttribute('aria-valuenow', String(index + 1));
};
thumbs.addEventListener('scroll', syncProgress, { passive: true });
window.addEventListener('resize', syncProgress);
syncProgress();
}
const form = root.querySelector('.product__form'); const form = root.querySelector('.product__form');
const qtyInput = root.querySelector('[data-qty-input]'); const qtyInput = root.querySelector('[data-qty-input]');
@@ -1343,33 +1687,163 @@
} }
})(); })();
const reviewNodes = [...root.querySelectorAll('[data-review]')]; const reviewsRoot = root.querySelector('[data-product-reviews]');
const pager = root.querySelector('[data-review-pager]'); if (reviewsRoot) {
if (reviewNodes.length && pager) { const list = reviewsRoot.querySelector('[data-review-list]');
const pageSize = 3; const more = reviewsRoot.querySelector('[data-review-more]');
const pageButtons = [...pager.querySelectorAll('[data-review-page]')]; const writeButton = reviewsRoot.querySelector('[data-write-review]');
const showPage = (page) => { const writeForm = reviewsRoot.querySelector('#product-review-form');
const maxPage = Math.max(0, pageButtons.length - 1); const cache = new Map();
const nextPage = Math.min(Math.max(0, page), maxPage); let productExternalId = reviewsRoot.dataset.productId;
reviewNodes.forEach((node, index) => { let currentPage = 1;
const visible = index >= nextPage * pageSize && index < (nextPage + 1) * pageSize; let loading = false;
node.hidden = !visible; const reviewsShop = reviewsRoot.dataset.reviewsShop || reviewsRoot.dataset.shop;
}); const starPath = 'M7 1.2l1.45 3.22 3.5.4-2.62 2.38.74 3.46L7 8.95 3.93 10.66l.74-3.46L2.05 4.82l3.5-.4L7 1.2z';
pageButtons.forEach((button) => {
button.classList.toggle('is-current', Number(button.dataset.reviewPage) === nextPage); const plainText = (html) => {
}); const parsed = new DOMParser().parseFromString(html || '', 'text/html');
pager.dataset.page = String(nextPage); return (parsed.body.textContent || '').trim();
}; };
pager.addEventListener('click', (event) => {
const pageButton = event.target.closest('[data-review-page]'); const renderReviews = (reviews, append) => {
if (pageButton) { if (!append) list.replaceChildren();
showPage(Number(pageButton.dataset.reviewPage)); reviews.forEach((review) => {
return; const rating = Math.max(1, Math.min(5, Math.round(Number(review.rating) || 0)));
const article = document.createElement('article');
article.className = 'product__review';
article.dataset.review = '';
const stars = document.createElement('span');
stars.className = 'product__stars';
stars.setAttribute('aria-label', rating + ' de 5');
for (let star = 1; star <= 5; star += 1) {
const icon = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
icon.setAttribute('class', 'product__star' + (star > rating ? ' is-off' : ''));
icon.setAttribute('width', '16');
icon.setAttribute('height', '16');
icon.setAttribute('viewBox', '0 0 14 14');
icon.setAttribute('aria-hidden', 'true');
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
path.setAttribute('d', starPath);
path.setAttribute('fill', 'currentColor');
icon.append(path);
stars.append(icon);
}
const person = document.createElement('div');
person.className = 'product__review-person';
const avatar = document.createElement('span');
avatar.className = 'product__avatar';
avatar.setAttribute('aria-hidden', 'true');
avatar.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="8" r="3.25" stroke="currentColor" stroke-width="1.4"/><path d="M5.2 19.4c1.15-3.15 3.35-4.7 6.8-4.7s5.65 1.55 6.8 4.7" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>';
const name = document.createElement('p');
name.className = 'product__review-name';
name.textContent = review.reviewer_name || 'Cliente';
person.append(avatar, name);
const text = document.createElement('p');
text.className = 'product__review-text';
const body = plainText(review.body_html);
text.textContent = body || review.title || '';
article.append(stars, person, text);
list.append(article);
});
};
const updateMore = (page, total) => {
currentPage = page;
if (!more) return;
more.hidden = page >= total;
};
const loadPage = async (page, append) => {
if (loading || !productExternalId || !reviewsShop) return;
loading = true;
if (more) more.disabled = true;
try {
if (!cache.has(page)) {
const url = new URL('https://judge.me/reviews/reviews_for_widget');
url.searchParams.set('url', reviewsShop);
url.searchParams.set('shop_domain', reviewsShop);
url.searchParams.set('platform', 'shopify');
url.searchParams.set('page', String(page));
url.searchParams.set('per_page', '3');
url.searchParams.set('product_id', String(productExternalId));
const response = await fetch(url);
if (!response.ok) return;
cache.set(page, await response.json());
}
const data = cache.get(page);
renderReviews(data.reviews || [], append);
updateMore(page, data.pagination ? data.pagination.total_pages : 1);
} finally {
loading = false;
if (more) more.disabled = false;
} }
if (event.target.closest('[data-review-next]')) { };
showPage(Number(pager.dataset.page || 0) + 1);
} const resolveProduct = async () => {
}); if (!reviewsShop || reviewsShop === reviewsRoot.dataset.shop) return;
const storefront = (reviewsRoot.dataset.reviewsStorefront || '').replace(/\/$/, '');
const handle = reviewsRoot.dataset.productHandle;
if (!storefront || !handle) return;
const response = await fetch(storefront + '/products/' + handle + '.js');
if (!response.ok) return;
const product = await response.json();
if (product && product.id) productExternalId = String(product.id);
};
if (more) {
more.addEventListener('click', () => {
loadPage(currentPage + 1, true);
});
}
resolveProduct().then(() => loadPage(1, false)).catch(() => {});
if (writeButton && writeForm) {
const openForm = (open) => {
writeForm.classList.toggle('is-open', open);
writeButton.setAttribute('aria-expanded', open ? 'true' : 'false');
};
writeButton.addEventListener('click', () => {
openForm(!writeForm.classList.contains('is-open'));
});
writeForm.addEventListener('submit', async (event) => {
event.preventDefault();
const success = writeForm.querySelector('.product__write-success');
const error = writeForm.querySelector('.product__write-error');
if (success) success.hidden = true;
if (error) error.hidden = true;
const payload = new URLSearchParams();
payload.set('shop_domain', reviewsShop);
payload.set('platform', 'shopify');
payload.set('id', String(productExternalId || ''));
payload.set('name', writeForm.reviewer_name.value);
payload.set('email', writeForm.reviewer_email.value);
payload.set('rating', (writeForm.querySelector('input[name="score"]:checked') || {}).value || '5');
payload.set('body', writeForm.review_body.value);
try {
const response = await fetch('https://api.judge.me/api/v1/reviews', {
method: 'POST',
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
body: payload,
});
if (!response.ok) throw new Error('review');
if (success) {
success.hidden = false;
success.textContent = writeForm.dataset.sent || '';
}
writeForm.reset();
} catch (submitError) {
if (error) {
error.hidden = false;
error.textContent = writeForm.dataset.error || '';
}
}
});
}
} }
})(); })();
{% endjavascript %} {% endjavascript %}
@@ -1381,6 +1855,20 @@
{ {
"type": "paragraph", "type": "paragraph",
"content": "t:product_page.metafields" "content": "t:product_page.metafields"
},
{
"type": "text",
"id": "reviews_shop",
"label": "t:product_page.reviews_shop",
"info": "t:product_page.reviews_shop_info",
"default": "seasons-world.myshopify.com"
},
{
"type": "text",
"id": "reviews_storefront",
"label": "t:product_page.reviews_storefront",
"info": "t:product_page.reviews_storefront_info",
"default": "https://www.seasonsmexico.com"
} }
], ],
"disabled_on": { "disabled_on": {
+49 -3
View File
@@ -29,7 +29,7 @@
widths: '400, 800, 1200, 1700', widths: '400, 800, 1200, 1700',
sizes: '(max-width: 1024px) calc(100vw - 30px), 50vw', sizes: '(max-width: 1024px) calc(100vw - 30px), 50vw',
class: 'routine__cover-image', class: 'routine__cover-image',
loading: 'eager' loading: 'lazy'
}} }}
{% else %} {% else %}
<img <img
@@ -38,6 +38,10 @@
alt="{{ heading | escape }}" alt="{{ heading | escape }}"
width="849" width="849"
height="892" height="892"
srcset="{{ 'routine-photo-sm.avif' | asset_url }} 700w, {{ 'routine-photo.avif' | asset_url }} 1240w"
sizes="(max-width: 1024px) 95vw, 849px"
loading="lazy"
decoding="async"
> >
{% endif %} {% endif %}
<h2 class="routine__heading">{{ heading | escape | newline_to_br }}</h2> <h2 class="routine__heading">{{ heading | escape | newline_to_br }}</h2>
@@ -53,7 +57,21 @@
assign step_title = step_key | t assign step_title = step_key | t
endif endif
if block.settings.link != blank assign step_url = block.settings.link
if step_url == blank
case forloop.index
when 1
assign step_url = '/collections/1-limpia'
when 2
assign step_url = '/collections/2-trata'
when 3
assign step_url = '/collections/3-hidrata'
when 4
assign step_url = '/collections/4-protege-bloqueadores-solares'
endcase
endif
if step_url != blank
assign step_tag = 'a' assign step_tag = 'a'
else else
assign step_tag = 'div' assign step_tag = 'div'
@@ -76,7 +94,7 @@
class="routine__card" class="routine__card"
{{ block.shopify_attributes }} {{ block.shopify_attributes }}
{% if step_tag == 'a' %} {% if step_tag == 'a' %}
href="{{ block.settings.link }}" href="{{ step_url }}"
{% endif %} {% endif %}
> >
<span class="routine__media"> <span class="routine__media">
@@ -98,6 +116,10 @@
alt="{{ step_title | escape }}" alt="{{ step_title | escape }}"
width="415" width="415"
height="436" height="436"
srcset="{{ fallback_image | replace: '.avif', '-sm.avif' | asset_url }} 450w, {{ fallback_image | asset_url }} 750w"
sizes="(max-width: 1024px) 245px, 415px"
loading="lazy"
decoding="async"
> >
{% endif %} {% endif %}
<span class="routine__shade" aria-hidden="true"></span> <span class="routine__shade" aria-hidden="true"></span>
@@ -198,6 +220,12 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: cover;
transition: transform 0.45s ease;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: scale(1.06);
} }
.routine__shade { .routine__shade {
@@ -205,6 +233,24 @@
inset: 0; inset: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)); background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
pointer-events: none; pointer-events: none;
transition: background 0.35s ease;
}
.routine__card:hover .routine__shade,
.routine__card:focus-visible .routine__shade {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
}
@media (prefers-reduced-motion: reduce) {
.routine__image,
.routine__shade {
transition: none;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: none;
}
} }
.routine__caption { .routine__caption {
+6 -1
View File
@@ -48,6 +48,8 @@
alt="" alt=""
width="317" width="317"
height="360" height="360"
loading="lazy"
decoding="async"
> >
</div> </div>
@@ -92,7 +94,10 @@
> >
<button class="signup__submit" type="submit" aria-label="{{ 'signup.submit' | t }}"> <button class="signup__submit" type="submit" aria-label="{{ 'signup.submit' | t }}">
<span class="signup__arrow"> <span class="signup__arrow">
<img src="{{ 'signup-arrow.svg' | asset_url }}" alt="" width="20" height="20"> <img src="{{ 'signup-arrow.svg' | asset_url }}" alt="" width="20" height="20"
loading="lazy"
decoding="async"
>
</span> </span>
</button> </button>
</div> </div>
+31 -14
View File
@@ -44,6 +44,7 @@
width="308" width="308"
height="301" height="301"
loading="lazy" loading="lazy"
decoding="async"
> >
</div> </div>
<div class="skin-match__blob skin-match__blob--peach" aria-hidden="true"> <div class="skin-match__blob skin-match__blob--peach" aria-hidden="true">
@@ -53,6 +54,7 @@
width="327" width="327"
height="302" height="302"
loading="lazy" loading="lazy"
decoding="async"
> >
</div> </div>
<div class="skin-match__blob skin-match__blob--green" aria-hidden="true"> <div class="skin-match__blob skin-match__blob--green" aria-hidden="true">
@@ -62,6 +64,7 @@
width="277" width="277"
height="311" height="311"
loading="lazy" loading="lazy"
decoding="async"
> >
</div> </div>
<div class="skin-match__blob skin-match__blob--pink" aria-hidden="true"> <div class="skin-match__blob skin-match__blob--pink" aria-hidden="true">
@@ -71,6 +74,7 @@
width="338" width="338"
height="324" height="324"
loading="lazy" loading="lazy"
decoding="async"
> >
</div> </div>
@@ -100,9 +104,12 @@
class="skin-match__image skin-match__image--serum" class="skin-match__image skin-match__image--serum"
src="{{ 'skin-match-photo-serum.avif' | asset_url }}" src="{{ 'skin-match-photo-serum.avif' | asset_url }}"
alt="{{ serum_alt | escape }}" alt="{{ serum_alt | escape }}"
width="1333" width="720"
height="2000" height="1080"
loading="lazy" loading="lazy"
srcset="{{ 'skin-match-photo-serum-sm.avif' | asset_url }} 460w, {{ 'skin-match-photo-serum.avif' | asset_url }} 720w"
sizes="(max-width: 1024px) 251px, 482px"
decoding="async"
> >
{% endif %} {% endif %}
</div> </div>
@@ -124,9 +131,12 @@
class="skin-match__image skin-match__image--dropper" class="skin-match__image skin-match__image--dropper"
src="{{ 'skin-match-photo-dropper.avif' | asset_url }}" src="{{ 'skin-match-photo-dropper.avif' | asset_url }}"
alt="{{ dropper_alt | escape }}" alt="{{ dropper_alt | escape }}"
width="2498" width="600"
height="3123" height="750"
loading="lazy" loading="lazy"
srcset="{{ 'skin-match-photo-dropper-sm.avif' | asset_url }} 360w, {{ 'skin-match-photo-dropper.avif' | asset_url }} 600w"
sizes="(max-width: 1024px) 188px, 324px"
decoding="async"
> >
{% endif %} {% endif %}
</div> </div>
@@ -148,9 +158,12 @@
class="skin-match__image skin-match__image--cheek" class="skin-match__image skin-match__image--cheek"
src="{{ 'skin-match-photo-cheek.avif' | asset_url }}" src="{{ 'skin-match-photo-cheek.avif' | asset_url }}"
alt="{{ cheek_alt | escape }}" alt="{{ cheek_alt | escape }}"
width="3043" width="600"
height="3043" height="600"
loading="lazy" loading="lazy"
srcset="{{ 'skin-match-photo-cheek-sm.avif' | asset_url }} 360w, {{ 'skin-match-photo-cheek.avif' | asset_url }} 600w"
sizes="(max-width: 1024px) 193px, 332px"
decoding="async"
> >
{% endif %} {% endif %}
</div> </div>
@@ -172,9 +185,12 @@
class="skin-match__image skin-match__image--jar" class="skin-match__image skin-match__image--jar"
src="{{ 'skin-match-photo-jar.avif' | asset_url }}" src="{{ 'skin-match-photo-jar.avif' | asset_url }}"
alt="{{ jar_alt | escape }}" alt="{{ jar_alt | escape }}"
width="4096" width="1440"
height="2731" height="960"
loading="lazy" loading="lazy"
srcset="{{ 'skin-match-photo-jar-sm.avif' | asset_url }} 960w, {{ 'skin-match-photo-jar.avif' | asset_url }} 1440w"
sizes="(max-width: 1024px) 522px, 1002px"
decoding="async"
> >
{% endif %} {% endif %}
</div> </div>
@@ -189,7 +205,9 @@
{{ button_label | escape }} {{ button_label | escape }}
</a> </a>
{% else %} {% else %}
<span class="skin-match__button">{{ button_label | escape }}</span> <button class="skin-match__button" type="button" data-open-aitana>
{{ button_label | escape }}
</button>
{% endif %} {% endif %}
</div> </div>
</div> </div>
@@ -375,25 +393,24 @@
justify-content: center; justify-content: center;
margin: 50px auto 0; margin: 50px auto 0;
padding: 15px; padding: 15px;
border: 0;
border-radius: 60px; border-radius: 60px;
background: #9dd6c7; background: #9dd6c7;
color: #000; color: #000;
font-family: inherit;
font-size: 16px; font-size: 16px;
font-weight: 300; font-weight: 300;
line-height: normal; line-height: normal;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
}
a.skin-match__button {
cursor: pointer; cursor: pointer;
} }
a.skin-match__button:hover { .skin-match__button:hover {
filter: brightness(0.96); filter: brightness(0.96);
} }
a.skin-match__button:focus-visible { .skin-match__button:focus-visible {
outline: 2px solid #000; outline: 2px solid #000;
outline-offset: 2px; outline-offset: 2px;
} }
+8 -3
View File
@@ -25,6 +25,8 @@
alt="" alt=""
width="434" width="434"
height="486" height="486"
loading="lazy"
decoding="async"
> >
<div class="testimonials__header"> <div class="testimonials__header">
@@ -45,7 +47,7 @@
{% unless forloop.first %}hidden{% endunless %} {% unless forloop.first %}hidden{% endunless %}
> >
<div class="testimonials__meta"> <div class="testimonials__meta">
<div class="testimonials__stars" aria-label="{{ 'testimonials.rating' | t: rating: block.settings.rating }}"> <div class="testimonials__stars" role="img" aria-label="{{ 'testimonials.rating' | t: rating: block.settings.rating }}">
{% for index in (1..5) %} {% for index in (1..5) %}
<span class="testimonials__star{% if index > block.settings.rating %} is-off{% endif %}" aria-hidden="true"> <span class="testimonials__star{% if index > block.settings.rating %} is-off{% endif %}" aria-hidden="true">
<svg width="15" height="15" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="15" height="15" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -152,7 +154,10 @@
{% unless variant.available %}disabled{% endunless %} {% unless variant.available %}disabled{% endunless %}
aria-label="{{ 'testimonials.add_to_cart' | t: product: slide_product.title }}" aria-label="{{ 'testimonials.add_to_cart' | t: product: slide_product.title }}"
> >
<img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25"> <img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25"
loading="lazy"
decoding="async"
>
</button> </button>
<button <button
class="testimonials__buy" class="testimonials__buy"
@@ -463,7 +468,7 @@
} }
.testimonials__compare { .testimonials__compare {
color: #808181; color: #6e6f6f;
font-weight: 400; font-weight: 400;
} }
+4 -1
View File
@@ -114,7 +114,10 @@
{% unless variant.available %}disabled{% endunless %} {% unless variant.available %}disabled{% endunless %}
aria-label="{{ 'bestsellers.add_to_cart' | t }}" aria-label="{{ 'bestsellers.add_to_cart' | t }}"
> >
<img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25"> <img src="{{ 'testimonials-bag.svg' | asset_url }}" alt="" width="25" height="25"
loading="lazy"
decoding="async"
>
</button> </button>
<button <button
class="bestsellers__buy" class="bestsellers__buy"
+83
View File
@@ -0,0 +1,83 @@
{% doc %}
Article card used on the blog index and on related articles.
@param {article} article - Article to render
@param {boolean} [show_excerpt] - Shows the excerpt and read-more label
@param {boolean} [show_author] - Shows the author next to the date
@param {boolean} [eager] - Loads the image immediately
@param {string} [heading_tag] - Heading element, h2 or h3
@example
{% render 'blog-card', article: article, show_excerpt: true, show_author: true %}
{% enddoc %}
{% liquid
if heading_tag == blank
assign heading_tag = 'h2'
endif
if eager
assign image_loading = 'eager'
else
assign image_loading = 'lazy'
endif
assign image_alt = ''
if article.image != blank
if article.image.alt != blank
assign image_alt = article.image.alt
else
assign image_alt = article.title
endif
endif
assign excerpt = article.excerpt_or_content | strip_html | truncate: 180
assign published = article.published_at | date: '%B %d, %Y'
%}
<article class="min-w-0" aria-labelledby="Article-{{ article.id }}">
<a class="group flex flex-col text-inherit no-underline" href="{{ article.url }}">
<div class="overflow-hidden rounded-[18px] bg-[#f3f3f3]">
{% if article.image != blank %}
{{
article.image
| image_url: width: 1200
| image_tag:
loading: image_loading,
widths: '414, 600, 828, 1200',
sizes: '(max-width: 767px) 100vw, (max-width: 1024px) 50vw, 33vw',
alt: image_alt,
class: 'aspect-[3/2] w-full object-cover transition duration-500 ease-out group-hover:scale-105'
}}
{% else %}
<div class="aspect-[3/2] w-full"></div>
{% endif %}
</div>
<div class="flex flex-col pt-[13.5px]">
<{{ heading_tag }}
id="Article-{{ article.id }}"
class="m-0 text-[22px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18]"
>
{{- article.title | escape -}}
</{{ heading_tag }}>
<p class="m-0 mt-[6px] text-[9px] font-normal uppercase leading-none tracking-[1.17px] text-[#212326]/75">
<time datetime="{{ article.published_at | date: '%Y-%m-%d' }}">{{ published }}</time>
{% if show_author and article.author != blank %}
<span class="px-[6px]" aria-hidden="true">·</span>
<span>{{ article.author | escape }}</span>
{% endif %}
</p>
{% if show_excerpt and excerpt != blank %}
<p class="mb-[12.6px] mt-[13.5px] line-clamp-3 text-[12.6px] font-normal leading-[21px] text-[#212326]/75">
{{ excerpt | escape }}
</p>
<span class="text-[12.6px] font-normal leading-[1.89] text-[#1a1b18]">
{{- 'blog.read_more' | t -}}
</span>
{% endif %}
</div>
</a>
</article>
+451
View File
@@ -0,0 +1,451 @@
{% doc %}
Renders the Glow Army rewards page.
When the Glow Army section renders this snippet, its settings and blocks are used.
On the default page template it falls back to the theme copy.
@example
{% render 'glow-army-page' %}
{% enddoc %}
{% liquid
assign glow_editor = false
if section.type == 'glow-army'
assign glow_editor = true
endif
assign heading = 'glow_army.heading' | t
if glow_editor
if section.settings.heading != blank
assign heading = section.settings.heading
endif
endif
assign intro = 'glow_army.text' | t
assign join_label = 'glow_army.join' | t
assign points_label = 'glow_army.points' | t
assign join_url = routes.account_register_url
assign points_url = routes.account_url
assign how_heading = 'glow_army.how' | t
assign earn_heading = 'glow_army.earn' | t
assign redeem_heading = 'glow_army.redeem' | t
assign referral_heading = 'glow_army.referral_heading' | t
assign referral_text = 'glow_army.referral_text' | t
assign referral_button = 'glow_army.referral_button' | t
assign referral_url = join_url
if glow_editor
if section.settings.text != blank
assign intro = section.settings.text
endif
if section.settings.join_label != blank
assign join_label = section.settings.join_label
endif
if section.settings.points_label != blank
assign points_label = section.settings.points_label
endif
if section.settings.join_link != blank
assign join_url = section.settings.join_link
endif
if section.settings.points_link != blank
assign points_url = section.settings.points_link
endif
if section.settings.how_heading != blank
assign how_heading = section.settings.how_heading
endif
if section.settings.earn_heading != blank
assign earn_heading = section.settings.earn_heading
endif
if section.settings.redeem_heading != blank
assign redeem_heading = section.settings.redeem_heading
endif
if section.settings.referral_heading != blank
assign referral_heading = section.settings.referral_heading
endif
if section.settings.referral_text != blank
assign referral_text = section.settings.referral_text
endif
if section.settings.referral_button != blank
assign referral_button = section.settings.referral_button
endif
if section.settings.referral_link != blank
assign referral_url = section.settings.referral_link
endif
endif
%}
<section class="glow-army" id="GlowArmy-{{ section.id }}">
<div class="glow-army__hero">
<div class="glow-army__hero-copy">
<h1 class="glow-army__title">{{ heading }}</h1>
<p class="glow-army__intro">{{ intro }}</p>
<div class="glow-army__actions">
<a class="glow-army__button glow-army__button--fill" href="{{ join_url }}">{{ join_label }}</a>
<a class="glow-army__button glow-army__button--ghost" href="{{ points_url }}">{{ points_label }}</a>
</div>
</div>
</div>
{% if section.blocks.size > 0 %}
<div class="glow-army__body">
{% assign step_count = 0 %}
{% assign earn_count = 0 %}
{% assign reward_count = 0 %}
{% for block in section.blocks %}
{% if block.type == 'step' %}
{% assign step_count = step_count | plus: 1 %}
{% endif %}
{% if block.type == 'earn' %}
{% assign earn_count = earn_count | plus: 1 %}
{% endif %}
{% if block.type == 'reward' %}
{% assign reward_count = reward_count | plus: 1 %}
{% endif %}
{% endfor %}
{% if step_count > 0 %}
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ how_heading }}</h2>
<ol class="glow-army__steps">
{% for block in section.blocks %}
{% if block.type == 'step' %}
<li class="glow-army__step" {{ block.shopify_attributes }}>
<p class="glow-army__number">{{ block.settings.number }}</p>
<h3 class="glow-army__card-title">{{ block.settings.title }}</h3>
<p class="glow-army__card-text">{{ block.settings.text }}</p>
</li>
{% endif %}
{% endfor %}
</ol>
</div>
{% endif %}
{% if earn_count > 0 %}
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ earn_heading }}</h2>
<ul class="glow-army__cards">
{% for block in section.blocks %}
{% if block.type == 'earn' %}
<li class="glow-army__card" {{ block.shopify_attributes }}>
<span class="glow-army__icon" aria-hidden="true">
{% case block.settings.icon %}
{% when 'birthday' %}
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M6 22.5h20v3.2a2.3 2.3 0 0 1-2.3 2.3H8.3A2.3 2.3 0 0 1 6 25.7v-3.2Z" stroke="currentColor" stroke-width="1.4"/><path d="M6.5 22.5c1.2-1.6 2.2-1.6 3.4 0s2.2 1.6 3.4 0 2.2-1.6 3.4 0 2.2 1.6 3.4 0 2.2-1.6 3.4 0" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M16 14.2v8.3M16 8.2c.8 1.3.4 2.4-.6 3.1" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
{% when 'review' %}
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M8.5 10.5h9.2a3 3 0 0 1 3 3v4.2a3 3 0 0 1-3 3H14l-3.2 2.6v-2.6H8.5a3 3 0 0 1-3-3v-4.2a3 3 0 0 1 3-3Z" stroke="currentColor" stroke-width="1.4"/><path d="M16.2 12.2h7.3a3 3 0 0 1 3 3v3.4a3 3 0 0 1-3 3h-.4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
{% when 'profile' %}
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="8" y="6.5" width="16" height="19" rx="2" stroke="currentColor" stroke-width="1.4"/><path d="M12 12.5h8M12 16.5h8M12 20.5h5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
{% else %}
<svg width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="8" y="11" width="16" height="13" rx="2.2" stroke="currentColor" stroke-width="1.4"/><path d="M12.5 11V9.8a3.5 3.5 0 0 1 7 0V11" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M16 16.2v3.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg>
{% endcase %}
</span>
<h3 class="glow-army__card-title">{{ block.settings.title }}</h3>
<p class="glow-army__card-text">{{ block.settings.text }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
{% if reward_count > 0 %}
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ redeem_heading }}</h2>
<ul class="glow-army__cards">
{% for block in section.blocks %}
{% if block.type == 'reward' %}
<li class="glow-army__card" {{ block.shopify_attributes }}>
{% if block.settings.image != blank %}
{{
block.settings.image
| image_url: width: 160
| image_tag: class: 'glow-army__reward-image', alt: block.settings.title, widths: '80, 160', loading: 'lazy'
}}
{% endif %}
<h3 class="glow-army__card-title">{{ block.settings.title }}</h3>
<p class="glow-army__card-text">{{ block.settings.text }}</p>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
</div>
{% else %}
<div class="glow-army__body">
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ how_heading }}</h2>
<ol class="glow-army__steps">
<li class="glow-army__step">
<p class="glow-army__number">01</p>
<h3 class="glow-army__card-title">{{ 'glow_army.steps.one_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.steps.one_text' | t }}</p>
</li>
<li class="glow-army__step">
<p class="glow-army__number">02</p>
<h3 class="glow-army__card-title">{{ 'glow_army.steps.two_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.steps.two_text' | t }}</p>
</li>
<li class="glow-army__step">
<p class="glow-army__number">03</p>
<h3 class="glow-army__card-title">{{ 'glow_army.steps.three_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.steps.three_text' | t }}</p>
</li>
</ol>
</div>
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ earn_heading }}</h2>
<ul class="glow-army__cards">
<li class="glow-army__card">
<span class="glow-army__icon" aria-hidden="true"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="8" y="11" width="16" height="13" rx="2.2" stroke="currentColor" stroke-width="1.4"/><path d="M12.5 11V9.8a3.5 3.5 0 0 1 7 0V11" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M16 16.2v3.2" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></span>
<h3 class="glow-army__card-title">{{ 'glow_army.earn_items.order_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.earn_items.order_text' | t }}</p>
</li>
<li class="glow-army__card">
<span class="glow-army__icon" aria-hidden="true"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M6 22.5h20v3.2a2.3 2.3 0 0 1-2.3 2.3H8.3A2.3 2.3 0 0 1 6 25.7v-3.2Z" stroke="currentColor" stroke-width="1.4"/><path d="M6.5 22.5c1.2-1.6 2.2-1.6 3.4 0s2.2 1.6 3.4 0 2.2-1.6 3.4 0 2.2 1.6 3.4 0 2.2-1.6 3.4 0" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/><path d="M16 14.2v8.3M16 8.2c.8 1.3.4 2.4-.6 3.1" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></span>
<h3 class="glow-army__card-title">{{ 'glow_army.earn_items.birthday_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.earn_items.birthday_text' | t }}</p>
</li>
<li class="glow-army__card">
<span class="glow-army__icon" aria-hidden="true"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M8.5 10.5h9.2a3 3 0 0 1 3 3v4.2a3 3 0 0 1-3 3H14l-3.2 2.6v-2.6H8.5a3 3 0 0 1-3-3v-4.2a3 3 0 0 1 3-3Z" stroke="currentColor" stroke-width="1.4"/><path d="M16.2 12.2h7.3a3 3 0 0 1 3 3v3.4a3 3 0 0 1-3 3h-.4" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></span>
<h3 class="glow-army__card-title">{{ 'glow_army.earn_items.review_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.earn_items.review_text' | t }}</p>
</li>
<li class="glow-army__card">
<span class="glow-army__icon" aria-hidden="true"><svg width="32" height="32" viewBox="0 0 32 32" fill="none"><rect x="8" y="6.5" width="16" height="19" rx="2" stroke="currentColor" stroke-width="1.4"/><path d="M12 12.5h8M12 16.5h8M12 20.5h5" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg></span>
<h3 class="glow-army__card-title">{{ 'glow_army.earn_items.profile_title' | t }}</h3>
<p class="glow-army__card-text">{{ 'glow_army.earn_items.profile_text' | t }}</p>
</li>
</ul>
</div>
<div class="glow-army__block">
<h2 class="glow-army__heading">{{ redeem_heading }}</h2>
<ul class="glow-army__cards">
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.rate_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.rate_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.off_50_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.off_50_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.balm_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.balm_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.off_100_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.off_100_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.toner_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.toner_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.off_200_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.off_200_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.off_300_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.off_300_text' | t }}</p></li>
<li class="glow-army__card"><h3 class="glow-army__card-title">{{ 'glow_army.rewards.sunscreen_title' | t }}</h3><p class="glow-army__card-text">{{ 'glow_army.rewards.sunscreen_text' | t }}</p></li>
</ul>
</div>
</div>
{% endif %}
<div class="glow-army__referral">
<div class="glow-army__referral-copy">
<h2 class="glow-army__referral-title">{{ referral_heading }}</h2>
<p class="glow-army__intro">{{ referral_text }}</p>
<a class="glow-army__button glow-army__button--fill" href="{{ referral_url }}">{{ referral_button }}</a>
</div>
</div>
</section>
{% stylesheet %}
.glow-army {
box-sizing: border-box;
width: 100%;
padding: 24px 50px 88px;
background: #fff;
color: #111;
font-family: inherit;
}
.glow-army__hero,
.glow-army__referral {
display: flex;
align-items: flex-end;
min-height: 560px;
padding: 72px 64px;
border-radius: 8px;
background: linear-gradient(105deg, #f08a62 0%, #f6b89a 48%, #f8d5c8 100%);
color: #fff;
}
.glow-army__hero-copy,
.glow-army__referral-copy {
max-width: 560px;
}
.glow-army__title,
.glow-army__referral-title {
margin: 0;
font-size: 64px;
font-weight: 400;
line-height: 1.05;
letter-spacing: -0.02em;
}
.glow-army__referral-title {
font-size: 40px;
line-height: 1.15;
}
.glow-army__intro {
max-width: 460px;
margin: 18px 0 0;
font-size: 16px;
font-weight: 300;
line-height: 1.45;
}
.glow-army__actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 28px;
}
.glow-army__button {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 160px;
height: 48px;
padding: 0 24px;
border-radius: 999px;
font-size: 16px;
font-weight: 500;
line-height: 1;
text-decoration: none;
}
.glow-army__button--fill {
background: #e36b4a;
color: #fff;
}
.glow-army__button--ghost {
background: #fff;
color: #e36b4a;
}
.glow-army__referral .glow-army__button {
margin-top: 28px;
}
.glow-army__body {
padding: 72px 0 24px;
}
.glow-army__block + .glow-army__block {
margin-top: 72px;
}
.glow-army__heading {
margin: 0 0 40px;
font-size: 36px;
font-weight: 400;
line-height: 1.2;
text-align: center;
}
.glow-army__steps,
.glow-army__cards {
display: grid;
gap: 20px;
margin: 0;
padding: 0;
list-style: none;
}
.glow-army__steps {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.glow-army__cards {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.glow-army__step,
.glow-army__card {
text-align: center;
}
.glow-army__card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 210px;
padding: 28px 20px;
border: 1px solid #ececec;
border-radius: 16px;
}
.glow-army__number {
margin: 0;
color: #e36b4a;
font-size: 64px;
font-weight: 400;
line-height: 1;
letter-spacing: 0.04em;
}
.glow-army__icon {
display: grid;
margin-bottom: 16px;
color: #e36b4a;
place-items: center;
}
.glow-army__reward-image {
width: 72px;
height: 72px;
margin-bottom: 12px;
object-fit: contain;
}
.glow-army__card-title {
margin: 14px 0 0;
font-size: 18px;
font-weight: 600;
line-height: 1.3;
}
.glow-army__step .glow-army__card-title {
margin-top: 18px;
}
.glow-army__card-text {
margin: 8px 0 0;
color: #5c5c5c;
font-size: 15px;
font-weight: 300;
line-height: 1.4;
}
.glow-army__referral {
min-height: 420px;
margin-top: 72px;
}
@media (max-width: 1024px) {
.glow-army {
padding: 16px 20px 64px;
}
.glow-army__hero,
.glow-army__referral {
min-height: 420px;
padding: 40px 24px;
}
.glow-army__title {
font-size: 48px;
}
.glow-army__referral-title,
.glow-army__heading {
font-size: 30px;
}
.glow-army__steps,
.glow-army__cards {
grid-template-columns: 1fr;
}
}
{% endstylesheet %}
+17
View File
@@ -10,7 +10,12 @@
{% liquid {% liquid
assign variant = product.selected_or_first_available_variant assign variant = product.selected_or_first_available_variant
assign card_image = product.featured_image assign card_image = product.featured_image
assign hover_image = blank
assign image_alt = card_image.alt | default: product.title assign image_alt = card_image.alt | default: product.title
for image in product.images offset: 1 limit: 1
assign hover_image = image
endfor
%} %}
<article class="hero__card"> <article class="hero__card">
@@ -26,6 +31,18 @@
class: 'hero__card-image', class: 'hero__card-image',
loading: 'eager' loading: 'eager'
}} }}
{% if hover_image != blank %}
{{
hover_image
| image_url: width: 200
| image_tag:
alt: '',
widths: '100, 140, 200',
sizes: '(max-width: 1023px) 70px, 100px',
class: 'hero__card-image hero__card-image--hover',
loading: 'lazy'
}}
{% endif %}
{% endif %} {% endif %}
</a> </a>
+13 -3
View File
@@ -1,3 +1,10 @@
{%- if settings.favicon != blank -%}
<link rel="icon" type="image/png" href="{{ settings.favicon | image_url: width: 192, height: 192 }}">
<link rel="apple-touch-icon" href="{{ settings.favicon | image_url: width: 180, height: 180 }}">
{%- else -%}
<link rel="icon" type="image/png" href="{{ 'favicon-seasons.png' | asset_url }}">
<link rel="apple-touch-icon" href="{{ 'favicon-seasons.png' | asset_url }}">
{%- endif -%}
<meta charset="utf-8"> <meta charset="utf-8">
{% render 'rocket-delay' %} {% render 'rocket-delay' %}
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -7,7 +14,7 @@
assign og_title = page_title | default: shop.name assign og_title = page_title | default: shop.name
assign og_url = canonical_url | default: request.origin assign og_url = canonical_url | default: request.origin
assign og_type = 'website' assign og_type = 'website'
assign og_description = page_description | default: shop.description | default: shop.name assign og_description = page_description | default: settings.default_meta_description | default: shop.description | default: shop.name
if request.page_type == 'product' if request.page_type == 'product'
assign og_type = 'product' assign og_type = 'product'
@@ -98,9 +105,12 @@
href="{{ canonical_url }}" href="{{ canonical_url }}"
> >
{% if page_description %} {%- liquid
assign meta_description = page_description | default: settings.default_meta_description | default: shop.description
-%}
{% if meta_description != blank %}
<meta <meta
name="description" name="description"
content="{{ page_description | escape }}" content="{{ meta_description | strip_newlines | strip | truncate: 160 | escape }}"
> >
{% endif %} {% endif %}
+3
View File
@@ -23,6 +23,9 @@
script.setAttribute('data-rocket-src', src); script.setAttribute('data-rocket-src', src);
script.removeAttribute('src'); script.removeAttribute('src');
} }
// Keep ES modules as modules when they are released later (prevents
// "Cannot use import statement outside a module" on runtime-injected scripts).
if ((script.getAttribute('type') || '').toLowerCase() === 'module') script.setAttribute('data-rocket-type', 'module');
script.setAttribute('type', 'rocketlazyloadscript'); script.setAttribute('type', 'rocketlazyloadscript');
}; };
+61
View File
@@ -0,0 +1,61 @@
{%- comment -%}
WhatsApp Coupon Widget (Aitana) — rendered right before </body> in layout/theme.liquid.
Performance best practices baked in:
• preconnect + dns-prefetch → in <head> (layout/theme.liquid), warms TLS to the widget host
• First-interaction only → loads on first scroll/touch/click/key/mouse move (no timer)
• fetchpriority="low" → lets fonts/images/CSS win the network
• crossorigin="anonymous" → enables cacheable, CORS-safe fetch
IMPORTANT: this theme's rocket-delay snippet holds every <script> without a
`nolazy` attribute (including scripts injected later). Both the loader and the
injected widget script carry `nolazy` so they are not intercepted; the loader
already defers itself.
The modal open delay is controlled from the Aitana admin (Settings → Lead
capture → "Modal auto-open delay"), no theme redeploy needed.
Not loaded inside the theme editor so the modal doesn't interrupt editing.
{%- endcomment -%}
{%- unless request.design_mode -%}
<script nolazy>
(function () {
var SRC = "https://bpuemzaabpwmxvfcorjc.supabase.co/functions/v1/coupon-widget";
var EVENTS = ['scroll', 'touchstart', 'pointerdown', 'mousemove', 'keydown', 'wheel'];
var triggered = false;
function inject() {
var s = document.createElement('script');
s.src = SRC; s.defer = true; s.crossOrigin = 'anonymous';
s.setAttribute('fetchpriority', 'low');
s.setAttribute('nolazy', '');
document.body.appendChild(s);
}
// Loads ONLY on the visitor's first interaction (no timer): keeps the widget
// and Aitana's Lottie player out of the initial load / Lighthouse window.
// Interactions during page load count too; injection then waits for `load`.
function onFirstInteraction() {
if (triggered) return; triggered = true;
EVENTS.forEach(function (ev) { window.removeEventListener(ev, onFirstInteraction, { passive: true }); });
if (document.readyState === 'complete') inject();
else window.addEventListener('load', inject, { once: true });
}
EVENTS.forEach(function (ev) { window.addEventListener(ev, onFirstInteraction, { passive: true }); });
function clickAitana() {
var fab = document.getElementById('aitana-fab');
if (!fab) return false;
fab.click();
return true;
}
document.addEventListener('click', function (event) {
var trigger = event.target.closest('[data-open-aitana]');
if (!trigger) return;
if (clickAitana()) return;
if (!document.querySelector('script[src="' + SRC + '"]')) inject();
triggered = true;
var tries = 0;
var timer = window.setInterval(function () {
tries += 1;
if (clickAitana() || tries > 40) window.clearInterval(timer);
}, 150);
});
})();
</script>
{%- endunless -%}
+67
View File
@@ -1,3 +1,70 @@
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@layer components {
.article-rte {
@apply text-[14.4px] leading-[1.89] text-[#212326];
}
.article-rte > :first-child {
margin-top: 0;
}
.article-rte h2 {
@apply my-[29px] text-[35px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[26px];
}
.article-rte h3 {
@apply mb-3 mt-6 text-[26px] font-light leading-[1.27] tracking-[0.6px] text-[#1a1b18] md:text-[22px];
}
.article-rte p {
@apply mb-[14.4px];
}
.article-rte ul,
.article-rte ol {
@apply mb-[14.4px] pl-5;
}
.article-rte ul {
list-style: disc;
}
.article-rte ol {
list-style: decimal;
}
.article-rte li {
@apply mb-[4.5px];
}
.article-rte a {
@apply text-[#1a1b18] underline underline-offset-[3px];
}
.article-rte img {
@apply my-6 h-auto max-w-full rounded-[18px];
}
.article-rte blockquote {
@apply my-6 border-l-2 border-solid border-brand-mint pl-4;
}
.article-rte strong {
@apply font-medium;
}
.about-faq summary::-webkit-details-marker {
display: none;
}
.about-faq summary {
list-style: none;
}
.about-faq details[open] .about-faq__icon {
transform: rotate(45deg);
}
}
+1 -10
View File
@@ -1,13 +1,4 @@
/* {
* ------------------------------------------------------------
* 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.
* ------------------------------------------------------------
*/
{
"sections": { "sections": {
"main": { "main": {
"type": "404", "type": "404",
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
+50 -23
View File
@@ -32,9 +32,9 @@
"featured_label": "Producto destacado", "featured_label": "Producto destacado",
"media_type": "video", "media_type": "video",
"social_label": "Síguenos", "social_label": "Síguenos",
"instagram_url": "", "instagram_url": "https://www.instagram.com/seasonsmx/",
"facebook_url": "", "facebook_url": "https://www.facebook.com/seasonsmexico2/",
"linkedin_url": "" "linkedin_url": "https://www.linkedin.com/company/seasons-love-your-skin/home/"
} }
}, },
"bestsellers": { "bestsellers": {
@@ -53,28 +53,28 @@
"type": "step", "type": "step",
"settings": { "settings": {
"title": "Paso 1: Limpia", "title": "Paso 1: Limpia",
"link": "" "link": "/collections/1-limpia"
} }
}, },
"step_2": { "step_2": {
"type": "step", "type": "step",
"settings": { "settings": {
"title": "Paso 2: Trata", "title": "Paso 2: Trata",
"link": "" "link": "/collections/2-trata"
} }
}, },
"step_3": { "step_3": {
"type": "step", "type": "step",
"settings": { "settings": {
"title": "Paso 3: Hidrata", "title": "Paso 3: Hidrata",
"link": "" "link": "/collections/3-hidrata"
} }
}, },
"step_4": { "step_4": {
"type": "step", "type": "step",
"settings": { "settings": {
"title": "Paso 4: Protege", "title": "Paso 4: Protege",
"link": "" "link": "/collections/4-protege-bloqueadores-solares"
} }
} }
}, },
@@ -122,7 +122,6 @@
"collection": "", "collection": "",
"products_to_show": 8, "products_to_show": 8,
"poster": "shopify://shop_images/Mask_group.png", "poster": "shopify://shop_images/Mask_group.png",
"video": "shopify://files/videos/home-news.mp4",
"promo_link": "" "promo_link": ""
} }
}, },
@@ -132,38 +131,36 @@
"clip_1": { "clip_1": {
"type": "clip", "type": "clip",
"settings": { "settings": {
"product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", "product_1": "limpiador-facial-pdrn-exosomas-150ml",
"product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product_2": "gel-hidratante-reafirmante-pdrn-exosomas-50ml"
} }
}, },
"clip_2": { "clip_2": {
"type": "clip", "type": "clip",
"settings": { "settings": {
"product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", "product_1": "gel-contorno-de-ojos-pepino-laminaria",
"product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product_2": "suero-regenerativo-pdrn-exosomas-30ml"
} }
}, },
"clip_3": { "clip_3": {
"type": "clip", "type": "clip",
"settings": { "settings": {
"poster": "shopify://shop_images/Creias_que_reaplicar_protector_solar_aun_con_maquillaje_era_imposible_Te_invito_a_checar_las_p_1.jpg",
"video": "shopify://files/videos/creias-que-reaplicar-protector-solar-aun-con-maquillaje-era-imposible_xCwPCccA.mp4",
"product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30",
"product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product_2": "duo-solar-antibrillo-proteccion-y-retoque-todo-el-dia"
} }
}, },
"clip_4": { "clip_4": {
"type": "clip", "type": "clip",
"settings": { "settings": {
"product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", "product_1": "suero-facial-triple-matrix",
"product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product_2": "suero-facial-hidratante-antioxidante-vitamina-c"
} }
}, },
"clip_5": { "clip_5": {
"type": "clip", "type": "clip",
"settings": { "settings": {
"product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", "product_1": "suero-facial-triple-matrix",
"product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product_2": "piel-mixta-antiedad"
} }
} }
}, },
@@ -205,16 +202,46 @@
"review_1": { "review_1": {
"type": "review", "type": "review",
"settings": { "settings": {
"quote": "Tengo piel sensible y atópica y es el único bloqueador que me cae bien, la sensación es increíble y he notado que se disminuyen súper rápido las marcas post acné, lo amo, la verdad 😌💕", "quote": "Se lo compre a mi novio y esta feliz con los resultados en su rostro, es ligero facil de utilizar ha notado cambios en su piel, esta enamorado del protector solar en barra",
"author": "María José", "author": "Ivonne M.",
"rating": 5, "rating": 5,
"product": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" "product": "kit-agave4men"
}
},
"review_JQQCwK": {
"type": "review",
"settings": {
"quote": "Es la segunda vez que compro este producto porque es maravilloso. Los resultados se notan muy rápido y deja ligerita y suave la piel",
"author": "Ivonne M.",
"rating": 5,
"product": "crema-despigmentante-vitamina-b5-coenzima-q10-50-g"
}
},
"review_BYCdcr": {
"type": "review",
"settings": {
"quote": "Me gustó mucho, pero es mejor el que venía con el paquete completo, me sirvió para el control de grasa, pero venía muy poco y por eso pedí más. No es igual que el otro",
"author": "Ivonne M.",
"rating": 5,
"product": "suero-de-niacinamida"
}
},
"review_9A7jYm": {
"type": "review",
"settings": {
"quote": "Me encanta! Textura ligera y refrescante. Llevo 5 años con este protector solar y es lo mejor",
"author": "Ivonne M.",
"rating": 5,
"product": "gel-bloqueador-solar-fps-50-manzana-verde"
} }
} }
}, },
"block_order": [ "block_order": [
"review_PQhgyT", "review_PQhgyT",
"review_1" "review_1",
"review_JQQCwK",
"review_BYCdcr",
"review_9A7jYm"
], ],
"settings": { "settings": {
"heading": "Confianza que se construye con cada rutina", "heading": "Confianza que se construye con cada rutina",
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
+140
View File
@@ -0,0 +1,140 @@
{
"sections": {
"glow_army": {
"type": "glow-army",
"blocks": {
"step_1": {
"type": "step",
"settings": {
"number": "01",
"title": "Crear una cuenta",
"text": "Conviértete en miembro para recibir recompensas"
}
},
"step_2": {
"type": "step",
"settings": {
"number": "02",
"title": "Ganar puntos",
"text": "Completa estas actividades para acumular puntos"
}
},
"step_3": {
"type": "step",
"settings": {
"number": "03",
"title": "Canjear puntos",
"text": "Intercambia puntos por descuentos emocionantes"
}
},
"earn_order": {
"type": "earn",
"settings": {
"icon": "order",
"title": "Completar un pedido",
"text": "Gana 1 punto por cada $1"
}
},
"earn_birthday": {
"type": "earn",
"settings": {
"icon": "birthday",
"title": "Feliz cumpleaños",
"text": "200 puntos"
}
},
"earn_review": {
"type": "earn",
"settings": {
"icon": "review",
"title": "Dejar una reseña",
"text": "100 puntos"
}
},
"earn_profile": {
"type": "earn",
"settings": {
"icon": "profile",
"title": "Completa tu perfil",
"text": "50 puntos"
}
},
"reward_rate": {
"type": "reward",
"settings": {
"title": "Canjea tus puntos (20 por cada $1)",
"text": "20 puntos = $1"
}
},
"reward_50": {
"type": "reward",
"settings": {
"title": "$50 off",
"text": "1,000 puntos"
}
},
"reward_balm": {
"type": "reward",
"settings": {
"title": "Bálsamo labial gratis",
"text": "1,200 puntos"
}
},
"reward_100": {
"type": "reward",
"settings": {
"title": "$100 off",
"text": "2,000 puntos"
}
},
"reward_toner": {
"type": "reward",
"settings": {
"title": "Tónico té verde gratis",
"text": "3,000 puntos"
}
},
"reward_200": {
"type": "reward",
"settings": {
"title": "$200 off",
"text": "4,000 puntos"
}
},
"reward_300": {
"type": "reward",
"settings": {
"title": "$300 off",
"text": "6,000 puntos"
}
},
"reward_sun": {
"type": "reward",
"settings": {
"title": "Bloqueador solar manzana gratis",
"text": "10,500 puntos"
}
}
},
"block_order": [
"step_1",
"step_2",
"step_3",
"earn_order",
"earn_birthday",
"earn_review",
"earn_profile",
"reward_rate",
"reward_50",
"reward_balm",
"reward_100",
"reward_toner",
"reward_200",
"reward_300",
"reward_sun"
],
"settings": {}
}
},
"order": ["glow_army"]
}
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
+12
View File
@@ -0,0 +1,12 @@
{
"sections": {
"main": {
"type": "about",
"settings": {}
}
},
"order": [
"main"
]
}
-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.
* ------------------------------------------------------------
*/
{ {
"layout": "password", "layout": "password",
"sections": { "sections": {
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {
-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.
* ------------------------------------------------------------
*/
{ {
"sections": { "sections": {
"main": { "main": {