Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background-color: #111827; | |
| color: #f3f4f6; | |
| padding: 4rem 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 3rem; | |
| } | |
| .footer-logo { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 1.5rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: white; | |
| } | |
| .footer-description { | |
| color: #9ca3af; | |
| margin-bottom: 2rem; | |
| line-height: 1.6; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| } | |
| .social-links a { | |
| color: #9ca3af; | |
| width: 2.5rem; | |
| height: 2.5rem; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all 0.3s ease; | |
| } | |
| .social-links a:hover { | |
| color: white; | |
| background-color: rgba(255, 255, 255, 0.1); | |
| } | |
| .footer-heading { | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| color: white; | |
| font-size: 1.125rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.3s ease; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| max-width: 1280px; | |
| margin: 4rem auto 0; | |
| padding-top: 2rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| color: #9ca3af; | |
| text-align: center; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div> | |
| <div class="footer-logo"> | |
| <i data-feather="wand"></i> | |
| MotionPortrait | |
| </div> | |
| <p class="footer-description"> | |
| Bringing your portraits to life with magical AI animation technology. | |
| </p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| <a href="#"><i data-feather="facebook"></i></a> | |
| <a href="#"><i data-feather="youtube"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Product</h3> | |
| <div class="footer-links"> | |
| <a href="#features">Features</a> | |
| <a href="#upload">Try It Free</a> | |
| <a href="#">Pricing</a> | |
| <a href="#">Examples</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Company</h3> | |
| <div class="footer-links"> | |
| <a href="#">About Us</a> | |
| <a href="#">Careers</a> | |
| <a href="#">Blog</a> | |
| <a href="#">Press</a> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="footer-heading">Support</h3> | |
| <div class="footer-links"> | |
| <a href="#">Help Center</a> | |
| <a href="#">Community</a> | |
| <a href="#">Contact Us</a> | |
| <a href="#">Privacy Policy</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} MotionPortrait. All rights reserved. | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |