bhaveshcdac's picture
create a webpage interface for docx to docx translation website
06ee293 verified
Raw
History Blame Contribute Delete
1.59 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #f8fafc;
border-top: 1px solid #e2e8f0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
.social-links a {
transition: all 0.3s ease;
}
.social-links a:hover {
transform: translateY(-2px);
}
</style>
<footer class="mt-12">
<div class="container mx-auto">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<p class="text-gray-600">&copy; ${new Date().getFullYear()} DocxLingua. All rights reserved.</p>
</div>
<div class="social-links flex space-x-4">
<a href="#" class="text-gray-500 hover:text-blue-600">
<i data-feather="twitter"></i>
</a>
<a href="#" class="text-gray-500 hover:text-blue-600">
<i data-feather="facebook"></i>
</a>
<a href="#" class="text-gray-500 hover:text-blue-600">
<i data-feather="instagram"></i>
</a>
<a href="#" class="text-gray-500 hover:text-blue-600">
<i data-feather="linkedin"></i>
</a>
</div>
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);