Gradient_Corporate_Blues_Navigation_Component
Un componente de navegación complejo y receptivo diseñado para sitios web sin fines de lucro/organizaciones benéficas, con tonos azules corporativos degradados, transiciones suaves y compatibilidad con el modo oscuro. Incluye un logotipo, enlaces de navegación, un botón de llamada a la acción y un menú móvil.
Código HTML
<nav class="bg-gradient-to-r from-blue-600 to-blue-800 dark:from-gray-900 dark:to-blue-950 p-4 shadow-lg transition-colors duration-500">
<div class="container mx-auto flex items-center justify-between flex-wrap">
<!-- Logo -->
<a href="#" class="flex items-center flex-shrink-0 text-white mr-6">
<svg class="fill-current h-8 w-8 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
<span class="font-semibold text-xl tracking-tight">CharityName</span>
</a>
<!-- Mobile menu button -->
<div class="block lg:hidden">
<button class="flex items-center px-3 py-2 border rounded text-blue-200 border-blue-400 hover:text-white hover:border-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50" aria-label="Toggle navigation">
<svg class="fill-current h-3 w-3" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><title>Menu</title><path d="M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v15z"/></svg>
</button>
</div>
<!-- Navigation Links & CTA -->
<div class="w-full flex-grow lg:flex lg:items-center lg:w-auto hidden transition-all duration-300 ease-in-out" id="navbar-content">
<div class="text-sm lg:flex-grow">
<a href="#programs" class="block mt-4 lg:inline-block lg:mt-0 text-blue-100 hover:text-white mr-4 transition-colors duration-300 ease-in-out hover:underline">
Our Programs
</a>
<a href="#about" class="block mt-4 lg:inline-block lg:mt-0 text-blue-100 hover:text-white mr-4 transition-colors duration-300 ease-in-out hover:underline">
About Us
</a>
<a href="#impact" class="block mt-4 lg:inline-block lg:mt-0 text-blue-100 hover:text-white mr-4 transition-colors duration-300 ease-in-out hover:underline">
Our Impact
</a>
<a href="#news" class="block mt-4 lg:inline-block lg:mt-0 text-blue-100 hover:text-white transition-colors duration-300 ease-in-out hover:underline">
News & Updates
</a>
</div>
<div class="mt-4 lg:mt-0">
<a href="#donate" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-blue-800 dark:hover:text-gray-900 hover:bg-white transition-all duration-300 ease-in-out">
Donate Now
</a>
</div>
</div>
</div>
</nav>
<!-- Script to toggle mobile menu (optional, can be done with Alpine.js or vanilla JS if allowed) -->
<!-- For this request, we are strictly HTML/CSS, so the mobile menu toggle would require a small JS snippet if interactivity is mandatory. Without JS, the 'hidden' class always applies. -->
<!-- For a pure HTML/CSS solution, one might consider using CSS :target or a checkbox hack, but it's generally less robust than JS for navigations. -->
<!-- Given the 'complex' and 'interactive' brief, a small JS snippet is usually implied for functionality beyond hover/active. -->
<!-- As per requirements, 'no JavaScript' is enforced, so this component will *not* have a functional mobile toggle in its current HTML/CSS state. -->
<!-- The 'hidden' class on the #navbar-content will mean it's invisible on small screens. Manual addition/removal of 'hidden' required for testing responsive view. -->
Componentes relacionados
Navegación del panel de control (Material Design)
Componente de navegación del tablero de Material Design con esquema de color triádico y soporte de modo oscuro.
Componente de navegación de neumorfismo
Componente de navegación de neumorfismo optimizado para sitios web de portafolio. Cuenta con un diseño complejo con múltiples elementos interactivos, un diseño responsivo y compatibilidad con el modo oscuro mediante Tailwind CSS. El esquema de color es análogo.
Componente de navegación retro vintage
Un componente de navegación con un diseño retro/vintage con una combinación de colores monocromática para un salpicadero. Incluye enlaces y admite el modo oscuro.