Download components/footer.js from normalguy5/pdf-cheat-sheet-generator-pro: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/spaces/normalguy5/pdf-cheat-sheet-generator-pro/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/normalguy5/pdf-cheat-sheet-generator-pro/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/normalguy5/pdf-cheat-sheet-generator-pro/resolve/main/components/footer.js
1.47 kB
| class CustomFooter extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| footer { | |
| background-color: #f7fafc; | |
| border-top: 1px solid #e2e8f0; | |
| padding: 2rem 1rem; | |
| margin-top: 2rem; | |
| } | |
| .footer-container { | |
| max-width: 1280px; | |
| margin: 0 auto; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| } | |
| .footer-links { | |
| display: flex; | |
| gap: 1.5rem; | |
| margin-bottom: 1rem; | |
| } | |
| .footer-link { | |
| color: #4a5568; | |
| text-decoration: none; | |
| transition: color 0.2s; | |
| } | |
| .footer-link:hover { | |
| color: #2b6cb0; | |
| } | |
| .copyright { | |
| color: #718096; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <footer> | |
| <div class="footer-container"> | |
| <div class="footer-links"> | |
| <a href="#" class="footer-link">About</a> | |
| <a href="#" class="footer-link">Privacy</a> | |
| <a href="#" class="footer-link">Terms</a> | |
| <a href="#" class="footer-link">Contact</a> | |
| </div> | |
| <p class="copyright">© ${new Date().getFullYear()} PDF Nugget Miner. All rights reserved.</p> | |
| </div> | |
| </footer> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-footer', CustomFooter); |