Spaces:
Running
Running
File size: 3,471 Bytes
9243fd7 | 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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: #1F2937;
color: #F3F4F6;
padding: 3rem 0;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.footer-logo {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 1.5rem;
}
.footer-logo span {
color: #3B82F6;
}
.footer-links {
display: flex;
gap: 2rem;
margin-bottom: 2rem;
}
.footer-links a {
color: #D1D5DB;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: #3B82F6;
}
.social-links {
display: flex;
gap: 1.5rem;
margin-bottom: 2rem;
}
.social-links a {
color: #D1D5DB;
transition: color 0.2s;
}
.social-links a:hover {
color: #3B82F6;
}
.copyright {
color: #9CA3AF;
font-size: 0.875rem;
}
</style>
<div class="footer-content">
<div class="footer-logo">Lilan<span>.</span></div>
<div class="footer-links">
<a href="#about">About</a>
<a href="#work">Work</a>
<a href="#certifications">Certifications</a>
<a href="#contact">Contact</a>
</div>
<div class="social-links">
<a href="https://linkedin.com/in/lilan-jayasuriya" aria-label="LinkedIn">
<i data-feather="linkedin"></i>
</a>
<a href="https://github.com/lilan" aria-label="GitHub">
<i data-feather="github"></i>
</a>
<a href="https://twitter.com/lilan" aria-label="Twitter">
<i data-feather="twitter"></i>
</a>
<a href="https://dribbble.com/lilan" aria-label="Dribbble">
<i data-feather="dribbble"></i>
</a>
</div>
<div class="copyright">
© ${new Date().getFullYear()} Lilan Jayasuriya. All rights reserved.
</div>
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter); |