Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1a202c; | |
| color: white; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-links a { | |
| color: #a0aec0; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| color: #718096; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-links { | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="#"><i data-feather="home"></i> Home</a> | |
| <a href="#"><i data-feather="book"></i> Documentation</a> | |
| <a href="#"><i data-feather="github"></i> GitHub</a> | |
| <a href="#"><i data-feather="mail"></i> Contact</a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} Sankey Flow Wizard. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |