Spaces:
Running
Running
| class CustomHeader extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| header { | |
| background-color: transparent; | |
| padding: 1.5rem 2rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| font-weight: 500; | |
| letter-spacing: -0.5px; | |
| color: #2C2C2C; | |
| } | |
| .nav-icons { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .icon-btn { | |
| color: rgba(44, 44, 44, 0.6); | |
| transition: all 0.2s ease; | |
| } | |
| .icon-btn:hover { | |
| color: rgba(44, 44, 44, 1); | |
| } | |
| </style> | |
| <header> | |
| <div class="logo text-xl">TIE</div> | |
| <div class="nav-icons"> | |
| <a href="#" class="icon-btn" title="Historique"> | |
| <i data-feather="clock"></i> | |
| </a> | |
| <a href="#" class="icon-btn"> | |
| <i data-feather="user"></i> | |
| </a> | |
| </div> | |
| </header> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-header', CustomHeader); |