Roman125orlov's picture
Сделай сайт про крым
3832349 verified
Raw History Blame Contribute Delete
1.31 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1e3a8a;
color: white;
padding: 2rem;
text-align: center;
margin-top: 3rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
}
.social-links {
display: flex;
justify-content: center;
gap: 1rem;
margin: 1rem 0;
}
.social-links a {
color: white;
font-size: 1.5rem;
}
.copyright {
margin-top: 1rem;
font-size: 0.9rem;
opacity: 0.8;
}
</style>
<footer>
<div class="footer-content">
<h3>Крым - Жемчужина России</h3>
<div class="social-links">
<a href="#"><i class="fab fa-vk"></i></a>
<a href="#"><i class="fab fa-telegram"></i></a>
<a href="#"><i class="fab fa-youtube"></i></a>
</div>
<p class="copyright">© ${new Date().getFullYear()} Все права защищены</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);