devanada's picture
Manual changes saved
2870d89 verified
Raw History Blame Contribute Delete
1.59 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1e293b;
color: white;
padding: 2rem;
text-align: center;
margin-top: 2rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.footer-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1rem;
}
.footer-links a {
color: #cbd5e1;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: white;
}
.copyright {
color: #94a3b8;
font-size: 0.875rem;
}
@media (max-width: 640px) {
.footer-links {
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-links">
<a href="#">Privacy Policy</a>
<a href="#">Terms of Service</a>
<a href="#">Contact Us</a>
<a href="#">Help Center</a>
</div>
<p class="copyright">&copy; ${new Date().getFullYear()} BulkOrder Blitz. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);