| class CustomFooter extends HTMLElement { |
| connectedCallback() { |
| this.attachShadow({ mode: 'open' }); |
| this.shadowRoot.innerHTML = ` |
| <style> |
| footer { |
| background: #0F1720; |
| color: rgba(255, 255, 255, 0.7); |
| padding: 4rem 2rem; |
| } |
| |
| .footer-container { |
| max-width: 1200px; |
| margin: 0 auto; |
| display: grid; |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); |
| gap: 2rem; |
| } |
| |
| .footer-col h4 { |
| color: white; |
| font-size: 1.25rem; |
| margin-bottom: 1.5rem; |
| position: relative; |
| padding-bottom: 0.5rem; |
| } |
| |
| .footer-col h4:after { |
| content: ''; |
| position: absolute; |
| bottom: 0; |
| left: 0; |
| width: 50px; |
| height: 2px; |
| background: #F57C00; |
| } |
| |
| .footer-links { |
| list-style: none; |
| padding: 0; |
| margin: 0; |
| } |
| |
| .footer-links li { |
| margin-bottom: 0.75rem; |
| } |
| |
| .footer-links a { |
| color: rgba(255, 255, 255, 0.7); |
| text-decoration: none; |
| transition: color 0.3s ease; |
| display: flex; |
| align-items: center; |
| gap: 0.5rem; |
| } |
| |
| .footer-links a:hover { |
| color: #F57C00; |
| } |
| |
| .social-links { |
| display: flex; |
| gap: 1rem; |
| margin-top: 1.5rem; |
| } |
| |
| .social-links a { |
| width: 40px; |
| height: 40px; |
| border-radius: 50%; |
| background: rgba(255, 255, 255, 0.1); |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| color: white; |
| transition: all 0.3s ease; |
| } |
| |
| .social-links a:hover { |
| background: #F57C00; |
| transform: translateY(-3px); |
| } |
| |
| .copyright { |
| text-align: center; |
| padding-top: 2rem; |
| margin-top: 3rem; |
| border-top: 1px solid rgba(255, 255, 255, 0.1); |
| color: rgba(255, 255, 255, 0.5); |
| font-size: 0.875rem; |
| } |
| </style> |
| |
| <footer> |
| <div class="footer-container"> |
| <div class="footer-col"> |
| <h4>HomeConstruction</h4> |
| <p>Transforming visions into structurally sound, beautifully finished realities across Kenya with over five years of industry expertise.</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="linkedin"></i></a> |
| </div> |
| </div> |
| |
| <div class="footer-col"> |
| <h4>Services</h4> |
| <ul class="footer-links"> |
| <li><a href="services/construction.html"><i data-feather="chevron-right"></i> Modern Construction</a></li> |
| <li><a href="services/mep.html"><i data-feather="chevron-right"></i> MEP Integration</a></li> |
| <li><a href="services/cold-rooms.html"><i data-feather="chevron-right"></i> Cold Room Solutions</a></li> |
| <li><a href="services/safety.html"><i data-feather="chevron-right"></i> Safety Systems</a></li> |
| </ul> |
| </div> |
| |
| <div class="footer-col"> |
| <h4>Quick Links</h4> |
| <ul class="footer-links"> |
| <li><a href="/"><i data-feather="chevron-right"></i> Home</a></li> |
| <li><a href="services.html"><i data-feather="chevron-right"></i> Services</a></li> |
| <li><a href="projects.html"><i data-feather="chevron-right"></i> Projects</a></li> |
| <li><a href="contact.html"><i data-feather="chevron-right"></i> Contact</a></li> |
| </ul> |
| </div> |
| |
| <div class="footer-col"> |
| <h4>Contact Info</h4> |
| <ul class="footer-links"> |
| <li><a href="#"><i data-feather="map-pin"></i> Crestwood Kilimani, Nairobi</a></li> |
| <li><a href="tel:+254721393478"><i data-feather="phone"></i> +254 721 393478</a></li> |
| <li><a href="mailto:info@homeconstruction.co.ke"><i data-feather="mail"></i> info@homeconstruction.co.ke</a></li> |
| </ul> |
| </div> |
| </div> |
| |
| <div class="copyright"> |
| <p>© 2024 Home Construction & Mechanical Company. All Rights Reserved.</p> |
| </div> |
| </footer> |
| `; |
| } |
| } |
|
|
| customElements.define('custom-footer', CustomFooter); |