Download components/footer.js from EdCumberpatch/chromatic-canvas-explorer: direct link, hf CLI and curl.
- Browser
- Download file 4.75 kB
-
https://huggingface.co/spaces/EdCumberpatch/chromatic-canvas-explorer/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/EdCumberpatch/chromatic-canvas-explorer/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/EdCumberpatch/chromatic-canvas-explorer/resolve/main/components/footer.js
4.75 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .footer-link:hover { | |
| color: #6366f1; | |
| } | |
| .dark .footer-link:hover { | |
| color: #a5b4fc; | |
| } | |
| </style> | |
| <footer class="bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 mt-12"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <a href="#" class="flex items-center space-x-2"> | |
| <i data-feather="droplet" class="text-primary-500 dark:text-primary-400 w-5 h-5"></i> | |
| <span class="text-lg font-medium text-gray-800 dark:text-white">Chromatic Canvas</span> | |
| </a> | |
| <p class="text-gray-600 dark:text-gray-300 text-sm mt-2">Explore the world of colors</p> | |
| </div> | |
| <div class="flex flex-col sm:flex-row sm:space-x-8 space-y-2 sm:space-y-0 text-center sm:text-left"> | |
| <div> | |
| <h3 class="text-gray-800 dark:text-white font-medium mb-2">Resources</h3> | |
| <ul class="space-y-1"> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Documentation</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">API</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Tutorials</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-gray-800 dark:text-white font-medium mb-2">Company</h3> | |
| <ul class="space-y-1"> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">About</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Blog</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Careers</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h3 class="text-gray-800 dark:text-white font-medium mb-2">Legal</h3> | |
| <ul class="space-y-1"> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Privacy</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">Terms</a></li> | |
| <li><a href="#" class="footer-link text-gray-600 dark:text-gray-300 text-sm">License</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 dark:border-gray-700 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-500 dark:text-gray-400 text-sm mb-4 md:mb-0">© 2023 Chromatic Canvas. All rights reserved.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-500 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400"> | |
| <i data-feather="twitter" class="w-4 h-4"></i> | |
| </a> | |
| <a href="#" class="text-gray-500 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400"> | |
| <i data-feather="github" class="w-4 h-4"></i> | |
| </a> | |
| <a href="#" class="text-gray-500 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400"> | |
| <i data-feather="linkedin" class="w-4 h-4"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| `; | |
| // Replace feather icons after rendering | |
| setTimeout(() => { | |
| feather.replace(); | |
| }, 0); | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |