| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1E1B4B; | |
| color: white; | |
| padding: 3rem 2rem; | |
| text-align: center; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
| gap: 2rem; | |
| text-align: left; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.25rem; | |
| margin-bottom: 1rem; | |
| position: relative; | |
| display: inline-block; | |
| } | |
| .footer-section h3::after { | |
| content: ''; | |
| position: absolute; | |
| bottom: -4px; | |
| left: 0; | |
| width: 40px; | |
| height: 2px; | |
| background: #8B5CF6; | |
| } | |
| .footer-section ul { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-section li { | |
| margin-bottom: 0.5rem; | |
| } | |
| .footer-section a { | |
| color: #E0E7FF; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-section a:hover { | |
| color: #A5B4FC; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-links a { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, 0.1); | |
| transition: background 0.2s; | |
| } | |
| .social-links a:hover { | |
| background: rgba(255, 255, 255, 0.2); | |
| } | |
| .copyright { | |
| margin-top: 2rem; | |
| padding-top: 2rem; | |
| border-top: 1px solid rgba(255, 255, 255, 0.1); | |
| font-size: 0.875rem; | |
| color: #A5B4FC; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-section"> | |
| <h3>ScribbleToScript</h3> | |
| <p>Transform your digital text into beautiful, realistic handwriting with just a few clicks.</p> | |
| <div class="social-links"> | |
| <a href="#"><i data-feather="twitter"></i></a> | |
| <a href="#"><i data-feather="github"></i></a> | |
| <a href="#"><i data-feather="instagram"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Quick Links</h3> | |
| <ul> | |
| <li><a href="/">Home</a></li> | |
| <li><a href="/features.html">Features</a></li> | |
| <li><a href="#">About</a></li> | |
| <li><a href="#">Contact</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Resources</h3> | |
| <ul> | |
| <li><a href="#">Documentation</a></li> | |
| <li><a href="#">API</a></li> | |
| <li><a href="#">FAQ</a></li> | |
| <li><a href="#">Blog</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} ScribbleToScript. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |