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: #1F2937; | |
| border-top: 1px solid #374151; | |
| padding: 3rem 1rem 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .footer-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| margin-bottom: 3rem; | |
| } | |
| .footer-column h3 { | |
| font-size: 1.25rem; | |
| margin-bottom: 1.5rem; | |
| color: white; | |
| } | |
| .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; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-link { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 40px; | |
| height: 40px; | |
| background-color: #374151; | |
| border-radius: 50%; | |
| color: white; | |
| transition: background-color 0.3s ease; | |
| } | |
| .social-link:hover { | |
| background-color: #8B5CF6; | |
| } | |
| .copyright { | |
| text-align: center; | |
| padding-top: 2rem; | |
| border-top: 1px solid #374151; | |
| color: #9CA3AF; | |
| font-size: 0.875rem; | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: white; | |
| text-decoration: none; | |
| margin-bottom: 1rem; | |
| } | |
| .logo-icon { | |
| background: linear-gradient(135deg, #8B5CF6, #EC4899); | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 10px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| </style> | |
| <footer class="footer"> | |
| <div class="footer-container"> | |
| <div class="footer-grid"> | |
| <div class="footer-column"> | |
| <a href="/" class="logo"> | |
| <div class="logo-icon"> | |
| <i data-feather="zap" style="width: 20px; height: 20px; stroke: white;"></i> | |
| </div> | |
| <span>MegaETH</span> | |
| </a> | |
| <p style="color: #9CA3AF; margin-bottom: 1rem;">Create stunning banners and announcements with our easy-to-use generator.</p> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"> | |
| <i data-feather="twitter" style="width: 18px; height: 18px;"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="github" style="width: 18px; height: 18px;"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="linkedin" style="width: 18px; height: 18px;"></i> | |
| </a> | |
| <a href="#" class="social-link"> | |
| <i data-feather="discord" style="width: 18px; height: 18px;"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Product</h3> | |
| <ul class="footer-links"> | |
| <li><a href="/">Home</a></li> | |
| <li><a href="about.html">About</a></li> | |
| <li><a href="tokenomics.html">Tokenomics</a></li> | |
| <li><a href="roadmap.html">Roadmap</a></li> | |
| <li><a href="#">Audit Reports</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Resources</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Whitepaper</a></li> | |
| <li><a href="#">GitHub</a></li> | |
| <li><a href="#">Medium</a></li> | |
| <li><a href="#">Discord</a></li> | |
| <li><a href="#">Telegram</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-column"> | |
| <h3>Company</h3> | |
| <ul class="footer-links"> | |
| <li><a href="#">Team</a></li> | |
| <li><a href="#">Advisors</a></li> | |
| <li><a href="#">Contact</a></li> | |
| <li><a href="#">Press Kit</a></li> | |
| <li><a href="#">Terms of Service</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| <p>© 2023 MegaETH. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| // Initialize feather icons | |
| const script = document.createElement('script'); | |
| script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"; | |
| script.onload = () => { | |
| if (typeof feather !== 'undefined') { | |
| feather.replace(); | |
| } | |
| }; | |
| this.shadowRoot.appendChild(script); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |