PrometheusGroup's picture
try again, darker and more consistent/modern
6ce77d4 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
background-color: rgba(17, 24, 39, 0.8);
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding: 3rem 0;
margin-top: 4rem;
}
.footer-content {
max-width: 1440px;
margin: 0 auto;
padding: 0 2rem;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
.footer-column h3 {
color: white;
font-weight: 600;
margin-bottom: 1.5rem;
font-size: 1.125rem;
}
.footer-column ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-column li {
margin-bottom: 0.75rem;
}
.footer-column a {
color: rgba(255, 255, 255, 0.6);
transition: color 0.2s;
}
.footer-column a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
transition: all 0.2s;
}
.social-links a:hover {
background-color: rgba(255, 255, 255, 0.2);
transform: translateY(-2px);
}
.copyright {
text-align: center;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.4);
font-size: 0.875rem;
}
</style>
<div class="footer-content">
<div class="footer-column">
<h3>Product</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Documentation</a></li>
<li><a href="#">Releases</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Company</h3>
<ul>
<li><a href="#">About</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Press</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Resources</h3>
<ul>
<li><a href="#">Community</a></li>
<li><a href="#">Help Center</a></li>
<li><a href="#">Status</a></li>
<li><a href="#">API</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Connect</h3>
<div class="social-links">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
<a href="#"><i data-feather="instagram"></i></a>
</div>
</div>
</div>
<div class="copyright">
&copy; ${new Date().getFullYear()} VoidScape Noir. All rights reserved.
</div>
`;
}
}
customElements.define('custom-footer', CustomFooter);