Spaces:
Running
Running
Download components/order-status.js from Akramjon111/flowsync-orderly: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/Akramjon111/flowsync-orderly/resolve/main/components/order-status.js
- Command line
-
hf download hf://spaces/Akramjon111/flowsync-orderly/components/order-status.js
-
curl -L -o order-status.js https://huggingface.co/spaces/Akramjon111/flowsync-orderly/resolve/main/components/order-status.js
1.2 kB
| class OrderStatus extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .status-container { | |
| background: white; | |
| border-radius: 0.5rem; | |
| padding: 1rem; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.1); | |
| margin: 1rem 0; | |
| } | |
| .status-header { | |
| display: flex; | |
| align-items: center; | |
| margin-bottom: 0.5rem; | |
| } | |
| .status-icon { | |
| width: 24px; | |
| height: 24px; | |
| margin-right: 0.5rem; | |
| color: #3B82F6; | |
| } | |
| .status-title { | |
| font-weight: 600; | |
| color: #111827; | |
| } | |
| .status-description { | |
| color: #6B7280; | |
| font-size: 0.875rem; | |
| } | |
| </style> | |
| <div class="status-container"> | |
| <div class="status-header"> | |
| <i data-feather="truck" class="status-icon"></i> | |
| <span class="status-title">Order Status</span> | |
| </div> | |
| <p class="status-description">Real-time updates on your delivery</p> | |
| </div> | |
| `; | |
| feather.replace(); | |
| } | |
| } | |
| customElements.define('order-status', OrderStatus); |