Azuy's picture
Help me make a website for querying information about Americans
86fd306 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.footer-link {
transition: color 0.3s ease;
}
.footer-link:hover {
color: #3b82f6;
}
.social-icon {
transition: all 0.3s ease;
}
.social-icon:hover {
transform: translateY(-3px);
color: #3b82f6;
}
</style>
<footer class="bg-gray-800 text-white py-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">American Data Explorer</h3>
<p class="text-gray-400">Providing accessible insights into American demographics and statistics.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="index.html" class="footer-link text-gray-400 hover:text-white">Home</a></li>
<li><a href="population.html" class="footer-link text-gray-400 hover:text-white">Population</a></li>
<li><a href="economy.html" class="footer-link text-gray-400 hover:text-white">Economy</a></li>
<li><a href="housing.html" class="footer-link text-gray-400 hover:text-white">Housing</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-400 hover:text-white">API Documentation</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Data Sources</a></li>
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Methodology</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="social-icon text-gray-400 hover:text-white"><i data-feather="twitter"></i></a>
<a href="#" class="social-icon text-gray-400 hover:text-white"><i data-feather="github"></i></a>
<a href="#" class="social-icon text-gray-400 hover:text-white"><i data-feather="linkedin"></i></a>
<a href="#" class="social-icon text-gray-400 hover:text-white"><i data-feather="mail"></i></a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© ${new Date().getFullYear()} American Data Explorer. All rights reserved.</p>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);