Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| margin-top: 4rem; | |
| } | |
| footer { | |
| background-color: rgba(17, 24, 39, 0.8); | |
| backdrop-filter: blur(8px); | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| padding: 2rem 0; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1.5rem; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .footer-link { | |
| color: #9CA3AF; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #EC4899; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .social-link { | |
| color: #9CA3AF; | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: #EC4899; | |
| } | |
| .copyright { | |
| color: #6B7280; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Home</a> | |
| <a href="#generator" class="footer-link">Generator</a> | |
| <a href="#examples" class="footer-link">Examples</a> | |
| <a href="#" class="footer-link">Documentation</a> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Terms</a> | |
| </div> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"><i data-feather="github"></i></a> | |
| <a href="#" class="social-link"><i data-feather="twitter"></i></a> | |
| <a href="#" class="social-link"><i data-feather="linkedin"></i></a> | |
| <a href="#" class="social-link"><i data-feather="discord"></i></a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} CodeCraft AI Wizard. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |