Spaces:
Running
Running
File size: 1,457 Bytes
73e08ba 0535df3 73e08ba 0535df3 73e08ba | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 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); |