Download components/footer.js from ebaycom/tindertrack-e-commerce-clone: direct link, hf CLI and curl.
- Browser
- Download file 5.25 kB
-
https://huggingface.co/spaces/ebaycom/tindertrack-e-commerce-clone/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/ebaycom/tindertrack-e-commerce-clone/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/ebaycom/tindertrack-e-commerce-clone/resolve/main/components/footer.js
5.25 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background: #1a202c; | |
| color: white; | |
| padding: 3rem 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
| gap: 2rem; | |
| } | |
| .footer-section h3 { | |
| font-size: 1.2rem; | |
| margin-bottom: 1rem; | |
| font-weight: 600; | |
| } | |
| .footer-links { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .footer-links li { | |
| margin-bottom: 0.5rem; | |
| } | |
| .footer-links a { | |
| color: #a0aec0; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-links a:hover { | |
| color: white; | |
| } | |
| .social-icons { | |
| display: flex; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .social-icons a { | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 50%; | |
| background: rgba(255, 255, 255, 0.1); | |
| transition: background 0.2s; | |
| } | |
| .social-icons 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); | |
| font-size: 0.875rem; | |
| color: #a0aec0; | |
| } | |
| @media (max-width: 640px) { | |
| .footer-container { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="footer-section"> | |
| <h3>Shop</h3> | |
| <ul class="footer-links"> | |
| <li><a href="/category/men?StoreID=tinder0001-20">Men's Fashion</a></li> | |
| <li><a href="/category/women?StoreID=tinder0001-20">Women's Fashion</a></li> | |
| <li><a href="/category/electronics?StoreID=tinder0001-20">Electronics</a></li> | |
| <li><a href="/category/home?StoreID=tinder0001-20">Home & Living</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Customer Service</h3> | |
| <ul class="footer-links"> | |
| <li><a href="/contact?StoreID=tinder0001-20">Contact Us</a></li> | |
| <li><a href="/faq?StoreID=tinder0001-20">FAQs</a></li> | |
| <li><a href="/shipping?StoreID=tinder0001-20">Shipping Info</a></li> | |
| <li><a href="/returns?StoreID=tinder0001-20">Returns & Exchanges</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>About Us</h3> | |
| <ul class="footer-links"> | |
| <li><a href="/about?StoreID=tinder0001-20">Our Story</a></li> | |
| <li><a href="/blog?StoreID=tinder0001-20">Blog</a></li> | |
| <li><a href="/careers?StoreID=tinder0001-20">Careers</a></li> | |
| <li><a href="/press?StoreID=tinder0001-20">Press</a></li> | |
| </ul> | |
| </div> | |
| <div class="footer-section"> | |
| <h3>Connect With Us</h3> | |
| <div class="social-icons"> | |
| <a href="https://facebook.com?StoreID=tinder0001-20"><i data-feather="facebook"></i></a> | |
| <a href="https://twitter.com?StoreID=tinder0001-20"><i data-feather="twitter"></i></a> | |
| <a href="https://instagram.com?StoreID=tinder0001-20"><i data-feather="instagram"></i></a> | |
| <a href="https://pinterest.com?StoreID=tinder0001-20"><i data-feather="youtube"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="copyright"> | |
| <p>© 2023 TinderTrack. All rights reserved. StoreID: tinder0001-20</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |