Spaces:
Running
Running
File size: 5,908 Bytes
f853e9d |
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 |
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
display: block;
width: 100%;
}
footer {
background: linear-gradient(to right, #3b82f6, #22c55e);
color: white;
padding: 3rem 2rem;
position: relative;
overflow: hidden;
}
.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 2rem;
position: relative;
z-index: 2;
}
.footer-column h3 {
font-size: 1.25rem;
margin-bottom: 1rem;
font-weight: 700;
}
.footer-column ul {
list-style: none;
padding: 0;
}
.footer-column li {
margin-bottom: 0.5rem;
}
.footer-column a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
transition: color 0.2s;
}
.footer-column a:hover {
color: white;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transition: background 0.2s;
}
.social-links a:hover {
background: rgba(255, 255, 255, 0.2);
}
.copyright {
text-align: center;
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
font-size: 0.875rem;
}
.footer-bg-circle {
position: absolute;
border-radius: 50%;
opacity: 0.1;
}
.circle-1 {
width: 300px;
height: 300px;
background: white;
top: -100px;
right: -100px;
}
.circle-2 {
width: 200px;
height: 200px;
background: white;
bottom: -50px;
left: -50px;
}
@media (max-width: 768px) {
.footer-content {
grid-template-columns: 1fr;
}
}
</style>
<footer>
<div class="footer-bg-circle circle-1"></div>
<div class="footer-bg-circle circle-2"></div>
<div class="footer-content">
<div class="footer-column">
<h3>Neon Garden</h3>
<p>A digital ecosystem for growing ideas and nurturing connections.</p>
<div class="social-links">
<a href="#"><i data-feather="twitter"></i></a>
<a href="#"><i data-feather="instagram"></i></a>
<a href="#"><i data-feather="github"></i></a>
</div>
</div>
<div class="footer-column">
<h3>Explore</h3>
<ul>
<li><a href="#ideas">Latest Ideas</a></li>
<li><a href="#topics">Popular Topics</a></li>
<li><a href="#community">Community</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Resources</h3>
<ul>
<li><a href="#about">About</a></li>
<li><a href="#faq">FAQ</a></li>
<li><a href="#guidelines">Guidelines</a></li>
</ul>
</div>
<div class="footer-column">
<h3>Connect</h3>
<ul>
<li><a href="#contact">Contact</a></li>
<li><a href="#newsletter">Newsletter</a></li>
<li><a href="#partners">Partners</a></li>
</ul>
</div>
</div>
<div class="copyright">
© ${new Date().getFullYear()} Neon Garden Cortex. All ideas shared under Creative Commons.
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter); |