| class CustomFooter extends HTMLElement { |
| connectedCallback() { |
| this.attachShadow({ mode: 'open' }); |
| this.shadowRoot.innerHTML = ` |
| <style> |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); |
| |
| footer { |
| background: rgba(17, 24, 39, 0.8); |
| backdrop-filter: blur(10px); |
| color: #d1d5db; |
| padding: 3rem 2rem; |
| text-align: center; |
| border-top: 1px solid rgba(255, 255, 255, 0.1); |
| margin-top: 4rem; |
| } |
| |
| .footer-content { |
| max-width: 1200px; |
| margin: 0 auto; |
| } |
| |
| .footer-links { |
| display: flex; |
| justify-content: center; |
| gap: 2rem; |
| margin-bottom: 2rem; |
| } |
| |
| .footer-links a { |
| color: #d1d5db; |
| text-decoration: none; |
| transition: color 0.3s ease; |
| } |
| |
| .footer-links a:hover { |
| color: white; |
| } |
| |
| .social-links { |
| display: flex; |
| justify-content: center; |
| gap: 1rem; |
| margin-bottom: 2rem; |
| } |
| |
| .social-links a { |
| color: #d1d5db; |
| transition: color 0.3s ease; |
| } |
| |
| .social-links a:hover { |
| color: #8b5cf6; |
| } |
| |
| .copyright { |
| font-size: 0.875rem; |
| color: #9ca3af; |
| } |
| |
| @media (max-width: 768px) { |
| footer { |
| padding: 2rem 1rem; |
| } |
| |
| .footer-links { |
| flex-direction: column; |
| gap: 1rem; |
| } |
| } |
| </style> |
| <footer> |
| <div class="footer-content"> |
| <div class="social-links"> |
| <a href="https://github.com" target="_blank" aria-label="GitHub"> |
| <i data-feather="github"></i> |
| </a> |
| <a href="https://twitter.com" target="_blank" aria-label="Twitter"> |
| <i data-feather="twitter"></i> |
| </a> |
| <a href="https://linkedin.com" target="_blank" aria-label="LinkedIn"> |
| <i data-feather="linkedin"></i> |
| </a> |
| </div> |
| |
| <div class="footer-links"> |
| <a href="/privacy.html">Privacy Policy</a> |
| <a href="/terms.html">Terms of Service</a> |
| <a href="/contact.html">Contact</a> |
| </div> |
| |
| <div class="copyright"> |
| © 2024 GitHub Repository Analyzer Pro. All rights reserved. π |
| </div> |
| </div> |
| </footer> |
| `; |
|
|
| feather.replace(); |
| } |
| } |
|
|
| customElements.define('custom-footer', CustomFooter); |