sample / index.html
7758aqua's picture
Add 1 files
2f68edc verified
Raw
History Blame Contribute Delete
34.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Smart Petrol Station Digital Twin</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
body {
font-family: 'Rajdhani', sans-serif;
background-color: #0A0A0A;
color: #E0E0E0;
display: flex;
flex-direction: column;
}
.sci-fi-font {
font-family: 'Orbitron', sans-serif;
}
.glass-panel {
background: rgba(26, 26, 26, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 107, 53, 0.2);
box-shadow: 0 0 15px rgba(255, 107, 53, 0.1);
}
.neon-orange {
color: #FF6B35;
text-shadow: 0 0 5px rgba(255, 107, 53, 0.7);
}
.neon-glow {
box-shadow: 0 0 10px rgba(255, 107, 53, 0.7);
}
.neon-border {
border: 1px solid #FF6B35;
box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.grid-pattern {
background-image:
linear-gradient(rgba(255, 107, 53, 0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 107, 53, 0.1) 1px, transparent 1px);
background-size: 20px 20px;
}
.hexagon {
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.corner-bracket {
position: relative;
}
.corner-bracket::before, .corner-bracket::after {
content: '';
position: absolute;
width: 15px;
height: 15px;
border-color: #FF6B35;
border-style: solid;
border-width: 0;
}
.corner-bracket::before {
top: 0;
left: 0;
border-top-width: 2px;
border-left-width: 2px;
}
.corner-bracket::after {
bottom: 0;
right: 0;
border-bottom-width: 2px;
border-right-width: 2px;
}
.progress-ring {
transform: rotate(-90deg);
}
.progress-ring-circle {
transition: stroke-dashoffset 0.5s;
stroke-linecap: round;
}
.ai-orb {
background: radial-gradient(circle at 30% 30%, #FF8C42, #FF6B35);
box-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}
.data-stream {
position: absolute;
width: 2px;
height: 100%;
background: linear-gradient(to bottom, transparent, #FF6B35, transparent);
animation: dataStream 3s linear infinite;
opacity: 0.6;
}
@keyframes dataStream {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
.hover-3d {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-3d:hover {
transform: perspective(500px) rotateX(5deg) rotateY(5deg) translateZ(10px);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}
.main-container {
display: flex;
flex: 1;
overflow: hidden;
}
.panel {
height: 100%;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #FF6B35 #0A0A0A;
}
.panel::-webkit-scrollbar {
width: 6px;
}
.panel::-webkit-scrollbar-track {
background: #0A0A0A;
}
.panel::-webkit-scrollbar-thumb {
background-color: #FF6B35;
border-radius: 6px;
}
.chart-container {
height: 150px;
position: relative;
}
</style>
</head>
<body class="grid-pattern">
<!-- Header -->
<header class="bg-black/80 border-b border-orange-500/30 py-3 px-6 flex justify-between items-center">
<div class="flex items-center space-x-4">
<div class="ai-orb w-8 h-8 rounded-full pulse"></div>
<h1 class="sci-fi-font text-2xl neon-orange">NEXUS PETROL STATION #0420</h1>
</div>
<div class="flex items-center space-x-6">
<div class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<div id="datetime" class="sci-fi-font text-lg"></div>
</div>
<div class="flex items-center space-x-2">
<svg xmlns="http://www.w3.org/2000/ssvg" class="h-6 w-6 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<div class="sci-fi-font text-lg">SYSTEM: <span class="text-green-400">NOMINAL</span></div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="main-container">
<!-- Left Panel - Fuel & Pump Section -->
<div class="w-1/4 glass-panel p-4 border-r border-orange-500/20 panel">
<h2 class="sci-fi-font text-xl neon-orange mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="#FF6B35">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
FUEL MANAGEMENT
</h2>
<!-- Tank Levels -->
<div class="mb-6">
<h3 class="text-gray-400 uppercase text-sm mb-2">TANK LEVELS</h3>
<div class="grid grid-cols-2 gap-4">
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex flex-col items-center">
<div class="relative w-20 h-20 mb-2">
<svg class="progress-ring w-20 h-20" viewBox="0 0 100 100">
<circle class="text-gray-800" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
<circle class="progress-ring-circle text-orange-500" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="55.2" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center sci-fi-font text-lg">78%</div>
</div>
<span class="sci-fi-font text-orange-500">95 OCT</span>
</div>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex flex-col items-center">
<div class="relative w-20 h-20 mb-2">
<svg class="progress-ring w-20 h-20" viewBox="0 0 100 100">
<circle class="text-gray-800" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
<circle class="progress-ring-circle text-orange-500" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="100.48" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center sci-fi-font text-lg">60%</div>
</div>
<span class="sci-fi-font text-orange-500">DIESEL</span>
</div>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex flex-col items-center">
<div class="relative w-20 h-20 mb-2">
<svg class="progress-ring w-20 h-20" viewBox="0 0 100 100">
<circle class="text-gray-800" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
<circle class="progress-ring-circle text-orange-500" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="175.84" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center sci-fi-font text-lg">30%</div>
</div>
<span class="sci-fi-font text-orange-500">98 OCT</span>
</div>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex flex-col items-center">
<div class="relative w-20 h-20 mb-2">
<svg class="progress-ring w-20 h-20" viewBox="0 0 100 100">
<circle class="text-gray-800" stroke-width="8" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
<circle class="progress-ring-circle text-orange-500" stroke-width="8" stroke-dasharray="251.2" stroke-dashoffset="200.96" stroke="currentColor" fill="transparent" r="40" cx="50" cy="50"/>
</svg>
<div class="absolute inset-0 flex items-center justify-center sci-fi-font text-lg">20%</div>
</div>
<span class="sci-fi-font text-orange-500">E85</span>
</div>
</div>
</div>
<!-- Pump Status -->
<div>
<h3 class="text-gray-400 uppercase text-sm mb-2">PUMP STATUS</h3>
<div class="grid grid-cols-2 gap-3">
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center neon-border">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2">PUMP 1</span>
<span class="text-green-400 text-xs">ACTIVE</span>
</div>
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center border border-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2 text-gray-500">PUMP 2</span>
<span class="text-gray-500 text-xs">IDLE</span>
</div>
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center neon-border">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2">PUMP 3</span>
<span class="text-green-400 text-xs">ACTIVE</span>
</div>
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center border border-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2 text-gray-500">PUMP 4</span>
<span class="text-gray-500 text-xs">IDLE</span>
</div>
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center border border-gray-700">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-gray-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2 text-gray-500">PUMP 5</span>
<span class="text-gray-500 text-xs">IDLE</span>
</div>
<div class="hover-3d hexagon bg-gray-900/50 p-4 flex flex-col items-center justify-center neon-border">
<svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 neon-orange" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13 10V3L4 14h7v7l9-11h-7z" />
</svg>
<span class="sci-fi-font mt-2">PUMP 6</span>
<span class="text-green-400 text-xs">ACTIVE</span>
</div>
</div>
</div>
</div>
<!-- Center Panel - CCTV & Safety Hub -->
<div class="w-2/4 glass-panel p-4 border-r border-orange-500/20 panel">
<h2 class="sci-fi-font text-xl neon-orange mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="#FF6B35">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
SURVEILLANCE HUB
</h2>
<!-- Live Camera Feeds -->
<div class="grid grid-cols-2 gap-4 mb-4">
<div class="corner-bracket hover-3d bg-black rounded-lg overflow-hidden relative aspect-video">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="ai-orb w-12 h-12 rounded-full mx-auto mb-2 pulse"></div>
<div class="sci-fi-font text-orange-500">CAMERA 1: ENTRANCE</div>
</div>
</div>
<div class="absolute top-2 left-2 sci-fi-font text-xs bg-black/70 px-2 py-1 rounded text-orange-400">
AI TRACKING: 3 VEHICLES
</div>
<div class="data-stream" style="left: 30%;"></div>
<div class="data-stream" style="left: 70%;"></div>
</div>
<div class="corner-bracket hover-3d bg-black rounded-lg overflow-hidden relative aspect-video">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="ai-orb w-12 h-12 rounded-full mx-auto mb-2 pulse"></div>
<div class="sci-fi-font text-orange-500">CAMERA 2: EXIT</div>
</div>
</div>
<div class="absolute top-2 left-2 sci-fi-font text-xs bg-black/70 px-2 py-1 rounded text-orange-400">
AI TRACKING: 1 VEHICLE
</div>
<div class="data-stream" style="left: 20%;"></div>
<div class="data-stream" style="left: 80%;"></div>
</div>
<div class="corner-bracket hover-3d bg-black rounded-lg overflow-hidden relative aspect-video">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="ai-orb w-12 h-12 rounded-full mx-auto mb-2 pulse"></div>
<div class="sci-fi-font text-orange-500">CAMERA 3: FORECOURT</div>
</div>
</div>
<div class="absolute top-2 left-2 sci-fi-font text-xs bg-black/70 px-2 py-1 rounded text-orange-400">
AI TRACKING: 2 VEHICLES, 1 PERSON
</div>
<div class="data-stream" style="left: 40%;"></div>
<div class="data-stream" style="left: 60%;"></div>
</div>
<div class="corner-bracket hover-3d bg-black rounded-lg overflow-hidden relative aspect-video">
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<div class="ai-orb w-12 h-12 rounded-full mx-auto mb-2 pulse"></div>
<div class="sci-fi-font text-orange-500">CAMERA 4: SHOP</div>
</div>
</div>
<div class="absolute top-2 left-2 sci-fi-font text-xs bg-black/70 px-2 py-1 rounded text-orange-400">
AI TRACKING: 2 PERSONS
</div>
<div class="data-stream" style="left: 25%;"></div>
<div class="data-stream" style="left: 75%;"></div>
</div>
</div>
<!-- Vehicle Counter -->
<div class="bg-gray-900/50 rounded-lg p-3 flex items-center justify-between neon-border">
<div class="flex items-center">
<div class="ai-orb w-10 h-10 rounded-full mr-3 pulse"></div>
<div>
<div class="sci-fi-font text-orange-500">VEHICLE COUNTER</div>
<div class="text-xs text-gray-400">LAST 60 MINUTES</div>
</div>
</div>
<div class="text-right">
<div class="sci-fi-font text-3xl text-orange-500">18</div>
<div class="text-xs text-green-400">+12% FROM YESTERDAY</div>
</div>
</div>
</div>
<!-- Right Panel - Predictive Analytics -->
<div class="w-1/4 glass-panel p-4 panel">
<h2 class="sci-fi-font text-xl neon-orange mb-4 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="#FF6B35">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
</svg>
AI ANALYTICS
</h2>
<!-- Sales Prediction -->
<div class="mb-4">
<h3 class="text-gray-400 uppercase text-sm mb-2">SALES PREDICTION</h3>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
<div class="chart-container">
<canvas id="salesChart"></canvas>
</div>
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
</svg>
AI PREDICTION: +15% IN NEXT HOUR
</div>
</div>
</div>
<!-- Traffic Prediction -->
<div class="mb-4">
<h3 class="text-gray-400 uppercase text-sm mb-2">TRAFFIC PREDICTION</h3>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
<div class="chart-container">
<canvas id="trafficChart"></canvas>
</div>
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
</svg>
PEAK: 14:00-16:00 (28 VEHICLES)
</div>
</div>
</div>
<!-- Fuel Consumption -->
<div class="mb-4">
<h3 class="text-gray-400 uppercase text-sm mb-2">FUEL CONSUMPTION</h3>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3">
<div class="chart-container">
<canvas id="fuelChart"></canvas>
</div>
<div class="mt-2 sci-fi-font text-sm text-orange-500 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" />
</svg>
DIESEL LEADING (58% OF SALES)
</div>
</div>
</div>
<!-- Anomaly Detection -->
<div>
<h3 class="text-gray-400 uppercase text-sm mb-2">SYSTEM ALERTS</h3>
<div class="space-y-2">
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex items-center neon-border">
<div class="hexagon bg-orange-500/20 w-8 h-8 flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
</div>
<div>
<div class="sci-fi-font text-sm">UNUSUAL FUEL FLOW</div>
<div class="text-xs text-gray-400">PUMP 3 - CHECK FOR LEAKS</div>
</div>
</div>
<div class="hover-3d bg-gray-900/50 rounded-lg p-3 flex items-center">
<div class="hexagon bg-gray-700 w-8 h-8 flex items-center justify-center mr-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h.01M12 12h.01M19 12h.01M6 12a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0zm7 0a1 1 0 11-2 0 1 1 0 012 0z" />
</svg>
</div>
<div>
<div class="sci-fi-font text-sm">LOW DIESEL STOCK</div>
<div class="text-xs text-gray-400">REORDER IN 2 DAYS</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- AI Command Bar -->
<footer class="bg-black/80 border-t border-orange-500/30 py-2 px-6">
<div class="flex items-center">
<div class="ai-orb w-6 h-6 rounded-full mr-3 pulse"></div>
<div class="relative flex-1">
<div class="absolute inset-y-0 left-0 flex items-center pl-3">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z" />
</svg>
</div>
<input type="text" class="w-full bg-gray-900/70 border border-orange-500/30 rounded-lg py-2 pl-10 pr-4 sci-fi-font text-sm focus:outline-none focus:ring-1 focus:ring-orange-500" placeholder="Ask AI: Predict noon demand...">
</div>
<button class="ml-3 bg-orange-500/20 hover:bg-orange-500/30 text-orange-500 sci-fi-font text-sm px-4 py-2 rounded-lg border border-orange-500/30 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-1" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5l7 7-7 7M5 5l7 7-7 7" />
</svg>
SEND
</button>
</div>
</footer>
<script>
// Update datetime
function updateDateTime() {
const now = new Date();
const options = {
weekday: 'long',
year: 'numeric',
month: 'short',
day: 'numeric',
hour: '2-digit',
minute: '2-digit',
second: '2-digit',
hour12: false
};
document.getElementById('datetime').textContent = now.toLocaleDateString('en-US', options);
}
updateDateTime();
setInterval(updateDateTime, 1000);
// Create sales chart
const salesCtx = document.getElementById('salesChart').getContext('2d');
const salesChart = new Chart(salesCtx, {
type: 'line',
data: {
labels: ['06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00'],
datasets: [
{
label: 'Actual',
data: [120, 190, 170, 210, 240, 220, 250],
borderColor: '#707070',
borderWidth: 1,
borderDash: [5, 5],
pointRadius: 0,
tension: 0.1
},
{
label: 'Predicted',
data: [120, 190, 170, 210, 240, 220, 250, 290, 320],
borderColor: '#FF6B35',
borderWidth: 2,
pointRadius: 0,
tension: 0.1
}
]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
x: {
grid: {
color: 'rgba(255,255,255,0.05)'
},
ticks: {
color: '#707070',
font: {
family: 'Rajdhani',
weight: 'bold'
}
}
},
y: {
grid: {
color: 'rgba(255,255,white,0.05)'
},
ticks: {
color: '#707070',
font: {
family: 'Rajdhani',
weight: 'bold'
}
}
}
}
}
});
// Create traffic chart
const trafficCtx = document.getElementById('trafficChart').getContext('2d');
const trafficChart = new Chart(trafficCtx, {
type: 'bar',
data: {
labels: ['08:00', '10:00', '12:00', '14:00', '16:00', '18:00'],
datasets: [{
label: 'Vehicles',
data: [12, 18, 22, 28, 25, 20],
backgroundColor: '#FF6B35',
borderColor: '#FF6B35',
borderWidth: 1
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
scales: {
x: {
grid: {
color: 'rgba(255,255,255,0.05)'
},
ticks: {
color: '#707070',
font: {
family: 'Rajdhani',
weight: 'bold'
}
}
},
y: {
grid: {
color: 'rgba(255,255,white,0.05)'
},
ticks: {
color: '#707070',
font: {
family: 'Rajdhani',
weight: 'bold'
}
}
}
}
}
});
// Create fuel consumption chart
const fuelCtx = document.getElementById('fuelChart').getContext('2d');
const fuelChart = new Chart(fuelCtx, {
type: 'doughnut',
data: {
labels: ['95 OCT', 'DIESEL', '98 OCT', 'E85'],
datasets: [{
data: [22, 58, 12, 8],
backgroundColor: [
'#FF6B35',
'#FF8C42',
'#FFA45C',
'#FFB677'
],
borderWidth: 0
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
plugins: {
legend: {
display: false
}
},
cutout: '70%'
}
});
// Add hover effects to pump status
const pumps = document.querySelectorAll('.hexagon');
pumps.forEach(pump => {
pump.addEventListener('mouseenter', () => {
if (pump.querySelector('svg').classList.contains('neon-orange')) {
pump.classList.add('neon-glow');
const icon = pump.querySelector('svg');
icon.style.transform = 'scale(1.1)';
icon.style.transition = 'transform 0.3s ease';
}
});
pump.addEventListener('mouseleave', () => {
pump.classList.remove('neon-glow');
const icon = pump.querySelector('svg');
icon.style.transform = 'scale(1)';
});
});
// Add data stream animation to camera feeds
const cameras = document.querySelectorAll('.corner-bracket');
cameras.forEach((camera, index) => {
// Create multiple data streams
for (let i = 0; i < 3; i++) {
const stream = document.createElement('div');
stream.classList.add('data-stream');
stream.style.left = `${Math.random() * 100}%`;
stream.style.animationDelay = `${Math.random() * 3}s`;
camera.appendChild(stream);
}
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=7758aqua/sample" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>