-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorders.html
More file actions
401 lines (355 loc) · 14 KB
/
Copy pathorders.html
File metadata and controls
401 lines (355 loc) · 14 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HBazaar - My Orders</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="css/style.css">
<style>
/* Dashboard Specific Styles */
.dashboard-container {
max-width: 1000px;
margin: 40px auto;
padding: 0 20px;
min-height: 60vh;
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30px;
}
.dashboard-title {
font-size: 2rem;
font-weight: 700;
background: linear-gradient(135deg, white 0%, var(--text-secondary) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
.order-card-premium {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 16px;
padding: 25px;
margin-bottom: 25px;
backdrop-filter: blur(12px);
transition: transform 0.3s ease, border-color 0.3s ease;
position: relative;
overflow: hidden;
}
.order-card-premium:hover {
border-color: var(--accent-primary);
transform: translateY(-2px);
}
.oc-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.oc-id {
font-size: 1.1rem;
font-weight: 700;
color: white;
display: flex;
align-items: center;
gap: 10px;
}
.oc-date {
font-size: 0.85rem;
color: var(--text-secondary);
margin-top: 5px;
}
.oc-status-badge {
padding: 6px 12px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Status colors handled by JS usually, but defaults here */
.status-placed {
background: rgba(52, 152, 219, 0.2);
color: #3498db;
border: 1px solid rgba(52, 152, 219, 0.3);
}
.status-shipped {
background: rgba(241, 196, 15, 0.2);
color: #f1c40f;
border: 1px solid rgba(241, 196, 15, 0.3);
}
.status-delivered {
background: rgba(0, 200, 83, 0.2);
color: #00c853;
border: 1px solid rgba(0, 200, 83, 0.3);
}
.status-cancelled {
background: rgba(255, 64, 129, 0.2);
color: #ff4081;
border: 1px solid rgba(255, 64, 129, 0.3);
}
/* Progress Tracker */
.status-tracker {
display: flex;
align-items: center;
margin: 20px 0;
position: relative;
}
.tracker-line {
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: rgba(255, 255, 255, 0.1);
z-index: 0;
transform: translateY(-50%);
}
.tracker-step {
flex: 1;
text-align: center;
position: relative;
z-index: 1;
}
.step-dot {
width: 12px;
height: 12px;
background: var(--card-bg);
/* Dark bg to cover line */
border: 2px solid var(--text-secondary);
border-radius: 50%;
margin: 0 auto 8px;
box-shadow: 0 0 0 4px var(--card-bg);
/* padding effect */
transition: 0.3s;
}
.step-label {
font-size: 0.75rem;
color: var(--text-secondary);
font-weight: 500;
}
.step-active .step-dot {
background: var(--accent-primary);
border-color: var(--accent-primary);
box-shadow: 0 0 10px var(--accent-primary);
}
.step-active .step-label {
color: white;
}
/* Items Grid */
.oc-items {
display: flex;
gap: 15px;
overflow-x: auto;
padding-bottom: 10px;
}
.oc-item-thumb {
width: 70px;
height: 70px;
border-radius: 10px;
object-fit: cover;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.oc-footer {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.oc-total {
font-size: 1.2rem;
font-weight: 700;
color: white;
}
.oc-actions {
display: flex;
gap: 10px;
}
.btn-sm {
padding: 8px 16px;
font-size: 0.85rem;
border-radius: 8px;
cursor: pointer;
border: none;
transition: 0.2s;
font-weight: 500;
}
.btn-outline {
background: transparent;
border: 1px solid var(--glass-border);
color: white;
}
.btn-outline:hover {
border-color: white;
background: rgba(255, 255, 255, 0.05);
}
.btn-danger-outline {
background: transparent;
border: 1px solid rgba(255, 64, 129, 0.4);
color: #ff4081;
}
.btn-danger-outline:hover {
background: rgba(255, 64, 129, 0.1);
}
</style>
</head>
<body>
<div class="background-globes">
<div class="globe globe-1"></div>
<div class="globe globe-2"></div>
</div>
<!-- Mobile Navigation Overlay (For Header Functionality) -->
<div class="mobile-nav-overlay" id="mobileNavOverlay">
<div class="mobile-nav-drawer">
<div class="mobile-nav-header">
<div class="mobile-nav-title">Menu</div>
<button class="close-menu-btn" id="closeMenuBtn"><i class="fa-solid fa-times"></i></button>
</div>
<nav class="mobile-links">
<a href="index.html" class="mobile-link"><i class="fa-solid fa-home"></i> Home</a>
<a href="shop.html" class="mobile-link"><i class="fa-solid fa-store"></i> Shop</a>
<a href="orders.html" class="mobile-link active"><i class="fa-solid fa-box"></i> Orders</a>
<a href="about.html" class="mobile-link"><i class="fa-solid fa-info-circle"></i> About</a>
</nav>
</div>
</div>
<div class="app-container">
<!-- Header (Standard) -->
<header class="glass-header">
<a href="index.html" class="logo" style="text-decoration: none;">
<i class="fa-solid fa-shapes"></i>
<span>HBazaar</span>
</a>
<!-- Desktop Nav -->
<nav class="desktop-nav">
<a href="index.html" class="nav-link">Home</a>
<a href="shop.html" class="nav-link">Shop</a>
<a href="orders.html" class="nav-link active">Orders</a>
<div class="cart-btn" id="cartBtn">
<i class="fa-solid fa-shopping-cart"></i>
<span class="cart-badge hidden" id="cartBadge">0</span>
</div>
</nav>
<!-- Mobile Actions -->
<div style="display: flex; align-items: center; gap: 15px;" class="mobile-only-actions">
<div class="cart-btn" style="display: none;" id="mobileCartBtn">
<i class="fa-solid fa-shopping-cart"></i>
</div>
<button class="mobile-menu-btn" id="mobileMenuBtn">
<i class="fa-solid fa-bars"></i>
</button>
</div>
<style>
@media (max-width: 768px) {
#mobileCartBtn {
display: block !important;
}
}
</style>
</header>
<main class="dashboard-container">
<div class="dashboard-header">
<div>
<h1 class="dashboard-title">Order History</h1>
<p style="color:var(--text-secondary); margin-top:5px;">Track, return, or buy items again.</p>
</div>
<!-- User Avatar/Info could go here -->
</div>
<div id="ordersContainer">
<!-- Orders Injected Here -->
<div style="text-align: center; margin-top: 50px; opacity: 0.6;">
<i class="fa-solid fa-circle-notch fa-spin fa-2x"></i>
</div>
</div>
</main>
<!-- Footer (Standard) -->
<footer class="glass-footer">
<div class="footer-content">
<div class="footer-brand">
<h3>HBazaar</h3>
<p>The premium destination for digital artifacts and future-ready assets.</p>
</div>
<div class="footer-links">
<a href="shop.html">Shop</a>
<a href="about.html">About</a>
<a href="orders.html">My Orders</a>
</div>
<div class="footer-links">
<a href="privacy.html">Privacy Policy</a>
<a href="terms.html">Terms of Service</a>
</div>
<div class="footer-social">
<a href="#"><i class="fa-brands fa-twitter"></i></a>
<a href="#"><i class="fa-brands fa-instagram"></i></a>
<a href="#"><i class="fa-brands fa-discord"></i></a>
</div>
</div>
<div class="footer-bottom">
© 2024 HBazaar. Crafted for the future.
</div>
</footer>
</div>
<!-- Rate Modal -->
<div class="cart-modal-overlay" id="rateModal"
style="align-items: center; justify-content: center; display: none; z-index: 1000;">
<div class="glass-card"
style="width: 90%; max-width: 400px; padding: 2rem; position: relative; animation: slideUp 0.3s ease;">
<button id="closeRateBtn"
style="position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer;"><i
class="fa-solid fa-times"></i></button>
<h2 style="text-align: center; margin-bottom: 0.5rem; color: white;">Rate Order</h2>
<p style="text-align: center; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem;">How
was your experience?</p>
<div class="star-rating"
style="display: flex; justify-content: center; gap: 10px; font-size: 2rem; margin-bottom: 1.5rem; cursor: pointer;">
<i class="fa-regular fa-star" data-val="1"></i>
<i class="fa-regular fa-star" data-val="2"></i>
<i class="fa-regular fa-star" data-val="3"></i>
<i class="fa-regular fa-star" data-val="4"></i>
<i class="fa-regular fa-star" data-val="5"></i>
</div>
<textarea id="rateComment" placeholder="Write your review here..."
style="width: 100%; height: 100px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 10px; padding: 15px; color: white; margin-bottom: 1.5rem; resize: none; font-family: inherit;"></textarea>
<button id="submitRateBtn" class="premium-btn" style="width: 100%;">Submit Review</button>
</div>
</div>
<!-- Hidden Cart Modal Structure for app.js to use -->
<!-- app.js expects this structure to function -->
<div class="cart-modal-overlay" id="cartModal">
<div class="cart-sidebar">
<div class="cart-header">
<h2>Your Bag</h2>
<button id="closeCartBtn"
style="background:none; border:none; color:white; font-size:1.5rem; cursor:pointer;"><i
class="fa-solid fa-times"></i></button>
</div>
<div class="cart-items" id="cartItems"></div>
<div class="cart-footer">
<div
style="display:flex; justify-content:space-between; font-size:1.2rem; font-weight:700; margin-bottom:1rem;">
<span>Total</span>
<span id="cartTotal">₹0.00</span>
</div>
<button class="checkout-btn" id="checkoutBtn">Checkout <i class="fa-solid fa-lock"
style="font-size:0.9rem; margin-left:8px; opacity:0.7;"></i></button>
</div>
</div>
</div>
<!-- Scripts -->
<script src="js/db.js"></script>
<script src="js/orders.js"></script>
<!-- Include app.js for Header/Cart/Footer functionality -->
<script src="js/app.js"></script>
</body>
</html>