Spaces:
Running
Running
Download components/footer.js from testforms/formfusion-pro: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/spaces/testforms/formfusion-pro/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/testforms/formfusion-pro/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/testforms/formfusion-pro/resolve/main/components/footer.js
1.26 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #F9FAFB; | |
| color: #6B7280; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 2rem 1rem; | |
| } | |
| .links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 2rem; | |
| flex-wrap: wrap; | |
| } | |
| .links a { | |
| color: #4B5563; | |
| transition: color 0.2s; | |
| } | |
| .links a:hover { | |
| color: #4F46E5; | |
| } | |
| .copyright { | |
| text-align: center; | |
| margin-top: 2rem; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer class="mt-12"> | |
| <div class="container"> | |
| <div class="links"> | |
| <a href="#">Terms</a> | |
| <a href="#">Privacy</a> | |
| <a href="#">Cookies</a> | |
| <a href="#">Contact</a> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} FormFusion Pro. All rights reserved. | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |