Download components/footer.js from AnnShchuga/loop-de-loop-labyrinth: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/AnnShchuga/loop-de-loop-labyrinth/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/AnnShchuga/loop-de-loop-labyrinth/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/AnnShchuga/loop-de-loop-labyrinth/resolve/main/components/footer.js
1.31 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1a202c; | |
| color: white; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: 2rem; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 2rem; | |
| margin-bottom: 1rem; | |
| } | |
| .links a { | |
| color: #9f7aea; | |
| text-decoration: none; | |
| transition: opacity 0.3s; | |
| } | |
| .links a:hover { | |
| opacity: 0.8; | |
| } | |
| .copyright { | |
| font-size: 0.875rem; | |
| color: #a0aec0; | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="links"> | |
| <a href="#">Privacy Policy</a> | |
| <a href="#">Terms of Service</a> | |
| <a href="#">Contact</a> | |
| </div> | |
| <p class="copyright">© 2024 Echoes of Routine. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |