-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathind.html
More file actions
257 lines (230 loc) · 5.63 KB
/
ind.html
File metadata and controls
257 lines (230 loc) · 5.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Truck Supply Chain Dashboard</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
background-color: #121212;
color: #fff;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 20px auto;
}
.navbar {
background-color: #333;
padding: 15px;
text-align: center;
color: #fff;
}
.statistics-container {
display: flex;
justify-content: space-around;
margin-bottom: 30px;
}
.card {
background-color: #333;
color: #fff;
border-radius: 10px;
padding: 20px;
margin: 10px;
width: 30%;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}
.card h5 {
margin-bottom: 10px;
}
.dashboard-container {
margin-top: 30px;
}
.chart-weather-container {
display: flex;
justify-content: space-between;
}
.chart-container {
width: 70%;
}
.weather-container {
width: 28%;
background-color: #2a2a2a;
padding: 20px;
border-radius: 10px;
margin-left: 20px;
}
.weather-container h5 {
margin-bottom: 15px;
}
.warehouse-container, .routes-container {
margin-top: 30px;
}
.warehouse-card, .routes-container table {
background-color: #2a2a2a;
padding: 20px;
border-radius: 10px;
margin-bottom: 20px;
}
.warehouse-card h5, .routes-container th {
color: #fff;
}
.table {
color: #fff;
background-color: #333;
width: 100%;
border-collapse: collapse;
}
.table th, .table td {
text-align: center;
vertical-align: middle;
padding: 10px;
border: 1px solid #444;
}
.table th {
background-color: #444;
}
.table td {
background-color: #555;
}
</style>
</head>
<body>
<div class="container">
<div class="navbar">
<h1>Truck Supply Chain Dashboard</h1>
</div>
<div class="statistics-container">
<div class="card">
<h5>Available Trucks</h5>
<h3>20</h3>
<p>Trucks ready for assignments</p>
</div>
<div class="card">
<h5>Trucks in Transit</h5>
<h3>10</h3>
<p>Trucks currently in transit</p>
</div>
<div class="card">
<h5>Trucks Under Maintenance</h5>
<h3>5</h3>
<p>Trucks undergoing maintenance</p>
</div>
</div>
<div class="dashboard-container">
<div class="chart-weather-container">
<!-- Chart Section -->
<div class="chart-container">
<h5>Truck Fleet Status</h5>
<canvas id="truckChart"></canvas>
</div>
<!-- Weather Section -->
<div class="weather-container">
<h5>Weather Information</h5>
<p><strong>Location:</strong> Delhi</p>
<p><strong>Temperature:</strong> 30°C</p>
<p><strong>Humidity:</strong> 60%</p>
<p><strong>Conditions:</strong> Clear Sky</p>
</div>
</div>
</div>
<div class="warehouse-container">
<h5>Warehouse Locations and Truck Distribution</h5>
<div class="warehouse-card">
<h5>Delhi</h5>
<h4>Trucks: 15</h4>
</div>
<div class="warehouse-card">
<h5>Gurugram</h5>
<h4>Trucks: 12</h4>
</div>
<div class="warehouse-card">
<h5>Faridabad</h5>
<h4>Trucks: 8</h4>
</div>
<div class="warehouse-card">
<h5>Noida</h5>
<h4>Trucks: 10</h4>
</div>
<div class="warehouse-card">
<h5>Meerut</h5>
<h4>Trucks: 5</h4>
</div>
<div class="warehouse-card">
<h5>Ghaziabad</h5>
<h4>Trucks: 7</h4>
</div>
</div>
<div class="routes-container">
<h5>Routes Information</h5>
<table class="table">
<thead>
<tr>
<th>Route</th>
<th>Trucks Available</th>
<th>Trucks on Route</th>
<th>Distance (km)</th>
<th>Estimated Travel Time (hrs)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Delhi to Chandigarh</td>
<td>5</td>
<td>3</td>
<td>250 km</td>
<td>5 hrs</td>
</tr>
<tr>
<td>Delhi to Jaipur</td>
<td>7</td>
<td>4</td>
<td>300 km</td>
<td>6 hrs</td>
</tr>
<tr>
<td>Delhi to Lucknow</td>
<td>4</td>
<td>2</td>
<td>500 km</td>
<td>10 hrs</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- JavaScript to render the chart -->
<script>
const ctx = document.getElementById('truckChart').getContext('2d');
const truckData = {
available: 20,
inTransit: 10,
underMaintenance: 5
};
const truckChart = new Chart(ctx, {
type: 'bar',
data: {
labels: ['Available', 'In Transit', 'Under Maintenance'],
datasets: [{
label: 'Truck Fleet Status',
data: [truckData.available, truckData.inTransit, truckData.underMaintenance],
backgroundColor: ['#28a745', '#ffc107', '#dc3545'],
borderColor: ['#218838', '#e0a800', '#c82333'],
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: {
beginAtZero: true
}
}
}
});
</script>
</body>
</html>