sample2 / index.html
vdimsa's picture
Update index.html
ad8f60f verified
Raw
History Blame
47.1 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>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.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;
}
.staff-badge {
position: relative;
overflow: hidden;
}
.staff-badge::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #FF6B35, #FF8C42);
}
.staff-status {
width: 10px;
height: 10px;
border-radius: 50%;
display: inline-block;
margin-right: 5px;
}
.status-active {
background-color: #4ADE80;
box-shadow: 0 0 5px #4ADE80;
}
.status-break {
background-color: #FBBF24;
box-shadow: 0 0 5px #FBBF24;
}
.status-off {
background-color: #F87171;
box-shadow: 0 0 5px #F87171;
}
.staff-location {
font-size: 0.7rem;
color: #A1A1AA;
margin-top: 2px;
}
.pulse-dot {
position: absolute;
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #FF6B35;
box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
0% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 5px rgba(255, 107, 53, 0);
}
100% {
transform: scale(0.95);
box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
}
}
/* Map Styles */
#stationMap {
height: 200px;
width: 100%;
border-radius: 0.5rem;
z-index: 1;
}
.map-container {
position: relative;
height: 100%;
width: 100%;
}
.map-overlay {
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
background: rgba(0, 0, 0, 0.7);
padding: 0.5rem;
border-radius: 0.25rem;
border: 1px solid #FF6B35;
}
.map-status {
display: flex;
align-items: center;
font-size: 0.8rem;
}
.map-status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 5px;
}
.map-status-online {
background-color: #4ADE80;
box-shadow: 0 0 5px #4ADE80;
}
.map-status-offline {
background-color: #F87171;
box-shadow: 0 0 5px #F87171;
}
.leaflet-control-attribution {
display: none !important;
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.main-container {
flex-direction: column;
}
.panel {
width: 100% !important;
height: auto;
max-height: 50vh;
border-right: none !important;
border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}
#stationMap {
height: 150px;
}
}
@media (max-width: 768px) {
header {
flex-direction: column;
align-items: flex-start;
padding: 1rem;
}
header > div {
margin-top: 0.5rem;
}
#stationMap {
height: 120px;
}
}
</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>
<!-- Station Location Map -->
<div class="mb-4 hover-3d">
<div class="map-container">
<div id="stationMap"></div>
<div class="map-overlay">
<div class="map-status">
<div class="map-status-indicator map-status-online"></div>
<span class="sci-fi-font text-xs">MECCA STATION ONLINE</span>
</div>
</div>
</div>
<div class="text-center mt-1 text-xs text-gray-400 sci-fi-font">WESTERN REGION, SAUDI ARABIA</div>
</div>
<!-- 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 mb-4">
<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>
<!-- Staff Tracking -->
<div class="bg-gray-900/50 rounded-lg p-4 neon-border">
<div class="flex items-center justify-between mb-3">
<h3 class="sci-fi-font text-orange-500 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
STAFF TRACKING
</h3>
<div class="text-xs text-gray-400">ON-SITE: <span class="text-green-400">4/6</span></div>
</div>
<div class="grid grid-cols-2 gap-3">
<!-- Staff Member 1 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="pulse-dot" style="top: 10px; right: 10px;"></div>
<div class="flex items-center mb-2">
<span class="staff-status status-active"></span>
<span class="sci-fi-font">JOHN DOE</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location">FORECOURT - PUMP 3</div>
<div class="text-xs bg-green-900/50 text-green-400 px-2 py-1 rounded">ON DUTY</div>
</div>
</div>
<!-- Staff Member 2 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="flex items-center mb-2">
<span class="staff-status status-break"></span>
<span class="sci-fi-font">JANE SMITH</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location">STAFF LOUNGE</div>
<div class="text-xs bg-yellow-900/50 text-yellow-400 px-2 py-1 rounded">ON BREAK</div>
</div>
</div>
<!-- Staff Member 3 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="flex items-center mb-2">
<span class="staff-status status-active"></span>
<span class="sci-fi-font">MIKE JOHNSON</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location">SHOP - CHECKOUT 2</div>
<div class="text-xs bg-green-900/50 text-green-400 px-2 py-1 rounded">ON DUTY</div>
</div>
</div>
<!-- Staff Member 4 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="flex items-center mb-2">
<span class="staff-status status-active"></span>
<span class="sci-fi-font">SARAH WILLIAMS</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location">SHOP - STOCK ROOM</div>
<div class="text-xs bg-green-900/50 text-green-400 px-2 py-1 rounded">ON DUTY</div>
</div>
</div>
<!-- Staff Member 5 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="flex items-center mb-2">
<span class="staff-status status-off"></span>
<span class="sci-fi-font text-gray-500">DAVID BROWN</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location text-gray-500">OFF-SITE</div>
<div class="text-xs bg-red-900/50 text-red-400 px-2 py-1 rounded">OFF DUTY</div>
</div>
</div>
<!-- Staff Member 6 -->
<div class="hover-3d staff-badge bg-gray-800/50 rounded-lg p-3 relative">
<div class="flex items-center mb-2">
<span class="staff-status status-off"></span>
<span class="sci-fi-font text-gray-500">LISA TAYLOR</span>
</div>
<div class="flex justify-between items-center">
<div class="staff-location text-gray-500">OFF-SITE</div>
<div class="text-xs bg-red-900/50 text-red-400 px-2 py-1 rounded">OFF DUTY</div>
</div>
</div>
</div>
<div class="mt-3 text-xs text-gray-400 flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-3 w-3 mr-1 text-orange-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
PULSE INDICATOR SHOWS STAFF REQUIRING ASSISTANCE
</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);
// Initialize the map
function initMap() {
// Coordinates for Mecca, Saudi Arabia
const meccaCoords = [21.3891, 39.8579];
// Create the map centered on Western Saudi Arabia
const map = L.map('stationMap').setView([22.0, 39.0], 7);
// Add a tile layer (using OpenStreetMap)
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 18,
tileSize: 512,
zoomOffset: -1
}).addTo(map);
// Add a marker for the station in Mecca
const stationIcon = L.divIcon({
className: 'station-marker',
html: `<div style="background: radial-gradient(circle at 30% 30%, #FF8C42, #FF6B35); width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);"></div>`,
iconSize: [20, 20],
iconAnchor: [10, 10]
});
const marker = L.marker(meccaCoords, {icon: stationIcon}).addTo(map);
// Add a popup with station info
marker.bindPopup("<b>NEXUS STATION #0420</b><br>Mecca, Saudi Arabia<br>Status: <span style='color:#4ADE80'>Online</span>").openPopup();
// Add a circle around Mecca to highlight the region
L.circle(meccaCoords, {
color: '#FF6B35',
fillColor: '#FF6B35',
fillOpacity: 0.2,
radius: 15000
}).addTo(map);
// Add labels for major cities in Western Saudi Arabia
const cities = [
{name: "Mecca", coords: [21.3891, 39.8579]},
{name: "Jeddah", coords: [21.5435, 39.1728]},
{name: "Medina", coords: [24.5247, 39.5692]},
{name: "Taif", coords: [21.4373, 40.5127]},
{name: "Yanbu", coords: [24.0895, 38.0618]}
];
cities.forEach(city => {
L.marker(city.coords).addTo(map)
.bindTooltip(city.name, {permanent: false, direction: 'top'});
});
}
// Initialize the map when the page loads
document.addEventListener('DOMContentLoaded', initMap);
// 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);
}
});
// Simulate staff requiring assistance
setInterval(() => {
const pulseDot = document.querySelector('.pulse-dot');
pulseDot.style.display = Math.random() > 0.7 ? 'block' : 'none';
}, 5000);
</script>
</html>