Spaces:
Running
Running
Download components/footer.js from CSNET/pulse-flow: direct link, hf CLI and curl.
- Browser
- Download file 1.78 kB
-
https://huggingface.co/spaces/CSNET/pulse-flow/resolve/main/components/footer.js
- Command line
-
hf download hf://spaces/CSNET/pulse-flow/components/footer.js
-
curl -L -o footer.js https://huggingface.co/spaces/CSNET/pulse-flow/resolve/main/components/footer.js
1.78 kB
| ```javascript | |
| class ThaiFooter extends HTMLElement { | |
| constructor() { | |
| super(); | |
| this.attachShadow({ mode: 'open' }); | |
| } | |
| connectedCallback() { | |
| this.render(); | |
| } | |
| render() { | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| position: fixed; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| z-index: 40; | |
| } | |
| footer { | |
| background: rgba(255, 255, 255, 0.9); | |
| backdrop-filter: blur(10px); | |
| -webkit-backdrop-filter: blur(10px); | |
| border-top: 1px solid rgba(255, 255, 255, 0.18); | |
| box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05); | |
| padding: 0.75rem 0; | |
| } | |
| .dark footer { | |
| background: rgba(15, 23, 42, 0.9); | |
| border-color: rgba(255, 255, 255, 0.08); | |
| } | |
| .nav-items { | |
| display: flex; | |
| justify-content: space-around; | |
| align-items: center; | |
| max-width: 500px; | |
| margin: 0 auto; | |
| } | |
| a { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.25rem; | |
| padding: 0.5rem; | |
| text-decoration: none; | |
| color: #64748b; | |
| transition: all 0.2s; | |
| border-radius: 0.75rem; | |
| min-width: 64px |