eshansendo's picture
scrapl, make a todo app, a .py pp
801b8b3 verified
Raw History Blame Contribute Delete
1.8 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
background-color: white;
border-top: 1px solid #e5e7eb;
}
footer {
padding: 1.5rem 2rem;
text-align: center;
color: #6b7280;
font-size: 0.875rem;
}
.footer-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1rem;
}
.footer-link {
color: #6b7280;
transition: color 0.2s;
}
.footer-link:hover {
color: #4f46e5;
}
@media (max-width: 768px) {
.footer-links {
flex-direction: column;
gap: 0.5rem;
}
}
</style>
<footer>
<div class="footer-links">
<a href="#" class="footer-link">Terms</a>
<a href="#" class="footer-link">Privacy</a>
<a href="#" class="footer-link">Security</a>
<a href="#" class="footer-link">Status</a>
<a href="#" class="footer-link">Help</a>
</div>
<p>© 2023 PyBrowse - A secure Python Chromium browser</p>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);