Componente de menú de hamburguesa retro
Componente de menú de hamburguesa retro / vintage complejo con combinación de colores análoga, diseño receptivo y soporte de tema oscuro.
Código HTML
<div class="bg-gradient-to-br from-purple-800 via-pink-700 to-red-600 font-mono min-h-screen p-8">
<!-- Retro Header -->
<header class="flex justify-between items-center mb-12">
<div class="text-white text-4xl font-bold tracking-wider">BYTE BLVD</div>
<div class="md:hidden">
<input type="checkbox" id="menu-toggle" class="hidden">
<label for="menu-toggle" class="block cursor-pointer group">
<div class="w-8 h-1 bg-white mb-1 transition-all duration-300 group-hover:bg-yellow-400"></div>
<div class="w-8 h-1 bg-white mb-1 transition-all duration-300 group-hover:bg-yellow-400"></div>
<div class="w-8 h-1 bg-white transition-all duration-300 group-hover:bg-yellow-400"></div>
</label>
<!-- Mobile Menu Overlay -->
<div class="fixed inset-0 bg-black bg-opacity-75 z-50 transform -translate-x-full transition-transform duration-300 ease-in-out" id="mobile-menu">
<div class="flex justify-end p-4">
<label for="menu-toggle" class="text-white text-4xl cursor-pointer">×</label>
</div>
<nav class="flex flex-col items-center justify-center h-full space-y-8">
<a href="#" class="text-white text-3xl hover:text-yellow-400 transition-colors duration-300">Home</a>
<a href="#" class="text-white text-3xl hover:text-yellow-400 transition-colors duration-300">Articles</a>
<a href="#" class="text-white text-3xl hover:text-yellow-400 transition-colors duration-300">About</a>
<a href="#" class="text-white text-3xl hover:text-yellow-400 transition-colors duration-300">Contact</a>
</nav>
</div>
</div>
<!-- Desktop Navigation -->
<nav class="hidden md:block">
<ul class="flex space-x-8">
<li><a href="#" class="text-white text-xl hover:text-yellow-400 transition-colors duration-300">Home</a></li>
<li><a href="#" class="text-white text-xl hover:text-yellow-400 transition-colors duration-300">Articles</a></li>
<li><a href="#" class="text-white text-xl hover:text-yellow-400 transition-colors duration-300">About</a></li>
<li><a href="#" class="text-white text-xl hover:text-yellow-400 transition-colors duration-300">Contact</a></li>
</ul>
</nav>
</header>
<!-- Main Content Area -->
<main class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Featured Article Card -->
<div class="md:col-span-2 bg-purple-700 dark:bg-purple-900 rounded-lg shadow-lg overflow-hidden border-4 border-yellow-400 transform transition-transform duration-300 hover:scale-105">
<img src="https://picsum.photos/800/400?random=1" alt="Featured Article" class="w-full h-64 object-cover">
<div class="p-6">
<h2 class="text-yellow-400 text-3xl font-bold mb-3">The Pixelated Past: A Dive into 8-bit Gaming</h2>
<p class="text-white text-lg leading-relaxed">Explore the golden age of video games, from classic consoles to arcade masterpieces. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<a href="#" class="mt-5 inline-block bg-yellow-400 text-purple-900 font-bold py-2 px-6 rounded-full hover:bg-yellow-300 transition-colors duration-300">Read More</a>
</div>
</div>
<!-- Sidebar / Recent Posts -->
<aside class="bg-pink-600 dark:bg-pink-800 rounded-lg shadow-lg p-6 border-4 border-yellow-400">
<h3 class="text-yellow-400 text-2xl font-bold mb-6">Recent Transmissions</h3>
<ul class="space-y-4">
<li><a href="#" class="text-white text-lg hover:text-yellow-400 transition-colors duration-300">Decoding Early Web Design</a></li>
<li><a href="#" class="text-white text-lg hover:text-yellow-400 transition-colors duration-300">The Rise of Synthwave Music</a></li>
<li><a href="#" class="text-white text-lg hover:text-yellow-400 transition-colors duration-300">Vintage Tech Gadgets Revisited</a></li>
<li><a href="#" class="text-white text-lg hover:text-yellow-400 transition-colors duration-300">Analog Photography Revival</a></li>
</ul>
<div class="mt-8">
<h3 class="text-yellow-400 text-2xl font-bold mb-4">Retro Subscribers</h3>
<div class="flex -space-x-2 overflow-hidden">
<img class="inline-block h-12 w-12 rounded-full ring-2 ring-yellow-400" src="https://randomuser.me/api/portraits/men/32.jpg" alt="retro avatar">
<img class="inline-block h-12 w-12 rounded-full ring-2 ring-yellow-400" src="https://randomuser.me/api/portraits/women/44.jpg" alt="retro avatar">
<img class="inline-block h-12 w-12 rounded-full ring-2 ring-yellow-400" src="https://randomuser.me/api/portraits/men/82.jpg" alt="retro avatar">
<img class="inline-block h-12 w-12 rounded-full ring-2 ring-yellow-400" src="https://randomuser.me/api/portraits/women/62.jpg" alt="retro avatar">
</div>
</div>
</aside>
</main>
<!-- Footer -->
<footer class="mt-12 text-center text-white text-opacity-80">
<p>© 2023 BYTE BLVD. All rights reserved. Relive the glory days!</p>
</footer>
<style>
/* Custom CSS for Hamburger Menu Animation */
#menu-toggle:checked + label div:nth-child(1) {
transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked + label div:nth-child(2) {
opacity: 0;
}
#menu-toggle:checked + label div:nth-child(3) {
transform: translateY(-9px) rotate(-45deg);
}
#menu-toggle:checked ~ #mobile-menu {
transform: translateX(0%);
}
</style>
</div>
Componentes relacionados
Menú de hamburguesas de comercio electrónico retro
Un componente de menú de hamburguesas complejo, receptivo y compatible con el modo oscuro para comercio electrónico, con un estilo retro / vintage (años 80 / 90) y un esquema de color complementario (púrpura, cian, dorado). Cuenta con navegación principal, enlaces de cuentas, carrito, búsqueda y un interruptor de CSS puro usando el truco de casilla de verificación. Utiliza clases CSS de Tailwind.
Menú de hamburguesas Glassmorphism
Un componente de menú de hamburguesas simple y receptivo con diseño Glassmorphism, combinación de colores complementaria y compatibilidad con el modo oscuro.
Componente del menú de hamburguesas
Un menú de hamburguesas receptivo diseñado para interfaces de redes sociales con un tema de modo oscuro y una combinación de colores complementaria.