Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| margin-top: 4rem; | |
| } | |
| footer { | |
| background: rgba(17, 24, 39, 0.9); | |
| border-top: 1px solid rgba(239, 68, 68, 0.3); | |
| padding: 2rem 0; | |
| text-align: center; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .footer-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| flex-wrap: wrap; | |
| gap: 1rem; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| } | |
| .footer-links a { | |
| color: #9ca3af; | |
| text-decoration: none; | |
| transition: color 0.3s; | |
| } | |
| .footer-links a:hover { | |
| color: #ef4444; | |
| } | |
| .copyright { | |
| color: #6b7280; | |
| font-size: 0.875rem; | |
| } | |
| @media (max-width: 768px) { | |
| .footer-content { | |
| flex-direction: column; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="footer-content"> | |
| <div class="copyright"> | |
| © 2024 CodeVault Casino. All rights reserved. | |
| </div> | |
| <div class="footer-links"> | |
| <a href="#">Terms</a> | |
| <a href="#">Privacy</a> | |
| <a href="#">Support</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |