Hyperzilla's picture
google search
083161b verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #f2f2f2;
color: #70757a;
padding: 1rem 2rem;
font-size: 0.875rem;
border-top: 1px solid #dadce0;
}
.footer-content {
display: flex;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
flex-wrap: wrap;
gap: 1rem;
}
.footer-links {
display: flex;
gap: 1.5rem;
list-style: none;
margin: 0;
padding: 0;
flex-wrap: wrap;
}
a {
color: inherit;
text-decoration: none;
transition: color 0.2s;
}
a:hover {
color: #1a73e8;
}
@media (max-width: 640px) {
.footer-content {
flex-direction: column;
align-items: center;
}
.footer-links {
justify-content: center;
}
}
</style>
<footer>
<div class="footer-content">
<div>© 2024 Googly Moogly - Where moogly searches happen</div>
<ul class="footer-links">
<li><a href="#">About</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Terms</a></li>
<li><a href="#">Settings</a></li>
<li><a href="#">Help</a></li>
</ul>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);