Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: rgba(255, 255, 255, 0.9); | |
| backdrop-filter: blur(10px); | |
| padding: 2rem; | |
| text-align: center; | |
| box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); | |
| margin-top: auto; | |
| } | |
| .footer-content { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 2rem; | |
| margin-bottom: 1rem; | |
| flex-wrap: wrap; | |
| } | |
| .footer-links a { | |
| text-decoration: none; | |
| color: #333; | |
| font-weight: 500; | |
| transition: color 0.3s ease; | |
| } | |
| .footer-links a:hover { | |
| color: #667eea; | |
| } | |
| .copyright { | |
| color: #666; | |
| font-size: 0.9rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-links { | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-content"> | |
| <div class="footer-links"> | |
| <a href="#">Privacy Policy</a> | |
| <a href="#">Terms of Service</a> | |
| <a href="#">Contact Us</a> | |
| <a href="#">About</a> | |
| </div> | |
| <p class="copyright">© 2023 HelloWorldApp. All rights reserved. Made with ❤️</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |