Spaces:
Running
Running
File size: 1,499 Bytes
f2768a5 |
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 |
class CustomHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
header {
background: rgba(10, 10, 10, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo {
background: linear-gradient(135deg, #ff8c00, #ffcc00);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
nav a:hover {
color: #ff8c00;
}
</style>
<header class="py-4 px-6">
<div class="container mx-auto flex justify-between items-center">
<div class="logo text-2xl font-bold">Loot Spin Royale 🎰</div>
<nav class="flex gap-6">
<a href="#" class="text-gray-300 hover:text-orange-400 transition-colors">Home</a>
<a href="#" class="text-gray-300 hover:text-orange-400 transition-colors">Prizes</a>
<a href="#" class="text-gray-300 hover:text-orange-400 transition-colors">About</a>
</nav>
</div>
</header>
`;
}
}
customElements.define('custom-header', CustomHeader); |