Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, #0a0a0f 100%); | |
| color: #cbd5e0; | |
| padding: 4rem 2rem 2rem; | |
| border-top: 1px solid rgba(179, 102, 255, 0.1); | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-column h3 { | |
| color: white; | |
| margin-bottom: 1.5rem; | |
| font-size: 1.25rem; | |
| position: relative; | |
| padding-bottom: 0.5rem; | |
| } | |
| .footer-column h3::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| width: 50px; | |
| height: 2px; | |
| background: linear-gradient(90deg, #b366ff, #6a00b8); | |
| } | |
| .footer-column ul { | |
| list-style: none; | |
| padding: 0; | |
| } | |
| .footer-column ul li { | |
| margin-bottom: 0.75rem; | |
| } | |
| .footer-column ul li a { | |
| color: #94a3b8; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .footer-column ul li a:hover { | |
| color: #b366ff; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-links a { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| background: rgba(179, 102, 255, 0.1); | |
| color: #b366ff; | |
| transition: all 0.3s ease; | |
| } | |
| .social-links a:hover { | |
| background: #b366ff; | |
| color: white; | |
| transform: translateY(-3px); | |
| } | |
| .copyright { | |
| max-width: 1200px; | |
| margin: 3rem auto 0; | |
| padding-top: 2rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.05); | |
| text-align: center; | |
| color: #64748b; | |
| font-size: 0.9rem; | |
| } | |
| @media (max-width: 768px) { | |
| footer { | |
| padding: 3rem 1rem 1rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-column"> | |
| <h3>Neural Glow</h3> | |
| <p>Immersive 3D neural network visualization that transforms data into a luminous digital universe.</p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="linkedin"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Explore</h3> | |
| <ul> | |
| <li><a href="/"><i data-feather="home"></i> Home</a></li> | |
| <li><a href="#features"><i data-feather="layers"></i> Features</a></li> | |
| <li><a href="#explore"><i data-feather="activity"></i> Interactive Demo</a></li> | |
| <li><a href="#"><i data-feather="book"></i> Documentation</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Resources</h3> | |
| <ul> | |
| <li><a href="#"><i data-feather="download"></i> Download</a></li> | |
| <li><a href="#"><i data-feather="help-circle"></i> Support</a></li> | |
| <li><a href="#"><i data-feather="file-text"></i> API Docs</a></li> | |
| <li><a href="#"><i data-feather="users"></i> Community</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Company</h3> | |
| <ul> | |
| <li><a href="#"><i data-feather="info"></i> About Us</a></li> | |
| <li><a href="#"><i data-feather="briefcase"></i> Careers</a></li> | |
| <li><a href="#"><i data-feather="mail"></i> Contact</a></li> | |
| <li><a href="#"><i data-feather="shield"></i> Privacy Policy</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| <p>© 2023 Neural Glow. All rights reserved. Transforming data into digital art.</p> | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize feather icons after a short delay to ensure DOM is ready | |
| setTimeout(() => { | |
| feather.replace(); | |
| }, 100); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |