Subir archivos a "qa"

This commit is contained in:
2026-10-04 18:57:19 +00:00
parent 02b884e3be
commit 3a1f089a17

View File

@@ -20,13 +20,14 @@
details > summary { list-style: none; cursor: pointer; } details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; } details > summary::-webkit-details-marker { display: none; }
details[open] .chev { transform: rotate(180deg); } details[open] .chev { transform: rotate(180deg); }
.wa-float { box-shadow: 0 8px 24px rgba(16,185,129,0.35); } .wa-float { box-shadow: 0 8px 24px rgba(16,185,129,0.35); transition: opacity 0.25s ease, transform 0.25s ease; }
.wa-float.wa-hidden { opacity: 0; transform: scale(0.8); pointer-events: none; }
</style> </style>
</head> </head>
<body class="text-slate-800"> <body class="text-slate-800">
<!-- HERO --> <!-- HERO -->
<section class="relative"> <section id="hero" class="relative">
<div class="grid md:grid-cols-2 min-h-[560px]"> <div class="grid md:grid-cols-2 min-h-[560px]">
<div class="relative h-72 md:h-auto"> <div class="relative h-72 md:h-auto">
<img src="https://marsalva.es/wp-content/uploads/2025/05/img-021.webp" alt="Electricista de Marsalva revisando un cuadro eléctrico" class="absolute inset-0 w-full h-full object-cover"> <img src="https://marsalva.es/wp-content/uploads/2025/05/img-021.webp" alt="Electricista de Marsalva revisando un cuadro eléctrico" class="absolute inset-0 w-full h-full object-cover">
@@ -437,6 +438,15 @@
}); });
}); });
const waBtn = document.querySelector('.wa-float');
const heroSection = document.getElementById('hero');
if (waBtn && heroSection && 'IntersectionObserver' in window) {
const heroObserver = new IntersectionObserver((entries) => {
entries.forEach((entry) => waBtn.classList.toggle('wa-hidden', entry.isIntersecting));
}, { threshold: 0.2 });
heroObserver.observe(heroSection);
}
lucide.createIcons(); lucide.createIcons();
</script> </script>
</body> </body>