Spaces:
Running
Running
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 100%; | |
| background-color: #1e293b; | |
| color: #f8fafc; | |
| } | |
| .footer { | |
| padding: 2rem 1rem; | |
| text-align: center; | |
| } | |
| .footer-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1.5rem; | |
| margin-bottom: 1.5rem; | |
| } | |
| .footer-link { | |
| color: #e2e8f0; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #ffffff; | |
| } | |
| .copyright { | |
| font-size: 0.875rem; | |
| color: #94a3b8; | |
| } | |
| </style> | |
| <footer class="footer"> | |
| <div class="footer-links"> | |
| <a href="/privacy.html" class="footer-link">Privacy Policy</a> | |
| <a href="/terms.html" class="footer-link">Terms of Service</a> | |
| <a href="mailto:support@docextractor.com" class="footer-link">Contact Us</a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} DocExtractor Pro. All rights reserved.</p> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |