Create templates/landing1.html
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261<!DOCTYPE html><html lang="es"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Nombre de la Empresa | Plantilla Corporativa</title> <!-- Tailwind CSS desde CDN --> <script src="https://cdn.tailwindcss.com"></script> <style> /* Animaci贸n suave para el modal */ .modal-blur { backdrop-filter: blur(4px); } </style></head><body class="bg-gray-50 text-gray-800 font-sans antialiased">
<!-- SECCI脫N: Hero / T铆tulo Principal --> <header class="bg-gradient-to-r select-none from-blue-600 to-indigo-700 text-white py-20 px-4 text-center shadow-md"> <div class="max-w-4xl mx-auto"> <span class="bg-indigo-500/30 text-indigo-200 text-xs font-bold uppercase tracking-widest px-3 py-1 rounded-full">[Eslogan o Categor铆a]</span> <h1 class="text-4xl md:text-6xl font-extrabold tracking-tight mt-4"> [Aqu铆 va el T铆tulo de tu Empresa] </h1> <p class="text-lg md:text-xl text-indigo-100 mt-6 max-w-2xl mx-auto leading-relaxed"> [Escribe una frase corta e impactante que describa la propuesta de valor principal de tu negocio o marca]. </p> <div class="mt-8"> <a href="#productos" class="bg-white text-indigo-700 hover:bg-indigo-5 font-semibold px-6 py-3 rounded-lg shadow transition duration-300"> Ver Productos </a> </div> </div> </header>
<!-- SECCI脫N: Productos --> <main id="productos" class="max-w-7xl mx-auto px-4 py-16"> <div class="text-center mb-12"> <h2 class="text-3xl font-bold text-gray-900">Nuestros Productos</h2> <p class="text-gray-500 mt-2">[Explora nuestra selecci贸n exclusiva de soluciones y art铆culos de alta calidad]</p> </div>
<!-- Rejilla de Productos --> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> <!-- Producto 1 --> <div onclick="abrirModal('Producto Placeholder A', 'https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=600&auto=format&fit=crop&q=80', 'Esta es una descripci贸n detallada y extendida para el Producto A. Ideal para resaltar las caracter铆sticas premium, materiales de fabricaci贸n, beneficios clave y por qu茅 el cliente deber铆a adquirirlo de inmediato.', '$29.99')" class="bg-white rounded-xl shadow-sm hover:shadow-xl border border-gray-100 overflow-hidden cursor-pointer transform hover:-translate-y-1 transition duration-300 group"> <div class="relative overflow-hidden bg-gray-100 aspect-video"> <img src="https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=600&auto=format&fit=crop&q=80" alt="Producto A" class="w-full h-full object-cover group-hover:scale-105 transition duration-500"> </div> <div class="p-6"> <h3 class="font-bold text-xl text-gray-900 group-hover:text-blue-600 transition">Producto Placeholder A</h3> <p class="text-gray-500 text-sm mt-2 line-clamp-2">[Breve descripci贸n introductoria del producto para captar atenci贸n...]</p> <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-50"> <span class="text-lg font-extrabold text-gray-900">$29.99</span> <span class="text-blue-600 text-sm font-medium inline-flex items-center group-hover:underline"> Ver detalles → </span> </div> </div> </div>
<!-- Producto 2 --> <div onclick="abrirModal('Producto Placeholder B', 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=600&auto=format&fit=crop&q=80', 'Esta es la descripci贸n del Producto B. Puedes personalizar este bloque de texto para explicar las especificaciones t茅cnicas, compatibilidad, garant铆as incluidas o cualquier detalle relevante para la decisi贸n de compra.', '$49.99')" class="bg-white rounded-xl shadow-sm hover:shadow-xl border border-gray-100 overflow-hidden cursor-pointer transform hover:-translate-y-1 transition duration-300 group"> <div class="relative overflow-hidden bg-gray-100 aspect-video"> <img src="https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=600&auto=format&fit=crop&q=80" alt="Producto B" class="w-full h-full object-cover group-hover:scale-105 transition duration-500"> </div> <div class="p-6"> <h3 class="font-bold text-xl text-gray-900 group-hover:text-blue-600 transition">Producto Placeholder B</h3> <p class="text-gray-500 text-sm mt-2 line-clamp-2">[Breve descripci贸n introductoria del producto para captar atenci贸n...]</p> <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-50"> <span class="text-lg font-extrabold text-gray-900">$49.99</span> <span class="text-blue-600 text-sm font-medium inline-flex items-center group-hover:underline"> Ver detalles → </span> </div> </div> </div>
<!-- Producto 3 --> <div onclick="abrirModal('Producto Placeholder C', 'https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=600&auto=format&fit=crop&q=80', 'Descripci贸n completa del Producto C. Destaca el dise帽o innovador, la facilidad de uso y la excelente relaci贸n calidad-precio que ofrece a los usuarios finales.', '$79.99')" class="bg-white rounded-xl shadow-sm hover:shadow-xl border border-gray-100 overflow-hidden cursor-pointer transform hover:-translate-y-1 transition duration-300 group"> <div class="relative overflow-hidden bg-gray-100 aspect-video"> <img src="https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=600&auto=format&fit=crop&q=80" alt="Producto C" class="w-full h-full object-cover group-hover:scale-105 transition duration-500"> </div> <div class="p-6"> <h3 class="font-bold text-xl text-gray-900 group-hover:text-blue-600 transition">Producto Placeholder C</h3> <p class="text-gray-500 text-sm mt-2 line-clamp-2">[Breve descripci贸n introductoria del producto para captar atenci贸n...]</p> <div class="flex items-center justify-between mt-4 pt-4 border-t border-gray-50"> <span class="text-lg font-extrabold text-gray-900">$79.99</span> <span class="text-blue-600 text-sm font-medium inline-flex items-center group-hover:underline"> Ver detalles → </span> </div> </div> </div>
</div> </main>
<!-- SECCI脫N: Rese帽as / Testimonios --> <section class="bg-gray-100 py-16 px-4"> <div class="max-w-7xl mx-auto"> <div class="text-center mb-12"> <h2 class="text-3xl font-bold text-gray-900">Lo que dicen nuestros clientes</h2> <p class="text-gray-500 mt-2">[Opiniones reales de usuarios que ya conf铆an en nuestra marca]</p> </div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <!-- Rese帽a 1 --> <div class="bg-white p-8 rounded-xl shadow-sm border border-gray-50 flex flex-col justify-between"> <p class="text-gray-600 italic leading-relaxed"> "[Aqu铆 puedes colocar un testimonio de un cliente satisfecho elogiendo los servicios, la rapidez de entrega o la excelente atenci贸n t茅cnica recibida]". </p> <div class="flex items-center mt-6"> <div class="w-10 h-10 bg-indigo-600 rounded-full flex items-center justify-center text-white font-bold text-sm"> AA </div> <div class="ml-3"> <h4 class="font-bold text-gray-900 text-sm">[Nombre del Cliente 1]</h4> <span class="text-gray-400 text-xs">[Cargo / Empresa u Ocupaci贸n]</span> </div> </div> </div>
<!-- Rese帽a 2 --> <div class="bg-white p-8 rounded-xl shadow-sm border border-gray-50 flex flex-col justify-between"> <p class="text-gray-600 italic leading-relaxed"> "[Otro comentario destacando un punto fuerte diferente, como la gran durabilidad de los productos o la facilidad de uso de la plataforma digital]". </p> <div class="flex items-center mt-6"> <div class="w-10 h-10 bg-emerald-600 rounded-full flex items-center justify-center text-white font-bold text-sm"> BB </div> <div class="ml-3"> <h4 class="font-bold text-gray-900 text-sm">[Nombre del Cliente 2]</h4> <span class="text-gray-400 text-xs">[Cargo / Empresa u Ocupaci贸n]</span> </div> </div> </div>
<!-- Rese帽a 3 --> <div class="bg-white p-8 rounded-xl shadow-sm border border-gray-50 flex flex-col justify-between"> <p class="text-gray-600 italic leading-relaxed"> "[Un tercer testimonio enfocado en recomendar la marca al 100% debido al soporte postventa y la fiabilidad general en cada compra realizada]". </p> <div class="flex items-center mt-6"> <div class="w-10 h-10 bg-amber-500 rounded-full flex items-center justify-center text-white font-bold text-sm"> CC </div> <div class="ml-3"> <h4 class="font-bold text-gray-900 text-sm">[Nombre del Cliente 3]</h4> <span class="text-gray-400 text-xs">[Cargo / Empresa u Ocupaci贸n]</span> </div> </div> </div> </div> </div> </section>
<!-- FOOTER --> <footer class="bg-gray-900 text-gray-400 py-8 px-4 text-center border-t border-gray-800 text-sm"> <p>© 2026 [Nombre de la Empresa]. Todos los derechos reservados.</p> </footer>
<!-- SECCI脫N ESPECIAL DIN脕MICA: Ventana Modal del Producto --> <div id="modal-producto" class="fixed inset-0 bg-black/60 z-50 hidden opacity-0 transition-opacity duration-300 flex items-center justify-center p-4 modal-blur" onclick="cerrarModalExterno(event)"> <!-- Contenedor del Modal --> <div class="bg-white rounded-2xl max-w-2xl w-full overflow-hidden shadow-2xl transform scale-95 transition-transform duration-300 relative flex flex-col md:flex-row" id="modal-content"> <!-- Bot贸n Cerrar --> <button onclick="cerrarModal()" class="absolute top-3 right-3 bg-black/50 hover:bg-black/70 text-white rounded-full p-2 focus:outline-none z-10 transition"> <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg> </button>
<!-- Foto de Portada en el Modal --> <div class="w-full md:w-1/2 bg-gray-100 aspect-video md:aspect-auto md:h-full min-h-[250px]"> <img id="modal-imagen" src="" alt="" class="w-full h-full object-cover"> </div>
<!-- Informaci贸n del Producto en el Modal --> <div class="p-6 md:p-8 w-full md:w-1/2 flex flex-col justify-between"> <div> <h3 id="modal-titulo" class="text-2xl font-bold text-gray-900 mb-4">T铆tulo del Producto</h3> <p id="modal-descripcion" class="text-gray-600 text-sm leading-relaxed mb-6">Descripci贸n del producto...</p> </div> <div class="flex items-center justify-between pt-4 border-t border-gray-100"> <div> <span class="text-xs text-gray-400 block font-medium uppercase">Precio</span> <span id="modal-precio" class="text-2xl font-black text-gray-900">$0.00</span> </div> <button class="bg-blue-600 hover:bg-blue-700 text-white px-5 py-2.5 rounded-lg text-sm font-semibold transition shadow-md"> Comprar ahora </button> </div> </div>
</div> </div>
<!-- L脫GICA JAVASCRIPT: Control del Modal Din谩mico --> <script> const modal = document.getElementById('modal-producto'); const modalContent = document.getElementById('modal-content'); const modalTitulo = document.getElementById('modal-titulo'); const modalImagen = document.getElementById('modal-imagen'); const modalDescripcion = document.getElementById('modal-descripcion'); const modalPrecio = document.getElementById('modal-precio');
function abrirModal(titulo, imagen, descripcion, precio) { // Asignar los datos correspondientes de manera din谩mica modalTitulo.innerText = titulo; modalImagen.src = imagen; modalImagen.alt = titulo; modalDescripcion.innerText = descripcion; modalPrecio.innerText = precio;
// Mostrar el modal con transiciones fluidas modal.classList.remove('hidden'); setTimeout(() => { modal.classList.remove('opacity-0'); modalContent.classList.remove('scale-95'); modalContent.classList.add('scale-100'); }, 10);
// Bloquear el scroll del cuerpo de la p谩gina detr谩s document.body.classList.add('overflow-hidden'); }
function cerrarModal() { // Animaci贸n de salida modal.classList.add('opacity-0'); modalContent.classList.remove('scale-100'); modalContent.classList.add('scale-95'); setTimeout(() => { modal.classList.add('hidden'); document.body.classList.remove('overflow-hidden'); }, 300); }
// Cerrar si el usuario hace clic fuera de la caja blanca del contenido function cerrarModalExterno(event) { if (event.target === modal) { cerrarModal(); } }
// Permitir cerrar presionando la tecla "Escape" document.addEventListener('keydown', function(event) { if (event.key === 'Escape' && !modal.classList.contains('hidden')) { cerrarModal(); } }); </script></body></html>templates/landing1.htmlAdded+261