flowsync-orderly / components /order-status.js
Akramjon111's picture
change the word TRACK every shipment to ORDER STATUS
13585a0 verified
Raw History Blame Contribute Delete
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);