00Boobs00's picture
## Purpose and vision
69b845c verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
margin-top: 4rem;
}
.footer {
background: #111827;
border-top: 1px solid #374151;
padding: 3rem 0 2rem;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 2rem;
}
.footer-logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-weight: 700;
font-size: 1.25rem;
margin-bottom: 1rem;
background: linear-gradient(90deg, #10b981, #f97316);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.footer-description {
color: #9ca3af;
line-height: 1.6;
margin-bottom: 1.5rem;
}
.social-links {
display: flex;
gap: 1rem;
}
.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: #1f2937;
color: #9ca3af;
transition: all 0.2s;
}
.social-link:hover {
background: #10b981;
color: white;
}
.footer-heading {
color: white;
font-weight: 600;
margin-bottom: 1.5rem;
font-size: 1.1rem;
}
.footer-links {
list-style: none;
}
.footer-link {
margin-bottom: 0.75rem;
}
.footer-link a {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}
.footer-link a:hover {
color: #10b981;
}
.copyright {
border-top: 1px solid #374151;
padding-top: 2rem;
margin-top: 3rem;
text-align: center;
color: #6b7280;
font-size: 0.9rem;
}
@media (max-width: 768px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.grid {
grid-template-columns: 1fr;
}
}
</style>
<footer class="footer">
<div class="container">
<div class="grid">
<div class="footer-column">
<div class="footer-logo">
<i data-feather="film"></i>
<span>WanVision Studio</span>
</div>
<p class="footer-description">
Transform your images into stunning videos with AI-powered technology.
</p>
<div class="social-links">
<a href="#" class="social-link">
<i data-feather="twitter" style="width: 18px; height: 18px;"></i>
</a>
<a href="#" class="social-link">
<i data-feather="github" style="width: 18px; height: 18px;"></i>
</a>
<a href="#" class="social-link">
<i data-feather="linkedin" style="width: 18px; height: 18px;"></i>
</a>
<a href="#" class="social-link">
<i data-feather="instagram" style="width: 18px; height: 18px;"></i>
</a>
</div>
</div>
<div class="footer-column">
<h3 class="footer-heading">Product</h3>
<ul class="footer-links">
<li class="footer-link"><a href="#">Features</a></li>
<li class="footer-link"><a href="#">Pricing</a></li>
<li class="footer-link"><a href="#">Examples</a></li>
<li class="footer-link"><a href="#">API</a></li>
</ul>
</div>
<div class="footer-column">
<h3 class="footer-heading">Resources</h3>
<ul class="footer-links">
<li class="footer-link"><a href="#">Documentation</a></li>
<li class="footer-link"><a href="#">Tutorials</a></li>
<li class="footer-link"><a href="#">Blog</a></li>
<li class="footer-link"><a href="#">Support</a></li>
</ul>
</div>
<div class="footer-column">
<h3 class="footer-heading">Company</h3>
<ul class="footer-links">
<li class="footer-link"><a href="#">About</a></li>
<li class="footer-link"><a href="#">Careers</a></li>
<li class="footer-link"><a href="#">Contact</a></li>
<li class="footer-link"><a href="#">Legal</a></li>
</ul>
</div>
</div>
<div class="copyright">
&copy; ${new Date().getFullYear()} WanVision Studio. All rights reserved.
</div>
</div>
</footer>
`;
// Initialize feather icons after content is added
setTimeout(() => {
feather.replace();
}, 0);
}
}
customElements.define('custom-footer', CustomFooter);