Spaces:
Running

devarlendfs's picture
⚙️ PROMPT GERAL — VERSÃO ALTERNATIVA DO ELETROLAB
a819f41 verified
Raw History Blame Contribute Delete
3.18 kB
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);