-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelivery.html
More file actions
890 lines (809 loc) · 34.9 KB
/
delivery.html
File metadata and controls
890 lines (809 loc) · 34.9 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
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Suivi Livraison - EcoMarket</title>
<link rel="stylesheet" href="css/style.css" />
<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=Poppins:wght@300;400;500;600;700;800;900&display=swap"
rel="stylesheet"
/>
<style>
.logo a {
text-decoration: none;
}
</style>
</head>
<body>
<!-- Header -->
<header class="header">
<nav class="navbar">
<div class="nav-container">
<div class="logo">
<a href="index.html"><h1>🌱 EcoMarket</h1></a>
</div>
<ul class="nav-menu">
<li>
<a href="marketplace.html" class="nav-link"
>Marché</a
>
</li>
<li>
<a href="about.html" class="nav-link">À Propos</a>
</li>
<li class="dropdown">
<a href="#" class="nav-link dropdown-btn active"
>Tableau de Bord ▼</a
>
<div class="dropdown-content">
<a href="farmer-dashboard.html"
>Tableau Producteur</a
>
<a href="buyer-dashboard.html"
>Tableau Acheteur</a
>
<a href="quality-control.html"
>Contrôle Qualité</a
>
<a href="delivery.html">Suivi Livraison</a>
</div>
</li>
</ul>
<div class="nav-actions">
<button class="btn btn-outline-sm">
Rejoindre en tant qu'Agriculteur
</button>
<button class="btn btn-primary-sm">
Acheter des Produits Frais
</button>
</div>
<div class="mobile-menu-toggle">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
</header>
<!-- Delivery Hero Section -->
<section class="delivery-hero">
<div class="container">
<div class="delivery-hero-content">
<span class="section-tag">🚚 Suivi en Temps Réel</span>
<h1>Suivez Votre Livraison de Produits Frais</h1>
<p>
Surveillez vos commandes de la ferme à votre porte avec
notre système de suivi avancé
</p>
</div>
</div>
</section>
<!-- Quick Order Lookup -->
<section class="order-lookup-section">
<div class="container">
<div class="lookup-container">
<h2>🔍 Suivre Votre Commande</h2>
<div class="lookup-form">
<input
type="text"
id="orderIdInput"
placeholder="Entrez l'ID de Commande (ex: ABC123)"
maxlength="10"
/>
<button class="btn btn-primary" onclick="trackOrder()">
Suivre la Commande
</button>
</div>
<div id="trackingResult" class="tracking-result hidden">
<!-- Tracking result will be displayed here -->
</div>
</div>
</div>
</section>
<!-- Delivery Stats -->
<section class="delivery-stats-section">
<div class="container">
<div class="stats-grid">
<div class="stat-card">
<div class="stat-icon">📦</div>
<div class="stat-info">
<h3 id="activeDeliveries">24</h3>
<p>Livraisons Actives</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon">✅</div>
<div class="stat-info">
<h3 id="deliveredToday">156</h3>
<p>Livrées Aujourd'hui</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon">⏰</div>
<div class="stat-info">
<h3 id="avgDeliveryTime">2.3h</h3>
<p>Temps de Livraison Moyen</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon">⭐</div>
<div class="stat-info">
<h3 id="deliveryRating">4.9</h3>
<p>Note Client</p>
</div>
</div>
</div>
</div>
</section>
<!-- Active Deliveries -->
<section class="active-deliveries-section">
<div class="container">
<div class="section-header">
<h2>Livraisons Actives</h2>
<p>Suivi en temps réel des livraisons en cours</p>
</div>
<div class="delivery-map-container">
<div class="delivery-map">
<div class="map-placeholder">
<h3>📍 Carte de Livraison en Direct</h3>
<div class="map-locations">
<div
class="location warehouse"
style="top: 20%; left: 30%"
>
<span class="location-icon">🏢</span>
<span class="location-label">Entrepôt</span>
</div>
<div
class="location delivery active"
style="top: 40%; left: 50%"
>
<span class="location-icon">🚚</span>
<span class="location-label"
>Mike J. - En Route</span
>
</div>
<div
class="location delivery"
style="top: 60%; left: 70%"
>
<span class="location-icon">🚚</span>
<span class="location-label"
>Sarah D. - Livrée</span
>
</div>
<div
class="location customer"
style="top: 45%; left: 75%"
>
<span class="location-icon">🏠</span>
<span class="location-label">Client A</span>
</div>
<div
class="location customer"
style="top: 35%; left: 60%"
>
<span class="location-icon">🏠</span>
<span class="location-label">Client B</span>
</div>
</div>
<div
class="route-line"
style="
top: 30%;
left: 35%;
width: 25%;
transform: rotate(15deg);
"
></div>
<div
class="route-line"
style="
top: 50%;
left: 55%;
width: 15%;
transform: rotate(-10deg);
"
></div>
</div>
</div>
</div>
<div class="active-deliveries-list">
<div class="delivery-item urgent">
<div class="delivery-header">
<div class="delivery-info">
<h3>Commande #ABC123</h3>
<span class="customer-name">John Smith</span>
<span class="delivery-address"
>📍 123 Rue Principale, Yaoundé</span
>
</div>
<div class="delivery-status">
<span class="status-badge out-for-delivery"
>En Livraison</span
>
<span class="priority-badge urgent"
>Urgent</span
>
</div>
</div>
<div class="delivery-details">
<div class="driver-info">
<span class="driver-name">👤 Mike Johnson</span>
<span class="driver-contact"
>📱 +237 123 456 789</span
>
<span class="vehicle">🚚 Truck #EcoM-001</span>
</div>
<div class="delivery-progress">
<div class="progress-bar">
<div
class="progress-fill"
style="width: 75%"
></div>
</div>
<span class="progress-text"
>75% Complet - ETA 14h30</span
>
</div>
</div>
<div class="delivery-items">
<span class="item">🍅 Organic Tomatoes (2kg)</span>
<span class="item">🥕 Fresh Carrots (1kg)</span>
</div>
</div>
<div class="delivery-item standard">
<div class="delivery-header">
<div class="delivery-info">
<h3>Commande #DEF456</h3>
<span class="customer-name">Maria Garcia</span>
<span class="delivery-address"
>📍 456 Avenue Chêne, Douala</span
>
</div>
<div class="delivery-status">
<span class="status-badge preparing"
>En Préparation</span
>
<span class="priority-badge standard"
>Standard</span
>
</div>
</div>
<div class="delivery-details">
<div class="driver-info">
<span class="driver-name">👤 Sarah Davis</span>
<span class="driver-contact"
>📱 +237 987 654 321</span
>
<span class="vehicle">🚚 Van #EcoM-002</span>
</div>
<div class="delivery-progress">
<div class="progress-bar">
<div
class="progress-fill"
style="width: 25%"
></div>
</div>
<span class="progress-text"
>25% Complet - ETA 16h00</span
>
</div>
</div>
<div class="delivery-items">
<span class="item">🍓 Panier de Fraises</span>
<span class="item">🥬 Green Leafy Bundle</span>
</div>
</div>
</div>
</div>
</section>
<!-- Delivery Features -->
<section class="delivery-features">
<div class="container">
<div class="section-header centered">
<h2>Pourquoi Notre Service de Livraison Se Démarque</h2>
<p>
Garantir que les produits frais vous parviennent dans
des conditions parfaites
</p>
</div>
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">🌡️</div>
<h3>Contrôle de Température</h3>
<p>
Tous les véhicules équipés d'un contrôle de
température pour maintenir la fraîcheur optimale
pendant le transport.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">📍</div>
<h3>Suivi GPS en Temps Réel</h3>
<p>
Suivez l'emplacement exact de votre commande et
l'heure de livraison estimée avec des mises à jour
GPS en direct.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Livraison le Jour Même</h3>
<p>
Les commandes passées avant 12h peuvent être livrées
le même jour dans les limites de la ville.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">📱</div>
<h3>SMS & Notifications Push</h3>
<p>
Recevez des mises à jour instantanées sur l'état de
votre livraison via SMS et notifications
d'application.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">🛡️</div>
<h3>Garantie de Livraison</h3>
<p>
Si nous sommes en retard ou que vos produits ne sont
pas frais, nous vous remboursons ou remplaçons votre
commande.
</p>
</div>
<div class="feature-card">
<div class="feature-icon">♻️</div>
<h3>Emballage Écologique</h3>
<p>
Tous les matériaux d'emballage sont biodégradables
et écologiquement durables.
</p>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="modern-footer">
<div class="container">
<div class="footer-content">
<div class="footer-section">
<div class="footer-brand">
<div class="brand">
<div class="brand-icon">🌱</div>
<span class="brand-name">EcoMarket</span>
</div>
<p class="footer-desc">
Revolutionizing agriculture by connecting
farmers directly with buyers for a sustainable
future.
</p>
<div class="social-links">
<a href="#" class="social-link">📘</a>
<a href="#" class="social-link">🐦</a>
<a href="#" class="social-link">📷</a>
<a href="#" class="social-link">💼</a>
</div>
</div>
</div>
<div class="footer-section">
<h4>Plateforme</h4>
<ul class="footer-links">
<li><a href="marketplace.html">Marché</a></li>
<li>
<a href="farmer-dashboard.html"
>Pour Agriculteurs</a
>
</li>
<li>
<a href="buyer-dashboard.html"
>Pour Acheteurs</a
>
</li>
<li>
<a href="quality-control.html"
>Contrôle Qualité</a
>
</li>
</ul>
</div>
<div class="footer-section">
<h4>Entreprise</h4>
<ul class="footer-links">
<li><a href="about.html">À Propos</a></li>
</ul>
</div>
<div class="footer-section">
<h4>Support</h4>
<ul class="footer-links">
<li><a href="delivery.html">Infos Livraison</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<div class="footer-bottom-content">
<p>© 2024 EcoMarket. Tous droits réservés.</p>
</div>
</div>
</div>
</footer>
<script src="js/main.js"></script>
<script>
// Delivery tracking functionality
function trackOrder() {
const orderId = document
.getElementById("orderIdInput")
.value.trim();
const trackingResult =
document.getElementById("trackingResult");
if (!orderId) {
showToast("Please enter an Order ID", "error");
return;
}
// Simulate order tracking
trackingResult.innerHTML = `
<div class="tracking-timeline">
<div class="tracking-step completed">
<div class="step-icon">✅</div>
<div class="step-info">
<h4>Order Confirmed</h4>
<p>Your order has been confirmed and is being prepared</p>
<span class="timestamp">Today 9:15 AM</span>
</div>
</div>
<div class="tracking-step completed">
<div class="step-icon">🔍</div>
<div class="step-info">
<h4>Quality Check Passed</h4>
<p>Products have passed quality inspection</p>
<span class="timestamp">Today 10:30 AM</span>
</div>
</div>
<div class="tracking-step active">
<div class="step-icon">🚚</div>
<div class="step-info">
<h4>Out for Delivery</h4>
<p>Your order is on the way! Driver: Mike Johnson</p>
<span class="timestamp">Today 11:45 AM</span>
</div>
</div>
<div class="tracking-step pending">
<div class="step-icon">📦</div>
<div class="step-info">
<h4>Delivered</h4>
<p>Estimated delivery time: 2:30 PM</p>
<span class="timestamp">Expected</span>
</div>
</div>
</div>
<div class="delivery-details">
<h3>Delivery Information</h3>
<p><strong>Driver:</strong> Mike Johnson</p>
<p><strong>Phone:</strong> +237 123 456 789</p>
<p><strong>Vehicle:</strong> Truck #EcoM-001</p>
<p><strong>Delivery Address:</strong> 123 Main Street, Yaoundé</p>
<button class="btn btn-outline" onclick="contactDriver()">📞 Contact Driver</button>
</div>
`;
trackingResult.classList.remove("hidden");
showToast(
"Order found! Tracking information loaded.",
"success",
);
}
function contactDriver() {
if (confirm("Would you like to call the driver?")) {
// In a real app, this would initiate a call
showToast("Connecting you to driver...", "info");
}
}
// Add delivery page specific styles
document.addEventListener("DOMContentLoaded", function () {
const styles = document.createElement("style");
styles.innerHTML = `
.delivery-hero {
padding: var(--spacing-24) 0 var(--spacing-12);
margin-top: 80px;
background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
text-align: center;
}
.delivery-hero h1 {
font-size: var(--font-size-4xl);
margin-bottom: var(--spacing-4);
}
.order-lookup-section {
padding: var(--spacing-16) 0;
background: white;
}
.lookup-container {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
.lookup-form {
display: flex;
gap: var(--spacing-4);
margin: var(--spacing-6) 0;
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
.lookup-form input {
flex: 1;
padding: var(--spacing-3) var(--spacing-4);
border: 2px solid var(--border-color);
border-radius: var(--radius-lg);
font-size: var(--font-size-base);
}
.tracking-result {
margin-top: var(--spacing-8);
background: white;
border-radius: var(--radius-2xl);
padding: var(--spacing-8);
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-light);
text-align: left;
}
.tracking-timeline {
margin-bottom: var(--spacing-8);
}
.tracking-step {
display: flex;
gap: var(--spacing-4);
padding: var(--spacing-6);
border-radius: var(--radius-lg);
margin-bottom: var(--spacing-4);
transition: all 0.3s ease;
}
.tracking-step.completed {
background: #f0fdf4;
border-left: 4px solid var(--primary-green);
}
.tracking-step.active {
background: #fff7ed;
border-left: 4px solid var(--accent-orange);
box-shadow: var(--shadow-md);
}
.tracking-step.pending {
background: #f8fafc;
border-left: 4px solid #e5e7eb;
}
.step-icon {
font-size: var(--font-size-xl);
width: 40px;
text-align: center;
}
.step-info h4 {
margin-bottom: var(--spacing-2);
color: var(--text-primary);
}
.step-info p {
color: var(--text-secondary);
margin-bottom: var(--spacing-2);
}
.timestamp {
font-size: var(--font-size-sm);
color: var(--text-light);
font-weight: 500;
}
.delivery-stats-section {
padding: var(--spacing-16) 0;
background: var(--background-secondary);
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--spacing-6);
}
.stat-card {
background: white;
padding: var(--spacing-6);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-md);
display: flex;
align-items: center;
gap: var(--spacing-4);
}
.stat-icon {
font-size: var(--font-size-3xl);
}
.stat-info h3 {
font-size: var(--font-size-2xl);
color: var(--primary-green);
margin-bottom: var(--spacing-1);
}
.active-deliveries-section {
padding: var(--spacing-20) 0;
}
.delivery-map-container {
margin: var(--spacing-12) 0;
}
.delivery-map {
height: 400px;
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border-radius: var(--radius-2xl);
position: relative;
overflow: hidden;
border: 1px solid var(--border-light);
}
.map-placeholder {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
.map-locations {
position: relative;
width: 100%;
height: 200px;
}
.location {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
font-size: var(--font-size-sm);
}
.location-icon {
font-size: var(--font-size-2xl);
margin-bottom: var(--spacing-1);
}
.location.active .location-icon {
animation: pulse 2s infinite;
}
.route-line {
position: absolute;
height: 2px;
background: var(--primary-green);
border-radius: 1px;
}
.active-deliveries-list {
display: flex;
flex-direction: column;
gap: var(--spacing-6);
}
.delivery-item {
background: white;
border-radius: var(--radius-2xl);
padding: var(--spacing-8);
box-shadow: var(--shadow-lg);
border: 1px solid var(--border-light);
}
.delivery-item.urgent {
border-left: 4px solid #dc2626;
}
.delivery-item.standard {
border-left: 4px solid var(--primary-green);
}
.delivery-header {
display: flex;
justify-content: space-between;
align-items: start;
margin-bottom: var(--spacing-6);
flex-wrap: wrap;
gap: var(--spacing-4);
}
.delivery-info h3 {
margin-bottom: var(--spacing-2);
}
.customer-name {
color: var(--text-secondary);
font-weight: 500;
display: block;
margin-bottom: var(--spacing-1);
}
.delivery-address {
color: var(--text-light);
font-size: var(--font-size-sm);
}
.delivery-status {
display: flex;
gap: var(--spacing-3);
flex-wrap: wrap;
}
.status-badge, .priority-badge {
padding: var(--spacing-1) var(--spacing-3);
border-radius: var(--radius-full);
font-size: var(--font-size-xs);
font-weight: 600;
text-transform: uppercase;
}
.status-badge.out-for-delivery {
background: #dbeafe;
color: #1d4ed8;
}
.status-badge.preparing {
background: #fef3c7;
color: #d97706;
}
.priority-badge.urgent {
background: #fee2e2;
color: #dc2626;
}
.priority-badge.standard {
background: #f0fdf4;
color: var(--primary-green-dark);
}
.delivery-details {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--spacing-4);
flex-wrap: wrap;
gap: var(--spacing-4);
}
.driver-info {
display: flex;
gap: var(--spacing-4);
flex-wrap: wrap;
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.delivery-progress {
display: flex;
flex-direction: column;
gap: var(--spacing-2);
min-width: 200px;
}
.progress-bar {
height: 6px;
background: var(--border-light);
border-radius: var(--radius-full);
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
transition: width 0.3s ease;
}
.progress-text {
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.delivery-items {
display: flex;
gap: var(--spacing-4);
flex-wrap: wrap;
padding-top: var(--spacing-4);
border-top: 1px solid var(--border-light);
}
.item {
background: var(--background-secondary);
padding: var(--spacing-2) var(--spacing-3);
border-radius: var(--radius-lg);
font-size: var(--font-size-sm);
color: var(--text-secondary);
}
.delivery-features {
padding: var(--spacing-20) 0;
background: var(--background-secondary);
}
@media (max-width: 768px) {
.lookup-form {
flex-direction: column;
}
.delivery-header {
flex-direction: column;
align-items: start;
}
.delivery-details {
flex-direction: column;
align-items: start;
}
.driver-info {
flex-direction: column;
gap: var(--spacing-2);
}
}
`;
document.head.appendChild(styles);
});
</script>
</body>
</html>