Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #1f2937; | |
| color: #f3f4f6; | |
| } | |
| .social-icon { | |
| transition: transform 0.2s ease; | |
| } | |
| .social-icon:hover { | |
| transform: translateY(-2px); | |
| } | |
| </style> | |
| <footer class="py-8 mt-12"> | |
| <div class="container mx-auto px-6"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-6 md:mb-0"> | |
| <div class="flex items-center space-x-2"> | |
| <i data-feather="shield" class="w-6 h-6 text-orange-400"></i> | |
| <span class="font-bold text-lg">FireGuardian 3000</span> | |
| </div> | |
| <p class="mt-2 text-gray-400 text-sm">Industrial-grade fire alarm system</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition-colors"> | |
| <i data-feather="github" class="social-icon"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition-colors"> | |
| <i data-feather="twitter" class="social-icon"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition-colors"> | |
| <i data-feather="youtube" class="social-icon"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-500 text-sm"> | |
| <p>© ${new Date().getFullYear()} FireGuardian Systems. All rights reserved.</p> | |
| <p class="mt-1">For educational and demonstration purposes only.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |