Spaces:
Running
Running
Download components/footer.js from luluUCD/pyquantflow: direct link, hf CLI and curl.
- Browser
- Download file 6.75 kB
-
https://huggingface.co/spaces/luluUCD/pyquantflow/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/luluUCD/pyquantflow/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/luluUCD/pyquantflow/resolve/main/components/footer.js
6.75 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; | |
| } | |
| .footer-container { | |
| background: linear-gradient(135deg, #1f2937 0%, #111827 100%); | |
| color: #f3f4f6; | |
| width: 100%; | |
| margin-top: auto; | |
| } | |
| .footer-link { | |
| transition: color 0.3s ease; | |
| text-decoration: none; | |
| color: #d1d5db; | |
| display: inline-block; | |
| } | |
| .footer-link:hover { | |
| color: #ef4444; | |
| } | |
| .social-icon { | |
| transition: all 0.3s ease; | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 2.5rem; | |
| height: 2.5rem; | |
| border-radius: 50%; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| color: #f3f4f6; | |
| text-decoration: none; | |
| } | |
| .social-icon:hover { | |
| transform: translateY(-2px); | |
| background-color: #ef4444; | |
| color: white; | |
| } | |
| /* Fix for icons */ | |
| i[data-feather] { | |
| width: 1.25rem; | |
| height: 1.25rem; | |
| stroke-width: 2; | |
| vertical-align: middle; | |
| } | |
| .container { | |
| max-width: 1280px; | |
| margin-left: auto; | |
| margin-right: auto; | |
| padding-left: 1rem; | |
| padding-right: 1rem; | |
| } | |
| /* Fix text colors */ | |
| .text-primary { | |
| color: #ef4444 !important; | |
| } | |
| </style> | |
| <footer class="footer-container mt-16"> | |
| <div class="container mx-auto px-4 py-12"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <!-- Company Info --> | |
| <div class="md:col-span-2"> | |
| <h3 class="text-2xl font-bold mb-4">PyQuant<span class="text-primary">Flow</span></h3> | |
| <p class="text-gray-400 mb-6 max-w-md"> | |
| Python SDK智能量化服务平台 - 可视化跟踪完整流程,规划路线图与实验设置,为技术与非技术人员提供清晰的项目视图。 | |
| </p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="social-icon"> | |
| <i data-feather="github"></i> | |
| </a> | |
| <a href="#" class="social-icon"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="social-icon"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| <a href="#" class="social-icon"> | |
| <i data-feather="mail"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Quick Links --> | |
| <div> | |
| <h4 class="font-bold text-lg mb-4">快速链接</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="index.html" class="footer-link">仪表板</a></li> | |
| <li><a href="tracker.html" class="footer-link">流程跟踪</a></li> | |
| <li><a href="roadmap.html" class="footer-link">路线图</a></li> | |
| <li><a href="experiments.html" class="footer-link">实验设置</a></li> | |
| </ul> | |
| </div> | |
| <!-- Resources --> | |
| <div> | |
| <h4 class="font-bold text-lg mb-4">资源</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="docs.html" class="footer-link">文档</a></li> | |
| <li><a href="api.html" class="footer-link">API 参考</a></li> | |
| <li><a href="tutorials.html" class="footer-link">教程</a></li> | |
| <li><a href="support.html" class="footer-link">支持</a></li> | |
| </ul> | |
| </div> | |
| <!-- Contact --> | |
| <div> | |
| <h4 class="font-bold text-lg mb-4">联系我们</h4> | |
| <ul class="space-y-2 text-gray-400"> | |
| <li class="flex items-center"> | |
| <i data-feather="mail" class="mr-2 w-4 h-4"></i> | |
| <span>contact@pyquantflow.com</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="phone" class="mr-2 w-4 h-4"></i> | |
| <span>+86 123 4567 890</span> | |
| </li> | |
| <li class="flex items-center"> | |
| <i data-feather="map-pin" class="mr-2 w-4 h-4"></i> | |
| <span>上海市浦东新区</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- Copyright --> | |
| <div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-500"> | |
| <p>© 2024 PyQuantFlow 智控面板. All rights reserved. | Python SDK智能量化服务平台</p> | |
| <p class="text-sm mt-2">让量化开发变得简单直观,适合所有团队成员</p> | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize icons in footer | |
| setTimeout(() => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace({ selector: 'i' }); | |
| } | |
| }, 200); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |