From e150ed12dabec78a1c6f91565148f3e4d05561c8 Mon Sep 17 00:00:00 2001 From: oimwiodev Date: Fri, 26 Jun 2026 21:33:19 +0100 Subject: [PATCH] Remove all animations, keep only static FLASH SALE badge on Atlas --- templates/index.html | 43 +++++++------------------------------------ 1 file changed, 7 insertions(+), 36 deletions(-) diff --git a/templates/index.html b/templates/index.html index c3b00ad..2cc4d91 100644 --- a/templates/index.html +++ b/templates/index.html @@ -94,43 +94,15 @@ padding: 5px 12px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; z-index: 2; - animation: glow 0.8s ease-in-out infinite; - } - @keyframes glow { - 0%, 100% { box-shadow: 0 0 8px rgba(59,130,246,0.3); } - 50% { box-shadow: 0 0 25px rgba(59,130,246,0.8); } } /* ── Limited offer ── */ .old-price { text-decoration:line-through; color:var(--muted); font-size:18px; font-weight:400; } - .deal-price { font-size:32px; font-weight:800; color:#22c55e; animation: dealPulse 0.7s ease-in-out infinite; } - @keyframes dealPulse { - 0%, 100% { transform:scale(1); } - 25% { transform:scale(1.06); } - 75% { transform:scale(1.06); } - } - .limited-tag { + .deal-price { font-size:32px; font-weight:800; color:#22c55e; } + .flash-sale-tag { display:inline-block; background:#ef4444; color:#fff; - padding:3px 10px; border-radius:4px; font-size:11px; font-weight:700; - animation: blink 0.5s ease-in-out infinite; margin-top:4px; - } - @keyframes blink { - 0%, 100% { opacity:1; } - 50% { opacity:0.2; } - } - .hurry-text { font-size:11px; color:#ef4444; font-weight:600; margin-top:6px; animation: shake 0.3s ease-in-out infinite; } - @keyframes shake { - 0%, 100% { transform:translateX(0); } - 25% { transform:translateX(-3px); } - 75% { transform:translateX(3px); } - } - .btn-shake { animation: shake 0.4s ease-in-out infinite; } - - /* ── Flash overlay ── */ - .pricing-card.flash-deal { border-color:#ef4444; animation: flashBorder 0.8s ease-in-out infinite; } - @keyframes flashBorder { - 0%, 100% { border-color:#ef4444; box-shadow:0 0 0 rgba(239,68,68,0); } - 50% { border-color:#ff6b6b; box-shadow:0 0 15px rgba(239,68,68,0.3); } + padding:4px 14px; border-radius:4px; font-size:12px; font-weight:800; + letter-spacing:1px; margin-top:4px; } /* Why */ @@ -387,17 +359,16 @@ async function loadPricing() { const priceHTML = isAtlas ? `
${Number(t.sell_price).toLocaleString('fr-MA')} MAD
3 990 MAD
-
${lang==='fr'?'Offre limitée':'Limited offer'}
-
${lang==='fr'?'⭐ Dépêchez-vous !':"⭐ Hurry!"}
` +
⚡ FLASH SALE
` : `
${Number(t.sell_price).toLocaleString('fr-MA')} MAD
`; return ` -
+
${isAtlas ? '
LE BON CHOIX
' : ''}

${t.name}

${priceHTML}
${(desc[lang]||desc.fr)[t.name] || t.description || ''}
    ${(specs[lang]||specs.fr)[t.name]?.map(s => `
  • ${s}
  • `).join('') || ''}
- ${lang==='fr'?'Commander':'Order'} + ${lang==='fr'?'Commander':'Order'}
`; }).join(''); } catch(e) { document.getElementById('pricingGrid').innerHTML = '

Pricing unavailable

'; }