File size: 788 Bytes
4b59f08 | 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 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #1F2937;
color: #9CA3AF;
padding: 1.5rem 0;
margin-top: auto;
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
text-align: center;
}
.footer-text {
font-size: 0.875rem;
}
</style>
<footer>
<div class="footer-container">
<p class="footer-text">© ${new Date().getFullYear()} UFO Maze Runner. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |