| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| margin-top: auto; | |
| } | |
| footer { | |
| background-color: #f8fafc; | |
| padding: 1.5rem 0; | |
| border-top: 1px solid #e2e8f0; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .footer-links a { | |
| color: #64748b; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| } | |
| .footer-links a:hover { | |
| color: #6366f1; | |
| } | |
| .copyright { | |
| color: #64748b; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| flex-direction: column; | |
| gap: 1rem; | |
| text-align: center; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} HuggingSpace Asset Manager | |
| </div> | |
| <div class="footer-links"> | |
| <a href="https://huggingface.co/docs" target="_blank">Documentation</a> | |
| <a href="https://huggingface.co/support" target="_blank">Support</a> | |
| <a href="https://huggingface.co/privacy" target="_blank">Privacy</a> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |