| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #1a202c; | |
| color: white; | |
| padding: 2rem 1rem; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-column h3 { | |
| color: #f59e0b; | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-column ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-column li { | |
| margin-bottom: 0.5rem; | |
| } | |
| .footer-column a { | |
| color: #e2e8f0; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-column a:hover { | |
| color: #f59e0b; | |
| } | |
| .copyright { | |
| text-align: center; | |
| margin-top: 2rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid #2d3748; | |
| color: #a0aec0; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-links a { | |
| color: #cbd5e0; | |
| transition: color 0.2s; | |
| } | |
| .social-links a:hover { | |
| color: #f59e0b; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-column"> | |
| <h3>ByteBazaar</h3> | |
| <p class="text-gray-400">Build your perfect PC with our easy-to-use configurator and high-quality components.</p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="facebook"></i></a> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| <a href="#"><i data-feather="youtube"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Quick Links</h3> | |
| <ul> | |
| <li><a href="#">Home</a></li> | |
| <li><a href="#builder">PC Builder</a></li> | |
| <li><a href="#prebuilt">Prebuilt Systems</a></li> | |
| <li><a href="#">Components</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Support</h3> | |
| <ul> | |
| <li><a href="#">FAQ</a></li> | |
| <li><a href="#">Contact Us</a></li> | |
| <li><a href="#">Shipping Policy</a></li> | |
| <li><a href="#">Returns</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Contact</h3> | |
| <ul> | |
| <li><i data-feather="mail" class="inline mr-2"></i> support@bytebazaar.com</li> | |
| <li><i data-feather="phone" class="inline mr-2"></i> (123) 456-7890</li> | |
| <li><i data-feather="map-pin" class="inline mr-2"></i> 123 Tech Street, Silicon Valley</li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} ByteBazaar. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |