| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #111827; | |
| color: white; | |
| padding: 2.5rem 1rem; | |
| text-align: center; | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| text-align: left; | |
| } | |
| .footer-section h3 { | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| color: #e5e7eb; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| margin-top: 2rem; | |
| padding-top: 1.5rem; | |
| border-top: 1px solid #374151; | |
| color: #9ca3af; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 640px) { | |
| .footer-content { | |
| grid-template-columns: 1fr; | |
| gap: 1.5rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-section"> | |
| <h3>GhostSurf</h3> | |
| <p class="text-gray-400">Browse the web anonymously with our secure proxy service.</p> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Quick Links</h3> | |
| <div class="footer-links"> | |
| <a href="/"><i data-feather="home" width="14" height="14"></i> Home</a> | |
| <a href="/about.html"><i data-feather="info" width="14" height="14"></i> About</a> | |
| <a href="/privacy.html"><i data-feather="shield" width="14" height="14"></i> Privacy</a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Legal</h3> | |
| <div class="footer-links"> | |
| <a href="/terms.html">Terms of Service</a> | |
| <a href="/privacy.html">Privacy Policy</a> | |
| <a href="/cookies.html">Cookie Policy</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} GhostSurf. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |