Spaces:
Running
Running
File size: 4,193 Bytes
ffeb8d4 6028b6b ffeb8d4 6028b6b ffeb8d4 |
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #1f2937;
color: white;
padding: 4rem 2rem 2rem;
margin-top: auto;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
}
.footer-logo {
color: #10b981;
font-weight: 800;
font-size: 1.5rem;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}
.footer-description {
color: #9ca3af;
margin-bottom: 1.5rem;
line-height: 1.6;
}
.footer-heading {
color: white;
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 1.5rem;
}
.footer-links {
list-style: none;
padding: 0;
margin: 0;
}
.footer-links li {
margin-bottom: 0.75rem;
}
.footer-links a {
color: #9ca3af;
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: #10b981;
}
.copyright {
max-width: 1200px;
margin: 3rem auto 0;
padding-top: 2rem;
border-top: 1px solid #374151;
color: #9ca3af;
text-align: center;
font-size: 0.9rem;
}
@media (max-width: 768px) {
footer {
padding: 3rem 1rem 1.5rem;
}
.footer-content {
grid-template-columns: 1fr;
gap: 2rem;
}
}
</style>
<footer>
<div class="footer-content">
<div class="footer-column">
<div class="footer-logo">
<i data-feather="code"></i>
AI Website Builder
</div>
<p class="footer-description">
The most advanced AI-powered website creation platform. Build stunning websites in seconds with artificial intelligence.
</p>
</div>
<div class="footer-column">
<h3 class="footer-heading">Product</h3>
<ul class="footer-links">
<li><a href="#">Features</a></li>
<li><a href="#">Examples</a></li>
<li><a href="#">Templates</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Roadmap</a></li>
</ul>
</div>
<div class="footer-column">
<h3 class="footer-heading">Resources</h3>
<ul class="footer-links">
<li><a href="#">Documentation</a></li>
<li><a href="#">Tutorials</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Community</a></li>
<li><a href="#">Support</a></li>
</ul>
</div>
<div class="footer-column">
<h3 class="footer-heading">Company</h3>
<ul class="footer-links">
<li><a href="#">About Us</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Privacy Policy</a></li>
<li><a href="#">Terms of Service</a></li>
</ul>
</div>
</div>
<div class="copyright">
© 2023 AI Website Builder. All rights reserved. Built with artificial intelligence.
</div>
</footer>
`;
// Initialize feather icons after DOM content is added
setTimeout(() => {
const script = document.createElement('script');
script.src = 'https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js';
script.onload = () => {
if (typeof feather !== 'undefined') {
feather.replace();
}
};
this.shadowRoot.appendChild(script);
}, 0);
}
}
customElements.define('custom-footer', CustomFooter); |