File size: 1,196 Bytes
13585a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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);