Crossberry's picture
Continu
d5de1f9 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.footer-link:hover {
color: var(--accent-500);
}
</style>
<footer class="bg-primary-500 text-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-16 pb-8">
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8">
<div class="col-span-2">
<div class="flex items-center mb-4">
<i data-feather="github" class="h-8 w-8 text-white"></i>
<span class="ml-2 text-xl font-bold text-white">CodeCollabX</span>
</div>
<p class="text-gray-300 mb-6">
The complete developer platform to build, scale, and deliver secure software.
</p>
<div class="flex space-x-4">
<a href="#" class="text-gray-300 hover:text-white">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-300 hover:text-white">
<i data-feather="facebook" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-300 hover:text-white">
<i data-feather="linkedin" class="w-5 h-5"></i>
</a>
<a href="#" class="text-gray-300 hover:text-white">
<i data-feather="youtube" class="w-5 h-5"></i>
</a>
</div>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-200 uppercase tracking-wider mb-4">Product</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 footer-link text-sm">Features</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Security</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Team</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Enterprise</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Pricing</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-200 uppercase tracking-wider mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 footer-link text-sm">Documentation</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Community</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Webinars</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Partners</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Status</a></li>
</ul>
</div>
<div>
<h3 class="text-sm font-semibold text-gray-200 uppercase tracking-wider mb-4">Company</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-300 footer-link text-sm">About</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Blog</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Careers</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Press</a></li>
<li><a href="#" class="text-gray-300 footer-link text-sm">Contact</a></li>
</ul>
</div>
</div>
<div class="mt-12 pt-8 border-t border-gray-700">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex space-x-6">
<a href="#" class="text-gray-300 footer-link text-sm">Terms</a>
<a href="#" class="text-gray-300 footer-link text-sm">Privacy</a>
<a href="#" class="text-gray-300 footer-link text-sm">Sitemap</a>
</div>
<div class="mt-4 md:mt-0 text-sm text-gray-400">
© 2023 CodeCollabX, Inc. All rights reserved.
</div>
</div>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);