Spaces:
Running
Running
| 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); |