Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); | |
| * { font-family: 'Inter', sans-serif; } | |
| footer { | |
| position: relative; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| background: rgba(9, 9, 11, 0.9); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| padding: 0.75rem 2rem; | |
| z-index: 30; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| } | |
| .footer-links { | |
| display: flex; | |
| align-items: center; | |
| gap: 2rem; | |
| } | |
| .footer-link { | |
| color: #71717a; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| transition: color 0.2s ease; | |
| } | |
| .footer-link:hover { | |
| color: #ffffff; | |
| } | |
| .footer-info { | |
| display: flex; | |
| align-items: center; | |
| gap: 2rem; | |
| color: #71717a; | |
| font-size: 0.75rem; | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: #10b981; | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| } | |
| @media (max-width: 768px) { | |
| footer { | |
| padding: 0.75rem 1rem; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-links { | |
| gap: 1rem; | |
| flex-wrap: wrap; | |
| justify-content: center; | |
| } | |
| .footer-info { | |
| gap: 1rem; | |
| font-size: 0.625rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-links"> | |
| <a href="/privacy" class="footer-link">Privacy Policy</a> | |
| <a href="/terms" class="footer-link">Terms of Service</a> | |
| <a href="/contact" class="footer-link">Contact Us</a> | |
| <a href="/docs" class="footer-link">API Docs</a> | |
| <a href="/blog" class="footer-link">Blog</a> | |
| </div> | |
| <div class="footer-info"> | |
| <div class="status-indicator"> | |
| <div class="status-dot"></div> | |
| <span>All systems operational</span> | |
| </div> | |
| <span>© 2024 Neural Nexus AI</span> | |
| <span>Version 2.0.1</span> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); | |
| // Footer link handlers | |
| function handleFooterLink(link) { | |
| // Smooth scroll or navigation logic | |
| console.log('Navigating to:', link); | |
| } |