| class CustomFooter extends HTMLElement { |
| connectedCallback() { |
| this.attachShadow({ mode: 'open' }); |
| this.shadowRoot.innerHTML = ` |
| <style> |
| footer { |
| background: #1e1b4b; |
| color: white; |
| padding: 1.5rem; |
| text-align: center; |
| margin-top: auto; |
| font-size: 0.875rem; |
| } |
| .footer-content { |
| max-width: 1200px; |
| margin: 0 auto; |
| } |
| .social-links { |
| display: flex; |
| justify-content: center; |
| gap: 1rem; |
| margin-top: 1rem; |
| } |
| .social-links a { |
| color: white; |
| opacity: 0.7; |
| transition: opacity 0.2s; |
| } |
| .social-links a:hover { |
| opacity: 1; |
| } |
| </style> |
| <footer> |
| <div class="footer-content"> |
| <p>© ${new Date().getFullYear()} MathTime Clock. All equations are correct!</p> |
| <div class="social-links"> |
| <a href="#" aria-label="GitHub"><i data-feather="github"></i></a> |
| <a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a> |
| <a href="#" aria-label="LinkedIn"><i data-feather="linkedin"></i></a> |
| </div> |
| </div> |
| </footer> |
| `; |
| } |
| } |
| customElements.define('custom-footer', CustomFooter); |