Spaces:
Configuration error
Configuration error
File size: 984 Bytes
326ad46 | 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 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background: #1e293b;
color: white;
padding: 2rem;
text-align: center;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
}
.copyright {
margin-top: 1rem;
font-size: 0.875rem;
color: #94a3b8;
}
.warning {
color: #f87171;
font-weight: 500;
margin-top: 1rem;
}
</style>
<div class="footer-content">
<p>Site indépendant - 100% propriétaire</p>
<p class="warning">Aucune dépendance à des plateformes externes</p>
<p class="copyright">© ${new Date().getFullYear()} - Tous droits réservés</p>
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter); |