| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: var(--dark); | |
| color: white; | |
| padding: 4rem 1rem; | |
| text-align: center; | |
| } | |
| .container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| } | |
| .links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| a { | |
| color: var(--primary-light); | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| a:hover { | |
| color: white; | |
| } | |
| .copyright { | |
| color: var(--gray); | |
| margin-top: 2rem; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer> | |
| <div class="container"> | |
| <div class="links"> | |
| <a href="/">Home</a> | |
| <a href="#solutions">Solutions</a> | |
| <a href="#contact">Contact</a> | |
| <a href="#">Privacy</a> | |
| <a href="#">Terms</a> | |
| </div> | |
| <p>DataFlow Nexus - Modern Data Infrastructure Solutions</p> | |
| <p class="copyright">© ${new Date().getFullYear()} DataFlow Nexus. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |