File size: 1,554 Bytes
6943658 |
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 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1a202c;
color: white;
padding: 3rem 2rem;
text-align: center;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
.social-links {
display: flex;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.social-links a {
color: white;
transition: color 0.2s;
}
.social-links a:hover {
color: #818cf8;
}
.copyright {
margin-top: 1.5rem;
color: #a0aec0;
font-size: 0.875rem;
}
</style>
<footer>
<div class="footer-content">
<div class="social-links">
<a href="#" aria-label="LinkedIn"><i data-feather="linkedin"></i></a>
<a href="#" aria-label="GitHub"><i data-feather="github"></i></a>
<a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a>
<a href="mailto:[email protected]" aria-label="Email"><i data-feather="mail"></i></a>
</div>
<p class="copyright">© ${new Date().getFullYear()} Nikhilesh Siddanthi. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |