Spaces:
Running
Running
| class CustomNavbar extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| nav { | |
| background-color: rgba(255, 255, 255, 0.9); | |
| backdrop-filter: blur(10px); | |
| } | |
| a:hover { | |
| transform: translateY(-2px); | |
| } | |
| .duck-icon { | |
| animation: duckFloat 3s ease-in-out infinite; | |
| } | |
| </style> | |
| <nav class="sticky top-0 z-50 shadow-md"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="github" class="text-blue-600 duck-icon w-8 h-8"></i> | |
| <span class="text-xl font-bold text-blue-600">QuackyDuck</span> | |
| </div> | |
| <div class="hidden md:flex space-x-8"> | |
| <a href="#" class="text-blue-600 font-medium hover:text-blue-800 transition-colors">Home</a> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition-colors">Species</a> | |
| <a href="#" class="text-gray-600 hover:text-blue-600 transition-colors">Habitats</a> | |
| <a href="#" class="text-gray-600 hover:text |