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
+49 -3
View File
@@ -29,7 +29,7 @@
widths: '400, 800, 1200, 1700',
sizes: '(max-width: 1024px) calc(100vw - 30px), 50vw',
class: 'routine__cover-image',
loading: 'eager'
loading: 'lazy'
}}
{% else %}
<img
@@ -38,6 +38,10 @@
alt="{{ heading | escape }}"
width="849"
height="892"
srcset="{{ 'routine-photo-sm.avif' | asset_url }} 700w, {{ 'routine-photo.avif' | asset_url }} 1240w"
sizes="(max-width: 1024px) 95vw, 849px"
loading="lazy"
decoding="async"
>
{% endif %}
<h2 class="routine__heading">{{ heading | escape | newline_to_br }}</h2>
@@ -53,7 +57,21 @@
assign step_title = step_key | t
endif
if block.settings.link != blank
assign step_url = block.settings.link
if step_url == blank
case forloop.index
when 1
assign step_url = '/collections/1-limpia'
when 2
assign step_url = '/collections/2-trata'
when 3
assign step_url = '/collections/3-hidrata'
when 4
assign step_url = '/collections/4-protege-bloqueadores-solares'
endcase
endif
if step_url != blank
assign step_tag = 'a'
else
assign step_tag = 'div'
@@ -76,7 +94,7 @@
class="routine__card"
{{ block.shopify_attributes }}
{% if step_tag == 'a' %}
href="{{ block.settings.link }}"
href="{{ step_url }}"
{% endif %}
>
<span class="routine__media">
@@ -98,6 +116,10 @@
alt="{{ step_title | escape }}"
width="415"
height="436"
srcset="{{ fallback_image | replace: '.avif', '-sm.avif' | asset_url }} 450w, {{ fallback_image | asset_url }} 750w"
sizes="(max-width: 1024px) 245px, 415px"
loading="lazy"
decoding="async"
>
{% endif %}
<span class="routine__shade" aria-hidden="true"></span>
@@ -198,6 +220,12 @@
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.45s ease;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: scale(1.06);
}
.routine__shade {
@@ -205,6 +233,24 @@
inset: 0;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
pointer-events: none;
transition: background 0.35s ease;
}
.routine__card:hover .routine__shade,
.routine__card:focus-visible .routine__shade {
background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
}
@media (prefers-reduced-motion: reduce) {
.routine__image,
.routine__shade {
transition: none;
}
.routine__card:hover .routine__image,
.routine__card:focus-visible .routine__image {
transform: none;
}
}
.routine__caption {