A reusable, lightweight navigation component for daza.ar websites
🚀 Easy to integrate • 🎨 Highly customizable • 📱 Fully responsive
Get up and running in under 2 minutes:
<!-- Font Awesome for icons --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <!-- Daza Navbar --> <link rel="stylesheet" href="https://navbar.daza.ar/navbar.css"> <script src="https://navbar.daza.ar/config/navbar-config.js"></script> <script src="https://navbar.daza.ar/navbar.js"></script>
<div id="navbar-container"></div>
<script> // Auto-initializes on page load, or manually: const navbar = new DazaNavbar({ showPdfButton: true, pdfCallback: () => console.log('PDF clicked!') }); navbar.render(); </script>
Automatically adapts to mobile, tablet, and desktop screens with optimized layouts.
Built-in dark/light theme support with CSS custom properties for easy customization.
Pure JavaScript with no external dependencies (except Font Awesome for icons).
Drop-in solution that works with any website or framework.
Customize contacts, buttons, styling, and behavior through simple configuration.
Built with accessibility in mind - proper ARIA labels, keyboard navigation, and focus states.
const customNavbar = new DazaNavbar({ showPdfButton: true, settings: { transparentMode: true, fixedPosition: true, animateEntrance: true }, pdfCallback: () => { // Your PDF generation logic generatePDF(); } }); customNavbar.render('my-navbar-container');
// Update contacts dynamically navbar.updateContacts([ { href: 'mailto:new@email.com', icon: 'fa-solid fa-envelope', label: 'Email' } ]); // Toggle PDF button navbar.togglePdfButton(true); // Update configuration navbar.updateConfig({ settings: { transparentMode: true } });
// Listen for navbar events document.addEventListener('navbar:rendered', (e) => { console.log('Navbar rendered!', e.detail.navbar); }); document.addEventListener('navbar:contact-clicked', (e) => { console.log('Contact clicked:', e.detail.contact); });
All files are hosted on GitHub Pages and available via CDN:
https://navbar.daza.ar/navbar.css https://navbar.daza.ar/navbar.js https://navbar.daza.ar/config/navbar-config.js https://navbar.daza.ar/examples/basic.html https://navbar.daza.ar/examples/with-pdf.html
Compatible with all modern browsers: