Spaces:
Running
Running
File size: 2,115 Bytes
70a2d3b |
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
class QuickpayHeader extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
header {
padding: 1rem;
position: sticky;
top: 0;
z-index: 50;
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.dark header {
background-color: rgba(17, 24, 39, 0.8);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1200px;
margin: 0 auto;
}
.logo {
font-weight: 800;
letter-spacing: -0.5px;
}
.user-avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #e0f2fe;
display: flex;
align-items: center;
justify-content: center;
color: #0ea5e9;
}
.dark .user-avatar {
background-color: #1e3a8a;
color: #bfdbfe;
}
</style>
<header>
<div class="header-content">
<div class="logo text-2xl font-extrabold bg-gradient-to-r from-blue-500 to-teal-400 bg-clip-text text-transparent">
FinGlow <span class="text-xs align-super">💸✨</span>
</div>
<div class="user-avatar">
<i data-feather="user"></i>
</div>
</div>
</header>
`;
}
}
customElements.define('quickpay-header', QuickpayHeader); |