File size: 1,587 Bytes
06ee293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        footer {
          background-color: #f8fafc;
          border-top: 1px solid #e2e8f0;
        }
        .container {
          max-width: 1200px;
          margin: 0 auto;
          padding: 2rem;
        }
        .social-links a {
          transition: all 0.3s ease;
        }
        .social-links a:hover {
          transform: translateY(-2px);
        }
      </style>
      <footer class="mt-12">
        <div class="container mx-auto">
          <div class="flex flex-col md:flex-row justify-between items-center">
            <div class="mb-4 md:mb-0">
              <p class="text-gray-600">&copy; ${new Date().getFullYear()} DocxLingua. All rights reserved.</p>
            </div>
            <div class="social-links flex space-x-4">
              <a href="#" class="text-gray-500 hover:text-blue-600">
                <i data-feather="twitter"></i>
              </a>
              <a href="#" class="text-gray-500 hover:text-blue-600">
                <i data-feather="facebook"></i>
              </a>
              <a href="#" class="text-gray-500 hover:text-blue-600">
                <i data-feather="instagram"></i>
              </a>
              <a href="#" class="text-gray-500 hover:text-blue-600">
                <i data-feather="linkedin"></i>
              </a>
            </div>
          </div>
        </div>
      </footer>
    `;
  }
}
customElements.define('custom-footer', CustomFooter);