kingarnica's picture
https://github.com/kingoIII/Ruido
ebcc5cf verified
class AudioFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
background: rgba(17, 24, 39, 0.8);
backdrop-filter: blur(10px);
padding: 2rem 0;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
.footer-links {
display: flex;
gap: 1.5rem;
margin-bottom: 1rem;
}
.footer-link {
color: rgba(156, 163, 175, 0.9);
text-decoration: none;
transition: color 0.2s;
}
.footer-link:hover {
color: white;
}
.copyright {
color: rgba(156, 163, 175, 0.7);
font-size: 0.875rem;
}
@media (max-width: 640px) {
.footer-links {
flex-direction: column;
gap: 0.75rem;
}
}
</style>
<div class="footer-content">
<div class="footer-links">
<a href="/" class="footer-link">Home</a>
<a href="https://github.com/kingoIII/Ruido1" target="_blank" rel="noopener noreferrer" class="footer-link">
GitHub
</a>
<a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API" target="_blank" rel="noopener noreferrer" class="footer-link">
Web Audio API
</a>
</div>
<div class="copyright">
&copy; ${new Date().getFullYear()} Ruido Music Platform
</div>
</div>
`;
}
}
customElements.define('audio-footer', AudioFooter);