Download components/footer.js from eshansendo/todosnake-python-task-tamer: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/spaces/eshansendo/todosnake-python-task-tamer/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/eshansendo/todosnake-python-task-tamer/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/eshansendo/todosnake-python-task-tamer/resolve/main/components/footer.js
1.8 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| background-color: white; | |
| border-top: 1px solid #e5e7eb; | |
| } | |
| footer { | |
| padding: 1.5rem 2rem; | |
| text-align: center; | |
| color: #6b7280; | |
| font-size: 0.875rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-link { | |
| color: #6b7280; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #4f46e5; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-links { | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Terms</a> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Security</a> | |
| <a href="#" class="footer-link">Status</a> | |
| <a href="#" class="footer-link">Help</a> | |
| </div> | |
| <p>© 2023 PyBrowse - A secure Python Chromium browser</p> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |