Subir archivos a "qa"
This commit is contained in:
@@ -20,13 +20,14 @@
|
||||
details > summary { list-style: none; cursor: pointer; }
|
||||
details > summary::-webkit-details-marker { display: none; }
|
||||
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>
|
||||
</head>
|
||||
<body class="text-slate-800">
|
||||
|
||||
<!-- HERO -->
|
||||
<section class="relative">
|
||||
<section id="hero" class="relative">
|
||||
<div class="grid md:grid-cols-2 min-h-[560px]">
|
||||
<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">
|
||||
@@ -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();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user