Spaces:
Running
Running
Download components/footer.js from Fraqim/volatilitybot-pro: direct link, hf CLI and curl.
- Browser
- Download file 2.97 kB
-
https://huggingface.co/spaces/Fraqim/volatilitybot-pro/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/Fraqim/volatilitybot-pro/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/Fraqim/volatilitybot-pro/resolve/main/components/footer.js
2.97 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| margin-top: 2rem; | |
| } | |
| footer { | |
| background: rgba(15, 23, 42, 0.8); | |
| border-top: 1px solid rgba(99, 102, 241, 0.1); | |
| padding: 2rem 1rem; | |
| } | |
| .container { | |
| max-width: 80rem; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| md: flex-direction: row; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .text { | |
| color: #64748b; | |
| font-size: 0.875rem; | |
| } | |
| .links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| a { | |
| color: #94a3b8; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| transition: color 0.2s; | |
| } | |
| a:hover { | |
| color: #6366f1; | |
| } | |
| .disclaimer { | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.05); | |
| font-size: 0.75rem; | |
| color: #475569; | |
| text-align: center; | |
| max-width: 48rem; | |
| margin-left: auto; | |
| margin-right: auto; | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="text">© 2024 VolatilityBot Pro. All rights reserved.</div> | |
| <div class="links"> | |
| <a href="#">Privacy Policy</a> | |
| <a href="#">Terms of Service</a> | |
| <a href="#">Risk Disclosure</a> | |
| <a href="#">Support</a> | |
| </div> | |
| </div> | |
| <div class="disclaimer"> | |
| Trading synthetic indices carries a high level of risk and may not be suitable for all investors. | |
| The high degree of leverage can work against you as well as for you. Before deciding to trade, | |
| you should carefully consider your investment objectives, level of experience, and risk appetite. | |
| No representation is being made that any account will or is likely to achieve profits or losses | |
| similar to those discussed on this platform. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |