Spaces:
Running
Running
| class ContentFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| margin-top: auto; | |
| } | |
| .footer { | |
| background: #262626; | |
| border-top: 4px solid #8b5a2b; | |
| padding: 2rem 1rem; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: 1fr auto; | |
| gap: 2rem; | |
| align-items: center; | |
| } | |
| .footer-copyright { | |
| color: #b3b3b3; | |
| font-size: 0.875rem; | |
| font-weight: 700; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .footer-link { | |
| color: #b3b3b3; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| font-weight: 700; | |
| transition: all 0.2s ease; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .footer-link:hover { | |
| color: #8b5a2b; | |
| transform: translateY(-2px); | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| text-align: center; | |
| gap: 1rem; | |
| } | |
| } | |
| </style> | |
| <footer class="footer"> | |
| <div class="footer-container"> | |
| <div class="footer-copyright"> | |
| © 2024 ContentSync Pro. Все права защищены. | |
| </div> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Политика конфиденциальности</a> | |
| <a href="#" class="footer-link">Условия использования</a> | |
| <a href="#" class="footer-link">Поддержка</a> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('content-footer', ContentFooter); |