Spaces:
Running
Running
File size: 2,325 Bytes
79ed84e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1f2937;
color: white;
padding: 4rem 2rem;
margin-top: auto;
}
.container {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
}
h3 {
font-size: 1.125rem;
font-weight: 600;
margin-bottom: 1rem;
color: #e5e7eb;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
li {
margin-bottom: 0.75rem;
}
a {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}
a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
}
.copyright {
text-align: center;
padding-top: 2rem;
margin-top: 2rem;
border-top: 1px solid #374151;
color: #9ca3af;
}
</style>
<footer>
<div class="container">
<div>
<h3>Lovable AI Coder</h3>
<p class="text-gray-400">Transforming ideas into reality with AI-powered code generation.</p>
</div>
<div>
<h3>Quick Links</h3>
<ul>
<li><a href="#how-it-works">How it Works</a></li>
<li><a href="#generate">Code Generator</a></li>
<li><a href="#chat">AI Chat</a></li>
</ul>
</div>
<div>
<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="mail"></i></a>
</div>
</div>
</div>
<div class="copyright">
© ${new Date().getFullYear()} Lovable AI Coder. All rights reserved.
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |