SwitchAlpha's picture
Connected2me-style App
bdd7865 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: rgba(0, 0, 0, 0.3);
color: rgba(255, 255, 255, 0.7);
padding: 2rem 1rem;
text-align: center;
margin-top: auto;
backdrop-filter: blur(5px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.footer-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1rem;
}
.footer-links a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: white;
}
.copyright {
font-size: 0.9rem;
}
@media (max-width: 768px) {
.footer-links {
flex-direction: column;
gap: 0.5rem;
align-items: center;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-links">
<a href="/privacy.html">Privacy</a>
<a href="/terms.html">Terms</a>
<a href="/about.html">About</a>
<a href="/contact.html">Contact</a>
</div>
<p class="copyright">&copy; ${new Date().getFullYear()} WhisperLink Vibes. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);