Spaces:
Running
Running
| 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: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .social-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .social-links a { | |
| color: white; | |
| transition: all 0.3s; | |
| } | |
| .social-links a:hover { | |
| transform: translateY(-3px); | |
| color: #60A5FA; | |
| } | |
| .copyright { | |
| font-size: 0.9rem; | |
| opacity: 0.8; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="linkedin"></i></a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} Cool Cool. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |