Download components/footer.js from Abmacode12/codepulse-coding-space-hub: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/Abmacode12/codepulse-coding-space-hub/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/Abmacode12/codepulse-coding-space-hub/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/Abmacode12/codepulse-coding-space-hub/resolve/main/components/footer.js
1.3 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background: var(--bg-panel-dark); | |
| border-radius: var(--radius); | |
| padding: 16px; | |
| border: 1px solid var(--border); | |
| box-shadow: var(--shadow); | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 10px 8px 6px; | |
| color: var(--text-muted); | |
| font-size: 12px; | |
| } | |
| .badge { | |
| border: 1px solid var(--border); | |
| border-radius: 999px; | |
| padding: 6px 10px; | |
| background: rgba(0, 0, 0, 0.12); | |
| } | |
| .profile-link { | |
| color: var(--text-muted); | |
| text-decoration: none; | |
| } | |
| .profile-link:hover { | |
| color: var(--text-light); | |
| } | |
| </style> | |
| <div class="footer-content"> | |
| <span class="badge">Made with DeepSite</span> | |
| <a href="/profile.html" class="profile-link">Profil</a> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |