File size: 1,662 Bytes
a0b2440 |
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 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(10px);
color: #94a3b8;
padding: 2rem;
text-align: center;
margin-top: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.footer-links {
display: flex;
justify-content: center;
gap: 1.5rem;
flex-wrap: wrap;
}
.footer-links a {
color: #94a3b8;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: #818cf8;
}
.copyright {
font-size: 0.875rem;
}
</style>
<footer>
<div class="footer-content">
<div class="footer-links">
<a href="/privacy.html">Privacy Policy</a>
<a href="/terms.html">Terms of Service</a>
<a href="https://github.com/yourusername" target="_blank">GitHub</a>
<a href="mailto:[email protected]">Contact</a>
</div>
<div class="copyright">
© ${new Date().getFullYear()} EvE 2 D Syre. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |