| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| background-color: var(--gray-800); | |
| color: white; | |
| padding: 3rem 1rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| margin-bottom: 1rem; | |
| color: var(--primary-300); | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .footer-link { | |
| color: var(--gray-300); | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: white; | |
| } | |
| .social-links { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-link { | |
| color: var(--gray-300); | |
| transition: color 0.2s; | |
| } | |
| .social-link:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| margin-top: 3rem; | |
| text-align: center; | |
| color: var(--gray-400); | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <div class="footer-container"> | |
| <div class="footer-section"> | |
| <h3>Chromatic Canvas</h3> | |
| <p class="text-gray-300">A vibrant playground of colors and design where creativity meets functionality.</p> | |
| <div class="social-links"> | |
| <a href="#" class="social-link"><i data-feather="twitter"></i></a> | |
| <a href="#" class="social-link"><i data-feather="instagram"></i></a> | |
| <a href="#" class="social-link"><i data-feather="github"></i></a> | |
| <a href="#" class="social-link"><i data-feather="linkedin"></i></a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Quick Links</h3> | |
| <div class="footer-links"> | |
| <a href="/" class="footer-link">Home</a> | |
| <a href="/features" class="footer-link">Features</a> | |
| <a href="/gallery" class="footer-link">Gallery</a> | |
| <a href="/contact" class="footer-link">Contact</a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Resources</h3> | |
| <div class="footer-links"> | |
| <a href="/blog" class="footer-link">Blog</a> | |
| <a href="/tutorials" class="footer-link">Tutorials</a> | |
| <a href="/docs" class="footer-link">Documentation</a> | |
| <a href="/community" class="footer-link">Community</a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Contact</h3> | |
| <div class="footer-links"> | |
| <a href="mailto:hello@chromaticcanvas.com" class="footer-link">hello@chromaticcanvas.com</a> | |
| <a href="tel:+1234567890" class="footer-link">+1 (234) 567-890</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © ${new Date().getFullYear()} Chromatic Canvas. All rights reserved. | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |