| class CustomNavbar extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| nav { | |
| background: rgba(6, 8, 26, 0.8); | |
| backdrop-filter: blur(10px); | |
| padding: 1.5rem 2rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| position: fixed; | |
| width: 100%; | |
| top: 0; | |
| z-index: 1000; | |
| border-bottom: 1px solid rgba(255, 255, 255, 0.1); | |
| } | |
| .logo { | |
| color: white; | |
| font-weight: bold; | |
| font-size: 1.5rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .logo span { | |
| color: #00FFFF; | |
| } | |
| ul { | |
| display: flex; | |
| gap: 2rem; | |
| list-style: none; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| a { | |
| color: white; | |
| text-decoration: none; | |
| font-weight: 500; | |
| transition: color 0.3s; | |
| position: relative; | |
| } | |
| a:hover { | |
| color: #00FFFF; | |
| } | |
| a::after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -4px; | |
| left: 0; | |
| background-color: #00FFFF; | |
| transition: width 0.3s; | |
| } | |
| a:hover::after { | |
| width: 100%; | |
| } | |
| .cta-button { | |
| background: #00FFFF; | |
| color: #0F172A; | |
| padding: 0.5rem 1.5rem; | |
| border-radius: 9999px; | |
| font-weight: 600; | |
| transition: all 0.3s; | |
| } | |
| .cta-button:hover { | |
| background: #0CF2F2; | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3); | |
| } | |
| @media (max-width: 768px) { | |
| nav { | |
| flex-direction: column; | |
| padding: 1rem; | |
| } | |
| ul { | |
| margin-top: 1rem; | |
| flex-direction: column; | |
| gap: 1rem; | |
| align-items: center; | |
| } | |
| } | |
| </style> | |
| <nav> | |
| <div class="logo"> | |
| <span>Sysmotix</span> | |
| </div> | |
| <ul> | |
| <li><a href="#solutions">Solutions</a></li> | |
| <li><a href="#process">Process</a></li> | |
| <li><a href="#technology">Technology</a></li> | |
| <li><a href="#results">Results</a></li> | |
| <li><a href="#" class="cta-button">Contact Us</a></li> | |
| </ul> | |
| </nav> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-navbar', CustomNavbar); |