ItsJayKee's picture
now add the code snippets for the test
993c9ec verified
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">
&copy; ${new Date().getFullYear()} CodeFlow Typing Challenge. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);