Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1f2937; | |
| color: white; | |
| padding: 4rem 2rem; | |
| text-align: center; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| text-align: left; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| margin-bottom: 1.5rem; | |
| color: #e5e7eb; | |
| } | |
| .footer-links { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: #6366f1; | |
| } | |
| .copyright { | |
| margin-top: 3rem; | |
| padding-top: 2rem; | |
| border-top: 1px solid #374151; | |
| color: #9ca3af; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-section"> | |
| <h3>CardCrafter</h3> | |
| <p>Create stunning card designs with our easy-to-use templates and customization options.</p> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Templates</h3> | |
| <div class="footer-links"> | |
| <a href="/glassmorphism.html">Glassmorphism</a> | |
| <a href="/minimal.html">Minimal Circular</a> | |
| <a href="/datablock.html">Data Block</a> | |
| </div> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Resources</h3> | |
| <div class="footer-links"> | |
| <a href="/docs.html">Documentation</a> | |
| <a href="/tools.html">Tools</a> | |
| <a href="/support.html">Support</a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| © 2024 CardCrafter Deluxe. All rights reserved. | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |