File size: 2,597 Bytes
4ddfd3d |
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 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(10px);
}
.footer-link:hover {
color: #ffffff;
}
</style>
<footer class="border-t border-gray-800 py-8 mt-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">MindMeld Explorer</h3>
<p class="text-gray-400">AI-powered search that understands your questions and provides reliable answers.</p>
</div>
<div>
<h4 class="font-medium mb-4">Product</h4>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Features</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Pricing</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">API</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Company</h4>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">About</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Blog</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white transition">Careers</a></li>
</ul>
</div>
<div>
<h4 class="font-medium mb-4">Connect</h4>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="linkedin"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white transition">
<i data-feather="github"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500 text-sm">
© 2023 MindMeld Explorer. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |