wear-fun / components /footer.js
dodey917's picture
I wnat you to add the nav bar at the top so user can select how page and other opin in the nav bar
8a5c175 verified
class CustomFooter extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
footer {
background: #111827;
border-top: 1px solid #374151;
padding: 3rem 2rem 2rem;
margin-top: 4rem;
}
.footer-content {
max-width: 1280px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}
.footer-section h3 {
color: white;
font-size: 1.125rem;
font-weight: bold;
margin-bottom: 1rem;
}
.footer-section ul {
list-style: none;
padding: 0;
margin: 0;
}
.footer-section ul li {
margin-bottom: 0.5rem;
}
.footer-section a {
color: #9ca3af;
text-decoration: none;
transition: color 0.3s;
}
.footer-section a:hover {
color: #ef4444;
}
.footer-bottom {
max-width: 1280px;
margin: 0 auto;
padding-top: 2rem;
border-top: 1px solid #374151;
text-align: center;
color: #6b7280;
}
.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
background: #374151;
border-radius: 50%;
transition: background 0.3s;
}
.social-links a:hover {
background: #ef4444;
}
</style>
<footer>
<div class="footer-content">
<div class="footer-section">
<h3>Wear.Fun</h3>
<p style="color: #9ca3af; line-height: 1.6;">
From memes to merch - turn your favorite jokes into wearable art in seconds.
</p>
<div class="social-links">
<a href="#" aria-label="Twitter">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z"></path>
</svg>
</a>
<a href="#" aria-label="Instagram">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect>
<path d="M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z"></path>
<line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>
</svg>
</a>
<a href="#" aria-label="Discord">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M8.51 7.26c0-.4-.32-.73-.72-.73-.4 0-.72.33-.72.73v.07c0 .4.32.72.72.72.4 0 .72-.32.72-.72v-.07zm3.91 0c0-.4-.32-.73-.72-.73-.4 0-.72.33-.72.73v.07c0 .4.32.72.72.72.4 0 .72-.32.72-.72v-.07z"></path>
<path d="M20.79 4.23A17.6 17.6 0 0015.7 2.4 18.4 18.4 0 0015.1 3.8a16.2 16.2 0 00-4.8 0A18.4 18.4 0 009.6 2.4 17.6 17.6 0 004.5 4.23a16.9 16.9 0 00-2.4 6.3 16.7 16.7 0 001.4 10.7c.6.9 1.3 1.7 2.1 2.4.8.7 1.7 1.3 2.7 1.8.4-.5.8-1 1.1-1.5a11.6 11.6 0 01-2.5-1.2l.6-.3c5.2 2.4 10.8 2.4 15.9 0l.6.3a11.6 11.6 0 01-2.5 1.2c.3.5.7 1 1.1 1.5 1-.5 1.9-1.1 2.7-1.8.8-.7 1.5-1.5 2.1-2.4a16.7 16.7 0 001.4-10.7 16.9 16.9 0 00-2.4-6.3z"></path>
</svg>
</a>
</div>
</div>
<div class="footer-section">
<h3>Quick Links</h3>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/meme.html">Create Design</a></li>
<li><a href="/shop.html">Shop</a></li>
<li><a href="/about.html">About Us</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Products</h3>
<ul>
<li><a href="/shop.html">T-Shirts</a></li>
<li><a href="/shop.html">Hoodies</a></li>
<li><a href="/shop.html">Mugs</a></li>
<li><a href="/shop.html">Accessories</a></li>
</ul>
</div>
<div class="footer-section">
<h3>Support</h3>
<ul>
<li><a href="#">Contact Us</a></li>
<li><a href="#">FAQ</a></li>
<li><a href="#">Shipping Info</a></li>
<li><a href="#">Returns</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>&copy; 2024 Wear.Fun. All rights reserved. | Turn memes into merch ๐Ÿš€</p>
</div>
</footer>
`;
}
}
customElements.define('custom-footer', CustomFooter);