Spaces:
Running

File size: 3,177 Bytes
a819f41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        footer {
          background: rgba(17, 24, 39, 0.8);
          backdrop-filter: blur(10px);
          color: rgba(209, 213, 219, 0.8);
          padding: 2rem;
          text-align: center;
          margin-top: auto;
          border-top: 1px solid rgba(55, 65, 81, 0.5);
        }
        
        .footer-content {
          max-width: 1200px;
          margin: 0 auto;
          display: flex;
          flex-direction: column;
          gap: 1.5rem;
        }
        
        .footer-links {
          display: flex;
          justify-content: center;
          gap: 2rem;
          flex-wrap: wrap;
        }
        
        .footer-links a {
          color: rgba(209, 213, 219, 0.8);
          text-decoration: none;
          transition: color 0.2s;
          display: flex;
          align-items: center;
        }
        
        .footer-links a:hover {
          color: #3b82f6;
        }
        
        .footer-icon {
          margin-right: 0.5rem;
          width: 1rem;
          height: 1rem;
        }
        
        .copyright {
          font-size: 0.875rem;
          color: rgba(156, 163, 175, 0.7);
        }
        
        .social-links {
          display: flex;
          justify-content: center;
          gap: 1.5rem;
        }
        
        .social-links a {
          color: rgba(209, 213, 219, 0.8);
          transition: color 0.2s, transform 0.2s;
        }
        
        .social-links a:hover {
          color: #3b82f6;
          transform: translateY(-2px);
        }
      </style>
      
      <footer>
        <div class="footer-content">
          <div class="social-links">
            <a href="#" aria-label="GitHub"><i data-feather="github"></i></a>
            <a href="#" aria-label="Twitter"><i data-feather="twitter"></i></a>
            <a href="#" aria-label="LinkedIn"><i data-feather="linkedin"></i></a>
            <a href="#" aria-label="Youtube"><i data-feather="youtube"></i></a>
          </div>
          
          <div class="footer-links">
            <a href="/sobre.html"><i data-feather="info" class="footer-icon"></i> Sobre</a>
            <a href="/privacidade.html"><i data-feather="lock" class="footer-icon"></i> Privacidade</a>
            <a href="/termos.html"><i data-feather="file-text" class="footer-icon"></i> Termos</a>
            <a href="/contato.html"><i data-feather="mail" class="footer-icon"></i> Contato</a>
          </div>
          
          <p class="copyright">&copy; ${new Date().getFullYear()} VoltWizard Pro. Todos os direitos reservados.</p>
        </div>
      </footer>
    `;
    
    // Initialize Feather Icons in shadow DOM
    const featherScript = document.createElement('script');
    featherScript.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
    this.shadowRoot.appendChild(featherScript);
    
    featherScript.onload = () => {
      if (window.feather) {
        window.feather.replace();
      }
    };
  }
}

customElements.define('custom-footer', CustomFooter);