Spaces:
Running
Running
Download components/footer.js from batteryfix/taskmaster-pro: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/spaces/batteryfix/taskmaster-pro/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/batteryfix/taskmaster-pro/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/batteryfix/taskmaster-pro/resolve/main/components/footer.js
2.64 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #f9fafb; | |
| color: #6b7280; | |
| padding: 2rem 1rem; | |
| text-align: center; | |
| border-top: 1px solid #e5e7eb; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-links a { | |
| color: #6b7280; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: #6366f1; | |
| } | |
| .copyright { | |
| font-size: 0.875rem; | |
| } | |
| .social-icons { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1rem; | |
| margin-top: 0.5rem; | |
| } | |
| .social-icons a { | |
| color: #9ca3af; | |
| transition: color 0.2s; | |
| } | |
| .social-icons a:hover { | |
| color: #6366f1; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="#">About</a> | |
| <a href="#">Privacy</a> | |
| <a href="#">Terms</a> | |
| <a href="#">Contact</a> | |
| </div> | |
| <div class="social-icons"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="linkedin"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} TaskMaster Pro. All rights reserved. | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |