Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background-color: #1e293b; | |
| color: white; | |
| padding: 3rem 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-logo { | |
| display: flex; | |
| align-items: center; | |
| font-weight: 700; | |
| font-size: 1.25rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-logo-icon { | |
| margin-right: 0.5rem; | |
| } | |
| .footer-description { | |
| color: #94a3b8; | |
| margin-bottom: 1.5rem; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-links a { | |
| color: #94a3b8; | |
| transition: color 0.2s; | |
| } | |
| .social-links a:hover { | |
| color: white; | |
| } | |
| .footer-heading { | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| font-size: 1.125rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-links a { | |
| color: #94a3b8; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| margin-top: 3rem; | |
| padding-top: 2rem; | |
| border-top: 1px solid #334155; | |
| text-align: center; | |
| color: #94a3b8; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div> | |
| <div class="footer-logo"> | |
| <i data-feather="shield" class="footer-logo-icon"></i> | |
| CryptoShield AI | |
| </div> | |
| <p class="footer-description"> | |
| AI-powered protection for your cryptocurrency assets against hacks, scams, and volatility. | |
| </p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="linkedin"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="discord"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Product</h3> | |
| <div class="footer-links"> | |
| <a href="/features.html">Features</a> | |
| <a href="/pricing.html">Pricing</a> | |
| <a href="/how-it-works.html">How It Works</a> | |
| <a href="/status.html">Status</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Company</h3> | |
| <div class="footer-links"> | |
| <a href="/about.html">About</a> | |
| <a href="/careers.html">Careers</a> | |
| <a href="/blog.html">Blog</a> | |
| <a href="/press.html">Press</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Resources</h3> | |
| <div class="footer-links"> | |
| <a href="/help.html">Help Center</a> | |
| <a href="/security.html">Security</a> | |
| <a href="/privacy.html">Privacy</a> | |
| <a href="/terms.html">Terms</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} CryptoShield AI. All rights reserved. | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |