Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1f2937; | |
| color: white; | |
| padding: 4rem 2rem 2rem; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-logo { | |
| color: #10b981; | |
| font-weight: 800; | |
| font-size: 1.5rem; | |
| margin-bottom: 1rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .footer-description { | |
| color: #9ca3af; | |
| margin-bottom: 1.5rem; | |
| line-height: 1.6; | |
| } | |
| .footer-heading { | |
| color: white; | |
| font-weight: 700; | |
| font-size: 1.1rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .footer-links { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-links li { | |
| margin-bottom: 0.75rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: #10b981; | |
| } | |
| .copyright { | |
| max-width: 1200px; | |
| margin: 3rem auto 0; | |
| padding-top: 2rem; | |
| border-top: 1px solid #374151; | |
| color: #9ca3af; | |
| text-align: center; | |
| font-size: 0.9rem; | |
| } | |
| @media (max-width: 768px) { | |
| footer { | |
| padding: 3rem 1rem 1.5rem; | |
| } | |
| .footer-content { | |
| grid-template-columns: 1fr; | |
| gap: 2rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-column"> | |
| <div class="footer-logo"> | |
| <i data-feather="code"></i> | |
| AI Website Builder | |
| </div> | |
| <p class="footer-description"> | |
| The most advanced AI-powered website creation platform. Build stunning websites in seconds with artificial intelligence. | |
| </p> | |
| </div> | |
| <div class="footer-column"> | |
| <h3 class="footer-heading">Product</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Features</a></li> | |
| <li><a href="#">Examples</a></li> | |
| <li><a href="#">Templates</a></li> | |
| <li><a href="#">Pricing</a></li> | |
| <li><a href="#">Roadmap</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3 class="footer-heading">Resources</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Documentation</a></li> | |
| <li><a href="#">Tutorials</a></li> | |
| <li><a href="#">Blog</a></li> | |
| <li><a href="#">Community</a></li> | |
| <li><a href="#">Support</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3 class="footer-heading">Company</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">About Us</a></li> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Contact</a></li> | |
| <li><a href="#">Privacy Policy</a></li> | |
| <li><a href="#">Terms of Service</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © 2023 AI Website Builder. All rights reserved. Built with artificial intelligence. | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize feather icons after DOM content is added | |
| setTimeout(() => { | |
| const script = document.createElement('script'); | |
| script.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js'; | |
| script.onload = () => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace(); | |
| } | |
| }; | |
| this.shadowRoot.appendChild(script); | |
| }, 0); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |