perf: improve mobile loading path
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 74 KiB |
@@ -83,9 +83,17 @@ const structuredDataScripts = [
|
|||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
<link
|
<link
|
||||||
|
rel="preload"
|
||||||
|
as="style"
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap"
|
||||||
rel="stylesheet"
|
onload="this.onload=null;this.rel='stylesheet'"
|
||||||
/>
|
/>
|
||||||
|
<noscript>
|
||||||
|
<link
|
||||||
|
rel="stylesheet"
|
||||||
|
href="https://fonts.googleapis.com/css2?family=Noto+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap"
|
||||||
|
/>
|
||||||
|
</noscript>
|
||||||
{
|
{
|
||||||
structuredDataScripts.map((schema) => (
|
structuredDataScripts.map((schema) => (
|
||||||
<script is:inline type="application/ld+json" set:html={JSON.stringify(schema)} />
|
<script is:inline type="application/ld+json" set:html={JSON.stringify(schema)} />
|
||||||
|
|||||||
+18
-10
@@ -9,16 +9,24 @@ const whatsappAriaLabel = 'Contactar con MNQ por WhatsApp';
|
|||||||
|
|
||||||
<!-- ─── HERO ─── -->
|
<!-- ─── HERO ─── -->
|
||||||
<section class="hero-full">
|
<section class="hero-full">
|
||||||
<img
|
<picture>
|
||||||
src="/images/foto-bodas.jpg"
|
<source
|
||||||
alt="MNQ Catering — salón de bodas premium"
|
media="(max-width: 47.99rem)"
|
||||||
class="hero-bg"
|
srcset="/images/foto-bodas-mobile.webp"
|
||||||
style="object-position: center 30%;"
|
type="image/webp"
|
||||||
width="1264"
|
/>
|
||||||
height="848"
|
<img
|
||||||
loading="eager"
|
src="/images/foto-bodas.jpg"
|
||||||
fetchpriority="high"
|
alt="MNQ Catering — salón de bodas premium"
|
||||||
/>
|
class="hero-bg"
|
||||||
|
style="object-position: center 30%;"
|
||||||
|
width="1264"
|
||||||
|
height="848"
|
||||||
|
loading="eager"
|
||||||
|
fetchpriority="high"
|
||||||
|
decoding="async"
|
||||||
|
/>
|
||||||
|
</picture>
|
||||||
<div class="hero-overlay" style="background: rgb(20 15 8 / 55%);"></div>
|
<div class="hero-overlay" style="background: rgb(20 15 8 / 55%);"></div>
|
||||||
<div class="hero-content" style="padding-inline: var(--space-page);">
|
<div class="hero-content" style="padding-inline: var(--space-page);">
|
||||||
<div style="max-width: 52rem; margin-inline: auto; text-align: center;">
|
<div style="max-width: 52rem; margin-inline: auto; text-align: center;">
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
.hero-enter-3 { animation-delay: 780ms; }
|
.hero-enter-3 { animation-delay: 780ms; }
|
||||||
.hero-enter-4 { animation-delay: 1050ms; }
|
.hero-enter-4 { animation-delay: 1050ms; }
|
||||||
|
|
||||||
/* ─── GOLD SHIMMER (botones) ─────────────────── */
|
/* ─── BUTTON OVERLAY (static) ────────────────── */
|
||||||
|
|
||||||
.btn, .btn-pill, .btn-primary, .btn-dark, .btn-ghost {
|
.btn, .btn-pill, .btn-primary, .btn-dark, .btn-ghost {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -93,7 +93,8 @@
|
|||||||
);
|
);
|
||||||
transform: translateX(-120%) skewX(-18deg);
|
transform: translateX(-120%) skewX(-18deg);
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
transition: none;
|
opacity: 0;
|
||||||
|
transition: opacity 180ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:hover::after,
|
.btn:hover::after,
|
||||||
@@ -101,31 +102,13 @@
|
|||||||
.btn-primary:hover::after,
|
.btn-primary:hover::after,
|
||||||
.btn-dark:hover::after,
|
.btn-dark:hover::after,
|
||||||
.btn-ghost:hover::after {
|
.btn-ghost:hover::after {
|
||||||
animation: shimmer-sweep 550ms cubic-bezier(0.25, 0, 0.6, 1) forwards;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes shimmer-sweep {
|
/* ─── WHATSAPP FLOAT (static idle) ───────────── */
|
||||||
from { transform: translateX(-120%) skewX(-18deg); }
|
|
||||||
to { transform: translateX(160%) skewX(-18deg); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ─── WHATSAPP PULSE GLOW ────────────────────── */
|
|
||||||
|
|
||||||
@keyframes wa-glow {
|
|
||||||
0%, 100% {
|
|
||||||
box-shadow:
|
|
||||||
0 0 0 0 rgb(212 175 55 / 50%),
|
|
||||||
0 25px 50px -12px rgb(31 26 23 / 20%);
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
box-shadow:
|
|
||||||
0 0 0 10px rgb(212 175 55 / 0%),
|
|
||||||
0 25px 50px -12px rgb(31 26 23 / 20%);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.whatsapp-float {
|
.whatsapp-float {
|
||||||
animation: wa-glow 2.8s ease-in-out infinite;
|
transition: transform 220ms ease, box-shadow 220ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── GOLD LINE DRAW ─────────────────────────── */
|
/* ─── GOLD LINE DRAW ─────────────────────────── */
|
||||||
@@ -172,15 +155,10 @@
|
|||||||
animation: eyebrow-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
animation: eyebrow-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── LOGO EYE SUBTLE GLOW (header) ─────────── */
|
/* ─── HEADER LOGO (no idle shimmer) ─────────── */
|
||||||
|
|
||||||
@keyframes eye-shimmer {
|
|
||||||
0%, 100% { filter: brightness(1) drop-shadow(0 0 0px rgb(212 175 55 / 0%)); }
|
|
||||||
50% { filter: brightness(1.08) drop-shadow(0 0 6px rgb(212 175 55 / 30%)); }
|
|
||||||
}
|
|
||||||
|
|
||||||
.site-logo-banner {
|
.site-logo-banner {
|
||||||
animation: eye-shimmer 5s ease-in-out infinite;
|
transition: opacity 180ms ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── BENTO CARD HOVER LIFT ──────────────────── */
|
/* ─── BENTO CARD HOVER LIFT ──────────────────── */
|
||||||
|
|||||||
Reference in New Issue
Block a user