Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .footer-link { | |
| transition: all 0.2s ease; | |
| } | |
| .footer-link:hover { | |
| color: #0ea5e9; | |
| transform: translateX(4px); | |
| } | |
| .social-icon { | |
| transition: all 0.2s ease; | |
| } | |
| .social-icon:hover { | |
| transform: translateY(-4px); | |
| } | |
| </style> | |
| <footer class="bg-gray-800 text-white py-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div class="md:col-span-2"> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <div class="w-8 h-8 rounded-full bg-gradient-to-r from-primary-500 to-secondary-500"></div> | |
| <span class="text-xl font-bold">Chromatic Canvas</span> | |
| </div> | |
| <p class="text-gray-400 mb-4">Exploring the beauty of undefined design possibilities.</p> | |
| <div class="flex space-x-4"> | |
| <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="github"></i> | |
| </a> | |
| <a href="#" class="social-icon text-gray-400 hover:text-white"> | |
| <i data-feather="linkedin"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold mb-4">Quick Links</h3> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="footer-link text-gray-400">Home</a></li> | |
| <li><a href="#" class="footer-link text-gray-400">Features</a></li> | |
| <li><a href="#" class="footer-link text-gray-400">Gallery</a></li> | |
| <li><a href="#" class="footer-link text-gray-400">About</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-lg font-semibold mb-4">Contact</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-center space-x-2 text-gray-400"> | |
| <i data-feather="mail"></i> | |
| <span>hello@chromatic.com</span> | |
| </li> | |
| <li class="flex items-center space-x-2 text-gray-400"> | |
| <i data-feather="phone"></i> | |
| <span>+1 (555) 123-4567</span> | |
| </li> | |
| <li class="flex items-center space-x-2 text-gray-400"> | |
| <i data-feather="map-pin"></i> | |
| <span>123 Design St, Creative City</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
| <p>© ${new Date().getFullYear()} Chromatic Canvas. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |