D3faultnull's picture
make a website for giveaway that choose a random comment from and instagram link video or post and that is designed like IOS 26 with an about section and a contact me section
0d453b8 verified
Raw History Blame Contribute Delete
1.54 kB
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);