| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1e1b4b; | |
| color: white; | |
| padding: 2rem 1rem; | |
| text-align: center; | |
| margin-top: 4rem; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1.5rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| flex-wrap: wrap; | |
| } | |
| .footer-links a { | |
| color: #a5b4fc; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| font-weight: 600; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .social-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1rem; | |
| } | |
| .social-links a { | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border-radius: 50%; | |
| transition: background 0.2s; | |
| } | |
| .social-links a:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| } | |
| .copyright { | |
| font-size: 0.875rem; | |
| color: #a5b4fc; | |
| font-weight: 600; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="https://huggingface.co/" target="_blank">HuggingFace</a> | |
| <a href="https://huggingface.co/docs" target="_blank">Docs</a> | |
| <a href="https://huggingface.co/models" target="_blank">Models</a> | |
| <a href="https://huggingface.co/datasets" target="_blank">Datasets</a> | |
| <a href="https://huggingface.co/spaces" target="_blank">Spaces</a> | |
| </div> | |
| <div class="social-links"> | |
| <a href="https://twitter.com/huggingface" target="_blank" aria-label="Twitter"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="https://github.com/huggingface" target="_blank" aria-label="GitHub"> | |
| <i data-feather="github"></i> | |
| </a> | |
| <a href="https://www.linkedin.com/company/huggingface" target="_blank" aria-label="LinkedIn"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} HuggingFace Hub Timeline. Not affiliated with HuggingFace Inc. | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |