| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #111827; | |
| color: white; | |
| padding: 4rem 1rem; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-logo { | |
| font-size: 1.5rem; | |
| font-weight: bold; | |
| margin-bottom: 1rem; | |
| color: #818CF8; | |
| } | |
| .footer-description { | |
| color: #9CA3AF; | |
| line-height: 1.6; | |
| margin-bottom: 1.5rem; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-link { | |
| color: #9CA3AF; | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: #818CF8; | |
| } | |
| .footer-heading { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| color: white; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-link { | |
| color: #9CA3AF; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #818CF8; | |
| } | |
| .copyright { | |
| text-align: center; | |
| margin-top: 4rem; | |
| color: #6B7280; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div> | |
| <div class="footer-logo">TextileTech</div> | |
| <p class="footer-description"> | |
| L'intelligence artificielle au service de la compétitivité et de la durabilité du Made in Morocco. | |
| </p> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"> | |
| <i data-feather="facebook"></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="instagram"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Solution</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Fonctionnalités</a> | |
| <a href="#" class="footer-link">Modules</a> | |
| <a href="#" class="footer-link">Tarification</a> | |
| <a href="#" class="footer-link">Documentation</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Entreprise</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">À propos</a> | |
| <a href="#" class="footer-link">Blog</a> | |
| <a href="#" class="footer-link">Carrières</a> | |
| <a href="#" class="footer-link">Partenaires</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Support</h3> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">Centre d'aide</a> | |
| <a href="#" class="footer-link">Contact</a> | |
| <a href="#" class="footer-link">Statut</a> | |
| <a href="#" class="footer-link">Confidentialité</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © 2023 TextileTech. Tous droits réservés. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |