File size: 1,258 Bytes
52dca4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
47
48
49
50
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        footer {
          background-color: #F9FAFB;
          color: #6B7280;
        }
        .container {
          max-width: 1200px;
          margin: 0 auto;
          padding: 2rem 1rem;
        }
        .links {
          display: flex;
          justify-content: center;
          gap: 2rem;
          flex-wrap: wrap;
        }
        .links a {
          color: #4B5563;
          transition: color 0.2s;
        }
        .links a:hover {
          color: #4F46E5;
        }
        .copyright {
          text-align: center;
          margin-top: 2rem;
          font-size: 0.875rem;
        }
      </style>
      <footer class="mt-12">
        <div class="container">
          <div class="links">
            <a href="#">Terms</a>
            <a href="#">Privacy</a>
            <a href="#">Cookies</a>
            <a href="#">Contact</a>
          </div>
          <div class="copyright">
            © ${new Date().getFullYear()} FormFusion Pro. All rights reserved.
          </div>
        </div>
      </footer>
    `;
  }
}
customElements.define('custom-footer', CustomFooter);