Spaces:
Running
Running
File size: 2,006 Bytes
0b1db27 |
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 60 61 62 63 64 65 66 67 68 69 70 71 72 |
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); |