| class CustomFooter extends HTMLElement { |
| connectedCallback() { |
| this.attachShadow({ mode: 'open' }); |
| this.shadowRoot.innerHTML = ` |
| <style> |
| :host { |
| display: block; |
| background-color: #111827; |
| color: #f3f4f6; |
| padding: 3rem 1rem; |
| margin-top: 4rem; |
| } |
| |
| .footer-container { |
| max-width: 1200px; |
| margin: 0 auto; |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| gap: 2rem; |
| } |
| |
| .footer-section h3 { |
| font-size: 1.125rem; |
| font-weight: 600; |
| margin-bottom: 1rem; |
| color: white; |
| } |
| |
| .footer-links { |
| display: flex; |
| flex-direction: column; |
| gap: 0.75rem; |
| } |
| |
| .footer-link { |
| color: #9ca3af; |
| transition: color 0.2s; |
| } |
| |
| .footer-link:hover { |
| color: #f87171; |
| } |
| |
| .social-links { |
| display: flex; |
| gap: 1rem; |
| margin-top: 1rem; |
| } |
| |
| .social-link { |
| color: #9ca3af; |
| transition: color 0.2s; |
| } |
| |
| .social-link:hover { |
| color: #f87171; |
| } |
| |
| .copyright { |
| max-width: 1200px; |
| margin: 2rem auto 0; |
| padding-top: 2rem; |
| border-top: 1px solid #374151; |
| text-align: center; |
| color: #9ca3af; |
| font-size: 0.875rem; |
| } |
| </style> |
| <div class="footer-container"> |
| <div class="footer-section"> |
| <h3>TurboChrome</h3> |
| <p class="text-gray-400">The ultimate platform for car engineering and high-quality showcases.</p> |
| <div class="social-links"> |
| <a href="#" class="social-link"> |
| <i data-feather="twitter"></i> |
| </a> |
| <a href="#" class="social-link"> |
| <i data-feather="instagram"></i> |
| </a> |
| <a href="#" class="social-link"> |
| <i data-feather="github"></i> |
| </a> |
| <a href="#" class="social-link"> |
| <i data-feather="linkedin"></i> |
| </a> |
| </div> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Showcase</h3> |
| <div class="footer-links"> |
| <a href="#" class="footer-link">Supercars</a> |
| <a href="#" class="footer-link">Electric Vehicles</a> |
| <a href="#" class="footer-link">Classic Cars</a> |
| <a href="#" class="footer-link">Concept Cars</a> |
| </div> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Resources</h3> |
| <div class="footer-links"> |
| <a href="#" class="footer-link">Engineering Guides</a> |
| <a href="#" class="footer-link">Technical Specs</a> |
| <a href="#" class="footer-link">Performance Data</a> |
| <a href="#" class="footer-link">API Documentation</a> |
| </div> |
| </div> |
| |
| <div class="footer-section"> |
| <h3>Company</h3> |
| <div class="footer-links"> |
| <a href="#" class="footer-link">About Us</a> |
| <a href="#" class="footer-link">Contact</a> |
| <a href="#" class="footer-link">Privacy Policy</a> |
| <a href="#" class="footer-link">Terms of Service</a> |
| </div> |
| </div> |
| </div> |
| |
| <div class="copyright"> |
| © ${new Date().getFullYear()} TurboChrome AutoSpectacle. All rights reserved. |
| </div> |
| <script> |
| feather.replace(); |
| </script> |
| `; |
| } |
| } |
|
|
| customElements.define('custom-footer', CustomFooter); |