File size: 1,297 Bytes
63ee674 | 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 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background: var(--bg-panel-dark);
border-radius: var(--radius);
padding: 16px;
border: 1px solid var(--border);
box-shadow: var(--shadow);
margin-top: auto;
}
.footer-content {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 8px 6px;
color: var(--text-muted);
font-size: 12px;
}
.badge {
border: 1px solid var(--border);
border-radius: 999px;
padding: 6px 10px;
background: rgba(0, 0, 0, 0.12);
}
.profile-link {
color: var(--text-muted);
text-decoration: none;
}
.profile-link:hover {
color: var(--text-light);
}
</style>
<div class="footer-content">
<span class="badge">Made with DeepSite</span>
<a href="/profile.html" class="profile-link">Profil</a>
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter); |