Retese's picture
Make a clone of Toolsvana.com.
b8048e2 verified
Raw History Blame Contribute Delete
4.53 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.footer {
background-color: #f8fafc;
border-top: 1px solid #e2e8f0;
}
.footer-link {
transition: color 0.2s ease;
}
.footer-link:hover {
color: #3b82f6;
}
.social-icon {
transition: all 0.2s ease;
}
.social-icon:hover {
transform: translateY(-2px);
color: #3b82f6;
}
</style>
<footer class="footer py-12 px-6 md:px-8 lg:px-12">
<div class="container mx-auto">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center mb-4">
<i data-feather="tool" class="text-blue-600 mr-2"></i>
<span class="text-xl font-bold text-gray-800">Toolsvana</span>
</div>
<p class="text-gray-600 mb-4">
Free online tools for developers, designers, and creative professionals.
</p>
<div class="flex space-x-4">
<a href="#" class="social-icon text-gray-600">
<i data-feather="twitter"></i>
</a>
<a href="#" class="social-icon text-gray-600">
<i data-feather="github"></i>
</a>
<a href="#" class="social-icon text-gray-600">
<i data-feather="facebook"></i>
</a>
</div>
</div>
<div>
<h3 class="text-lg font-semibold text-gray-800 mb-4">Tools</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-600">Developer Tools</a></li>
<li><a href="#" class="footer-link text-gray-600">Design Tools</a></li>
<li><a href="#" class="footer-link text-gray-600">Text Tools</a></li>
<li><a href="#" class="footer-link text-gray-600">Image Tools</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold text-gray-800 mb-4">Company</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-600">About</a></li>
<li><a href="#" class="footer-link text-gray-600">Blog</a></li>
<li><a href="#" class="footer-link text-gray-600">Contact</a></li>
<li><a href="#" class="footer-link text-gray-600">Privacy Policy</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold text-gray-800 mb-4">Support</h3>
<ul class="space-y-2">
<li><a href="#" class="footer-link text-gray-600">Help Center</a></li>
<li><a href="#" class="footer-link text-gray-600">Feedback</a></li>
<li><a href="#" class="footer-link text-gray-600">Suggest a Tool</a></li>
<li><a href="#" class="footer-link text-gray-600">Report an Issue</a></li>
</ul>
</div>
</div>
<div class="border-t border-gray-200 mt-8 pt-8 text-center text-gray-500">
<p>© ${new Date().getFullYear()} Toolsvana Clone. All rights reserved.</p>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);