Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| margin-top: 4rem; | |
| } | |
| footer { | |
| background-color: #111827; | |
| border-top: 1px solid #374151; | |
| padding: 3rem 0 2rem; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 2rem; | |
| margin-bottom: 3rem; | |
| } | |
| .footer-logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| font-weight: 700; | |
| font-size: 1.5rem; | |
| color: white; | |
| margin-bottom: 1rem; | |
| text-decoration: none; | |
| } | |
| .footer-logo-icon { | |
| background: linear-gradient(45deg, #ef4444, #d946ef); | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .footer-description { | |
| color: #9ca3af; | |
| line-height: 1.6; | |
| margin-bottom: 1.5rem; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-link { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| background: #1f2937; | |
| color: #d1d5db; | |
| transition: all 0.3s ease; | |
| } | |
| .social-link:hover { | |
| background: linear-gradient(45deg, #ef4444, #d946ef); | |
| color: white; | |
| transform: translateY(-3px); | |
| } | |
| .footer-heading { | |
| color: white; | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| font-size: 1.125rem; | |
| } | |
| .footer-links { | |
| list-style: none; | |
| } | |
| .footer-links li { | |
| margin-bottom: 0.75rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| border-top: 1px solid #374151; | |
| padding-top: 2rem; | |
| text-align: center; | |
| color: #6b7280; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .footer-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-grid"> | |
| <div class="footer-col"> | |
| <a href="/" class="footer-logo"> | |
| <div class="footer-logo-icon"> | |
| <i data-feather="unlock" class="text-white w-5 h-5"></i> | |
| </div> | |
| <span>UnlockPro</span> | |
| </a> | |
| <p class="footer-description"> | |
| Professional device unlocking solutions for all major smartphone brands and models. | |
| </p> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"> | |
| <i data-feather="twitter"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="facebook"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="instagram"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="youtube"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="footer-col"> | |
| <h3 class="footer-heading">Products</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Screen Unlock</a></li> | |
| <li><a href="#">FRP Bypass</a></li> | |
| <li><a href="#">Bootloader Unlock</a></li> | |
| <li><a href="#">SIM Unlock</a></li> | |
| <li><a href="#">iPhone Unlock</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-col"> | |
| <h3 class="footer-heading">Support</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Documentation</a></li> | |
| <li><a href="#">Tutorials</a></li> | |
| <li><a href="#">FAQ</a></li> | |
| <li><a href="#">Contact Us</a></li> | |
| <li><a href="#">Community</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-col"> | |
| <h3 class="footer-heading">Company</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">About Us</a></li> | |
| <li><a href="#">Careers</a></li> | |
| <li><a href="#">Privacy Policy</a></li> | |
| <li><a href="#">Terms of Service</a></li> | |
| <li><a href="#">Affiliate Program</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| <p>© 2023 UnlockPro. All rights reserved. This is a demo interface only.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize feather icons in shadow DOM | |
| import('https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js').then(() => { | |
| setTimeout(() => { | |
| feather.replace({ icons: this.shadowRoot.querySelectorAll('[data-feather]') }); | |
| }, 0); | |
| }); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |