Spaces:
Running
Running
| class TrustBar extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background: rgba(15, 23, 42, 0.8); | |
| backdrop-filter: blur(10px); | |
| padding: 1.5rem 0; | |
| border-bottom: 1px solid rgba(212, 175, 55, 0.1); | |
| } | |
| .trust-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| justify-content: space-around; | |
| flex-wrap: wrap; | |
| gap: 1rem; | |
| padding: 0 1rem; | |
| } | |
| .trust-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| color: #CBD5E1; | |
| font-weight: 500; | |
| } | |
| .trust-icon { | |
| color: #D4AF37; | |
| } | |
| @media (max-width: 768px) { | |
| .trust-container { | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| <div class="trust-container"> | |
| <div class="trust-item"> | |
| <i data-feather="calendar" class="trust-icon"></i> | |
| <span>25+ Years Experience</span> | |
| </div> | |
| <div class="trust-item"> | |
| <i data-feather="users" class="trust-icon"></i> | |
| <span>10,000+ Happy Sailors</span> | |
| </div> | |
| <div class="trust-item"> | |
| <i data-feather="award" class="trust-icon"></i> | |
| <span>RYA Recognised</span> | |
| </div> | |
| <div class="trust-item"> | |
| <i data-feather="star" class="trust-icon"></i> | |
| <span>5β TripAdvisor Rated</span> | |
| </div> | |
| </div> | |
| `; | |
| // Initialize feather icons | |
| import('https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js').then(() => { | |
| feather.replace({ icons: this.shadowRoot.querySelectorAll('[data-feather]') }); | |
| }); | |
| } | |
| } | |
| customElements.define('trust-bar', TrustBar); |