File size: 1,318 Bytes
5d66d3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
983e5f7
 
 
 
5d66d3c
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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">&copy; ${new Date().getFullYear()} DocExtractor Pro. All rights reserved.</p>
      </footer>
    `;
  }
}
customElements.define('custom-footer', CustomFooter);