YuriVM's picture
make flex design to use on android
b8d400c verified
Raw History Blame Contribute Delete
2.03 kB
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: white;
color: #4b5563;
padding: 2rem;
text-align: center;
margin-top: 2rem;
box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}
.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;
flex-wrap: wrap;
}
.footer-links a {
color: #4b5563;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: #4f46e5;
}
.footer-copyright {
font-size: 0.875rem;
color: #6b7280;
}
.social-icons {
display: flex;
justify-content: center;
gap: 1rem;
}
.social-icons a {
color: #6b7280;
transition: color 0.2s;
}
.social-icons a:hover {
color: #4f46e5;
}
</style>
<footer>
<div class="footer-content">
<div class="footer-links">
<a href="/about.html">About</a>
<a href="/privacy.html">Privacy</a>
<a href="/terms.html">Terms</a>
<a href="/contact.html">Contact</a>
</div>
<div class="social-icons">
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
</div>
<div class="footer-copyright">
&copy; ${new Date().getFullYear()} FlexDroid. All rights reserved.
</div>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);