Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #f9fafb; | |
| padding: 2rem 1rem; | |
| border-top: 1px solid #e5e7eb; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .footer-link { | |
| color: #4b5563; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| } | |
| .footer-link:hover { | |
| color: #7c3aed; | |
| } | |
| .copyright { | |
| color: #6b7280; | |
| font-size: 0.875rem; | |
| text-align: center; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="footer-links"> | |
| <a href="/" class="footer-link">Home</a> | |
| <a href="/word-dataset.html" class="footer-link">Datasets</a> | |
| <a href="#" class="footer-link">Privacy</a> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} Neural Word Wizard. All rights reserved. | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |