Add 1 files
Browse files- index.html +124 -23
index.html
CHANGED
|
@@ -159,6 +159,11 @@
|
|
| 159 |
background-color: #FF6B35;
|
| 160 |
border-radius: 6px;
|
| 161 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
</style>
|
| 163 |
</head>
|
| 164 |
<body class="grid-pattern">
|
|
@@ -176,7 +181,7 @@
|
|
| 176 |
<div id="datetime" class="sci-fi-font text-lg"></div>
|
| 177 |
</div>
|
| 178 |
<div class="flex items-center space-x-2">
|
| 179 |
-
<svg xmlns="http://www.w3.org/2000/
|
| 180 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
| 181 |
</svg>
|
| 182 |
<div class="sci-fi-font text-lg">SYSTEM: <span class="text-green-400">NOMINAL</span></div>
|
|
@@ -383,10 +388,12 @@
|
|
| 383 |
</h2>
|
| 384 |
|
| 385 |
<!-- Sales Prediction -->
|
| 386 |
-
<div class="mb-
|
| 387 |
<h3 class="text-gray-400 uppercase text-sm mb-2">SALES PREDICTION</h3>
|
| 388 |
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
|
| 389 |
-
<
|
|
|
|
|
|
|
| 390 |
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
|
| 391 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 392 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
|
|
@@ -396,9 +403,41 @@
|
|
| 396 |
</div>
|
| 397 |
</div>
|
| 398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 399 |
<!-- Anomaly Detection -->
|
| 400 |
-
<div
|
| 401 |
-
<h3 class="text-gray-400 uppercase text-sm mb-2">
|
| 402 |
<div class="space-y-2">
|
| 403 |
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex items-center neon-border">
|
| 404 |
<div class="hexagon bg-orange-500/20 w-8 h-8 flex items-center justify-center mr-3">
|
|
@@ -424,24 +463,6 @@
|
|
| 424 |
</div>
|
| 425 |
</div>
|
| 426 |
</div>
|
| 427 |
-
|
| 428 |
-
<!-- Weather Impact -->
|
| 429 |
-
<div>
|
| 430 |
-
<h3 class="text-gray-400 uppercase text-sm mb-2">WEATHER IMPACT</h3>
|
| 431 |
-
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
|
| 432 |
-
<div class="flex items-center mb-2">
|
| 433 |
-
<svg xmlns="http://www.w3.org/2000/svg" class="h-8 w-8 text-yellow-400 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 434 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z" />
|
| 435 |
-
</svg>
|
| 436 |
-
<div>
|
| 437 |
-
<div class="sci-fi-font text-orange-500">SUNNY, 24°C</div>
|
| 438 |
-
<div class="text-xs text-gray-400">FORECAST: CLEAR SKIES</div>
|
| 439 |
-
</div>
|
| 440 |
-
</div>
|
| 441 |
-
<div class="sci-fi-font text-sm text-orange-500 mb-2">AI ANALYSIS:</div>
|
| 442 |
-
<p class="text-xs text-gray-300">Optimal conditions for fuel sales. Expected increase in motorcycle traffic. Recommend staff prepare for higher volume between 14:00-16:00.</p>
|
| 443 |
-
</div>
|
| 444 |
-
</div>
|
| 445 |
</div>
|
| 446 |
</div>
|
| 447 |
|
|
@@ -548,6 +569,86 @@
|
|
| 548 |
}
|
| 549 |
});
|
| 550 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 551 |
// Add hover effects to pump status
|
| 552 |
const pumps = document.querySelectorAll('.hexagon');
|
| 553 |
pumps.forEach(pump => {
|
|
|
|
| 159 |
background-color: #FF6B35;
|
| 160 |
border-radius: 6px;
|
| 161 |
}
|
| 162 |
+
|
| 163 |
+
.chart-container {
|
| 164 |
+
height: 150px;
|
| 165 |
+
position: relative;
|
| 166 |
+
}
|
| 167 |
</style>
|
| 168 |
</head>
|
| 169 |
<body class="grid-pattern">
|
|
|
|
| 181 |
<div id="datetime" class="sci-fi-font text-lg"></div>
|
| 182 |
</div>
|
| 183 |
<div class="flex items-center space-x-2">
|
| 184 |
+
<svg xmlns="http://www.w3.org/2000/ssvg" class="h-6 w-6 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 185 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
| 186 |
</svg>
|
| 187 |
<div class="sci-fi-font text-lg">SYSTEM: <span class="text-green-400">NOMINAL</span></div>
|
|
|
|
| 388 |
</h2>
|
| 389 |
|
| 390 |
<!-- Sales Prediction -->
|
| 391 |
+
<div class="mb-4">
|
| 392 |
<h3 class="text-gray-400 uppercase text-sm mb-2">SALES PREDICTION</h3>
|
| 393 |
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
|
| 394 |
+
<div class="chart-container">
|
| 395 |
+
<canvas id="salesChart"></canvas>
|
| 396 |
+
</div>
|
| 397 |
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
|
| 398 |
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 399 |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
|
|
|
|
| 403 |
</div>
|
| 404 |
</div>
|
| 405 |
|
| 406 |
+
<!-- Traffic Prediction -->
|
| 407 |
+
<div class="mb-4">
|
| 408 |
+
<h3 class="text-gray-400 uppercase text-sm mb-2">TRAFFIC PREDICTION</h3>
|
| 409 |
+
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
|
| 410 |
+
<div class="chart-container">
|
| 411 |
+
<canvas id="trafficChart"></canvas>
|
| 412 |
+
</div>
|
| 413 |
+
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
|
| 414 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 415 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
|
| 416 |
+
</svg>
|
| 417 |
+
PEAK: 14:00-16:00 (28 VEHICLES)
|
| 418 |
+
</div>
|
| 419 |
+
</div>
|
| 420 |
+
</div>
|
| 421 |
+
|
| 422 |
+
<!-- Fuel Consumption -->
|
| 423 |
+
<div class="mb-4">
|
| 424 |
+
<h3 class="text-gray-400 uppercase text-sm mb-2">FUEL CONSUMPTION</h3>
|
| 425 |
+
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
|
| 426 |
+
<div class="chart-container">
|
| 427 |
+
<canvas id="fuelChart"></canvas>
|
| 428 |
+
</div>
|
| 429 |
+
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
|
| 430 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 431 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
|
| 432 |
+
</svg>
|
| 433 |
+
DIESEL LEADING (58% OF SALES)
|
| 434 |
+
</div>
|
| 435 |
+
</div>
|
| 436 |
+
</div>
|
| 437 |
+
|
| 438 |
<!-- Anomaly Detection -->
|
| 439 |
+
<div>
|
| 440 |
+
<h3 class="text-gray-400 uppercase text-sm mb-2">SYSTEM ALERTS</h3>
|
| 441 |
<div class="space-y-2">
|
| 442 |
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex items-center neon-border">
|
| 443 |
<div class="hexagon bg-orange-500/20 w-8 h-8 flex items-center justify-center mr-3">
|
|
|
|
| 463 |
</div>
|
| 464 |
</div>
|
| 465 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 466 |
</div>
|
| 467 |
</div>
|
| 468 |
|
|
|
|
| 569 |
}
|
| 570 |
});
|
| 571 |
|
| 572 |
+
// Create traffic chart
|
| 573 |
+
const trafficCtx = document.getElementById('trafficChart').getContext('2d');
|
| 574 |
+
const trafficChart = new Chart(trafficCtx, {
|
| 575 |
+
type: 'bar',
|
| 576 |
+
data: {
|
| 577 |
+
labels: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'],
|
| 578 |
+
datasets: [{
|
| 579 |
+
label: 'Vehicles',
|
| 580 |
+
data: [12, 18, 22, 28, 25, 20],
|
| 581 |
+
backgroundColor: '#FF6B35',
|
| 582 |
+
borderColor: '#FF6B35',
|
| 583 |
+
borderWidth: 1
|
| 584 |
+
}]
|
| 585 |
+
},
|
| 586 |
+
options: {
|
| 587 |
+
responsive: true,
|
| 588 |
+
maintainAspectRatio: false,
|
| 589 |
+
plugins: {
|
| 590 |
+
legend: {
|
| 591 |
+
display: false
|
| 592 |
+
}
|
| 593 |
+
},
|
| 594 |
+
scales: {
|
| 595 |
+
x: {
|
| 596 |
+
grid: {
|
| 597 |
+
color: 'rgba(255,255,255,0.05)'
|
| 598 |
+
},
|
| 599 |
+
ticks: {
|
| 600 |
+
color: '#707070',
|
| 601 |
+
font: {
|
| 602 |
+
family: 'Rajdhani',
|
| 603 |
+
weight: 'bold'
|
| 604 |
+
}
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
y: {
|
| 608 |
+
grid: {
|
| 609 |
+
color: 'rgba(255,255,white,0.05)'
|
| 610 |
+
},
|
| 611 |
+
ticks: {
|
| 612 |
+
color: '#707070',
|
| 613 |
+
font: {
|
| 614 |
+
family: 'Rajdhani',
|
| 615 |
+
weight: 'bold'
|
| 616 |
+
}
|
| 617 |
+
}
|
| 618 |
+
}
|
| 619 |
+
}
|
| 620 |
+
}
|
| 621 |
+
});
|
| 622 |
+
|
| 623 |
+
// Create fuel consumption chart
|
| 624 |
+
const fuelCtx = document.getElementById('fuelChart').getContext('2d');
|
| 625 |
+
const fuelChart = new Chart(fuelCtx, {
|
| 626 |
+
type: 'doughnut',
|
| 627 |
+
data: {
|
| 628 |
+
labels: ['95 OCT', 'DIESEL', '98 OCT', 'E85'],
|
| 629 |
+
datasets: [{
|
| 630 |
+
data: [22, 58, 12, 8],
|
| 631 |
+
backgroundColor: [
|
| 632 |
+
'#FF6B35',
|
| 633 |
+
'#FF8C42',
|
| 634 |
+
'#FFA45C',
|
| 635 |
+
'#FFB677'
|
| 636 |
+
],
|
| 637 |
+
borderWidth: 0
|
| 638 |
+
}]
|
| 639 |
+
},
|
| 640 |
+
options: {
|
| 641 |
+
responsive: true,
|
| 642 |
+
maintainAspectRatio: false,
|
| 643 |
+
plugins: {
|
| 644 |
+
legend: {
|
| 645 |
+
display: false
|
| 646 |
+
}
|
| 647 |
+
},
|
| 648 |
+
cutout: '70%'
|
| 649 |
+
}
|
| 650 |
+
});
|
| 651 |
+
|
| 652 |
// Add hover effects to pump status
|
| 653 |
const pumps = document.querySelectorAll('.hexagon');
|
| 654 |
pumps.forEach(pump => {
|