Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #111827; | |
| padding: 2rem; | |
| margin-top: auto; | |
| text-align: center; | |
| border-top: 1px solid #1f2937; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-link { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| color: #6b7280; | |
| font-size: 0.75rem; | |
| margin-top: 1rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-links { | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="/about.html" class="footer-link">About</a> | |
| <a href="/privacy.html" class="footer-link">Privacy</a> | |
| <a href="/terms.html" class="footer-link">Terms</a> | |
| <a href="/contact.html" class="footer-link">Contact</a> | |
| </div> | |
| <p class="copyright"> | |
| © ${new Date().getFullYear()} PixelAlchemy Studio. All rights reserved. | |
| </p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |