Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1f2937; | |
| color: #9ca3af; | |
| padding: 2rem; | |
| text-align: center; | |
| margin-top: auto; | |
| border-top: 1px solid #374151; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin: 1rem 0; | |
| } | |
| .social-links a { | |
| color: #6b7280; | |
| transition: color 0.2s; | |
| } | |
| .social-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| footer { | |
| padding: 1.5rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="social-links"> | |
| <a href="#" aria-label="GitHub"><i data-feather="github"></i></a> | |
| <a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a> | |
| <a href="#" aria-label="YouTube"><i data-feather="youtube"></i></a> | |
| </div> | |
| <p class="copyright">© 2023 SynthWave Studio. All rights reserved.</p> | |
| <p class="copyright text-xs mt-2">Powered by Tone.js</p> | |
| </div> | |
| </footer> | |
| `; | |
| // Wait for feather icons to load | |
| setTimeout(() => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace(); | |
| } | |
| }, 100); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |