moreiraj93's picture
https://image2url.com/images/1761549230258-8d82204b-e6f9-4fd3-bf70-cb416b606c78.webp https://image2url.com/images/1761549261138-8c5d0146-33a0-439e-8600-ac4e78052139.webp https://image2url.com/images/1761549284835-2f67e3e9-6b75-4f4b-9ad0-68e92bf81118.jpg https://image2url.com/images/1761549308567-dc29722e-f3dd-4f10-8f8f-340ce5f06b6b.jpg
06ffea8 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
color: white;
padding: 3rem 2rem;
text-align: center;
margin-top: 4rem;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
text-align: left;
}
.footer-section h3 {
font-size: 1.2rem;
margin-bottom: 1rem;
color: #a0aec0;
}
.footer-section ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-section li {
margin-bottom: 0.5rem;
}
.footer-section a {
color: #cbd5e0;
text-decoration: none;
transition: color 0.3s;
}
.footer-section a:hover {
color: white;
}
.copyright {
margin-top: 2rem;
padding-top: 1rem;
border-top: 1px solid #4a5568;
color: #a0aec0;
}
@media (max-width: 600px) {
.footer-content {
grid-template-columns: 1fr;
text-align: center;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Explore</h3>
<ul>
<li><a href="#">Color Palettes</a></li>
<li><a href="#">Gradients</a></li>
<li><a href="#">Color Theory</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Resources</h3>
<ul>
<li><a href="#">API</a></li>
<li><a href="#">Documentation</a></li>
<li><a href="#">Tutorials</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Company</h3>
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
<div class="copyright">
<p>&copy; ${new Date().getFullYear()} Rainbow Spectrum Explorer. All rights reserved.</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);