Spaces:
Running
Running
File size: 1,633 Bytes
993c9ec | 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 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: rgba(17, 24, 39, 0.8);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link {
transition: all 0.2s;
}
.social-link:hover {
color: #818cf8;
transform: translateY(-2px);
}
</style>
<footer class="py-8 px-6 mt-12">
<div class="container mx-auto">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-6 md:mb-0">
<h3 class="text-xl font-bold mb-2 text-indigo-400">CodeFlow</h3>
<p class="text-gray-400">Improve your coding speed and accuracy</p>
</div>
<div class="flex space-x-6">
<a href="#" class="social-link" aria-label="Twitter">
<i data-feather="twitter"></i>
</a>
<a href="#" class="social-link" aria-label="GitHub">
<i data-feather="github"></i>
</a>
<a href="#" class="social-link" aria-label="LinkedIn">
<i data-feather="linkedin"></i>
</a>
</div>
</div>
<div class="mt-8 pt-6 border-t border-gray-800 text-center text-gray-500 text-sm">
© ${new Date().getFullYear()} CodeFlow Typing Challenge. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |