Spaces:
Running
Running
File size: 1,544 Bytes
0d453b8 | 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 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #f5f5f7;
color: #86868b;
border-top: 1px solid #d2d2d7;
}
.footer-link:hover {
color: #a5b4fc;
}
</style>
<footer class="text-gray-300 py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center space-x-2">
<i data-feather="award"></i>
<span class="text-lg font-medium">InstaRaffle</span>
</div>
<p class="text-sm mt-2">Making Instagram giveaways fair and fun</p>
</div>
<div class="flex flex-col md:flex-row md:space-x-8 space-y-2 md:space-y-0 text-sm">
<a href="#" class="footer-link hover:text-007AFF transition-colors">Terms</a>
<a href="#" class="footer-link hover:text-007AFF transition-colors">Privacy</a>
<a href="contact.html" class="footer-link hover:text-007AFF transition-colors">Contact</a>
</div>
</div>
<div class="border-t border-indigo-900 mt-6 pt-6 text-center text-xs">
<p>© ${new Date().getFullYear()} InstaRaffle. All rights reserved.</p>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |