testforms's picture
создай дизайн как я нарисовал в фигме
52dca4f verified
Raw History Blame Contribute Delete
1.26 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background-color: #F9FAFB;
color: #6B7280;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.links {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.links a {
color: #4B5563;
transition: color 0.2s;
}
.links a:hover {
color: #4F46E5;
}
.copyright {
text-align: center;
margin-top: 2rem;
font-size: 0.875rem;
}
</style>
<footer class="mt-12">
<div class="container">
<div class="links">
<a href="#">Terms</a>
<a href="#">Privacy</a>
<a href="#">Cookies</a>
<a href="#">Contact</a>
</div>
<div class="copyright">
© ${new Date().getFullYear()} FormFusion Pro. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);