Spaces:
Running
Running
File size: 4,527 Bytes
80eb6a6 |
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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
footer {
background-color: #1f2937;
color: #d1d5db;
padding: 3rem 1rem 1rem;
}
.container {
max-width: 1280px;
margin: 0 auto;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
margin-bottom: 3rem;
}
.footer-column h3 {
color: white;
margin-bottom: 1.5rem;
font-size: 1.125rem;
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 0.75rem;
}
.footer-column ul li a {
color: #9ca3af;
text-decoration: none;
transition: color 0.3s;
}
.footer-column ul li a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: inline-block;
width: 40px;
height: 40px;
background-color: #374151;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
}
.social-links a:hover {
background-color: #4f46e5;
}
.copyright {
border-top: 1px solid #374151;
padding-top: 1.5rem;
text-align: center;
color: #9ca3af;
font-size: 0.875rem;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<footer>
<div class="container">
<div class="footer-content">
<div class="footer-column">
<h3>Product</h3>
<ul>
<li><a href="#">Features</a></li>
<li><a href="#">Integrations</a></li>
<li><a href="#">Pricing</a></li>
<li><a href="#">Changelog</a></li>
<li><a href="#">Roadmap</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Resources</h3>
<ul>
<li><a href="#">Documentation</a></li>
<li><a href="#">API Reference</a></li>
<li><a href="#">Guides</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Community</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Company</h3>
<ul>
<li><a href="#">About Us</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Partners</a></li>
<li><a href="#">Legal</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Connect</h3>
<ul>
<li><a href="#">Twitter</a></li>
<li><a href="#">LinkedIn</a></li>
<li><a href="#">GitHub</a></li>
<li><a href="#">YouTube</a></li>
<li><a href="#">Discord</a></li>
</ul>
<div class="social-links">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="linkedin"></i></a>
<a href="#"><i data-feather="github"></i></a>
<a href="#"><i data-feather="youtube"></i></a>
</div>
</div>
</div>
<div class="copyright">
© ${new Date().getFullYear()} CloudForge Pro. All rights reserved.
</div>
</div>
</footer>
`;
// Initialize Feather icons
setTimeout(() => {
if (typeof feather !== 'undefined') {
feather.replace();
}
}, 0);
}
}
customElements.define('custom-footer', CustomFooter); |