| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .footer-link { | |
| transition: color 0.2s ease; | |
| } | |
| .footer-link:hover { | |
| color: #2563eb; | |
| } | |
| .social-icon { | |
| transition: all 0.2s ease; | |
| } | |
| .social-icon:hover { | |
| transform: translateY(-2px); | |
| color: #2563eb; | |
| } | |
| </style> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <!-- Company Info --> | |
| <div> | |
| <h3 class="text-xl font-bold mb-4">Transfeero</h3> | |
| <p class="text-gray-400 mb-4">Making travel transfers simple, reliable and affordable worldwide.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="social-icon text-gray-400 hover:text-white"> | |
| <i data-feather="facebook"></i> | |
| </a> | |
| <a href="#" class="social-icon text-gray-400 hover:text-white"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="social-icon text-gray-400 hover:text-white"> | |
| <i data-feather="instagram"></i> | |
| </a> | |
| <a href="#" class="social-icon text-gray-400 hover:text-white"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <!-- Quick Links --> | |
| <div> | |
| <h4 class="font-semibold mb-4">Quick Links</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="/" class="footer-link text-gray-400 hover:text-white">Home</a></li> | |
| <li><a href="/services" class="footer-link text-gray-400 hover:text-white">Services</a></li> | |
| <li><a href="/destinations" class="footer-link text-gray-400 hover:text-white">Destinations</a></li> | |
| <li><a href="/about" class="footer-link text-gray-400 hover:text-white">About Us</a></li> | |
| </ul> | |
| </div> | |
| <!-- Support --> | |
| <div> | |
| <h4 class="font-semibold mb-4">Support</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="/faq" class="footer-link text-gray-400 hover:text-white">FAQs</a></li> | |
| <li><a href="/contact" class="footer-link text-gray-400 hover:text-white">Contact Us</a></li> | |
| <li><a href="/privacy" class="footer-link text-gray-400 hover:text-white">Privacy Policy</a></li> | |
| <li><a href="/terms" class="footer-link text-gray-400 hover:text-white">Terms of Service</a></li> | |
| </ul> | |
| </div> | |
| <!-- Newsletter --> | |
| <div> | |
| <h4 class="font-semibold mb-4">Newsletter</h4> | |
| <p class="text-gray-400 mb-4">Subscribe for travel tips and exclusive offers.</p> | |
| <form class="flex"> | |
| <input type="email" placeholder="Your email" class="bg-gray-700 text-white px-4 py-2 rounded-l-md focus:outline-none focus:ring-2 focus:ring-blue-600 w-full"> | |
| <button type="submit" class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-r-md"> | |
| <i data-feather="send"></i> | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© ${new Date().getFullYear()} Transfeero. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |