mrd33p's picture
Add 3 files
e550646 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Municipal Diesel Engine Tracking System</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.map-container {
height: 400px;
background-color: #e5e7eb;
position: relative;
overflow: hidden;
}
.location-marker {
position: absolute;
width: 24px;
height: 24px;
background-color: #3b82f6;
border-radius: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.location-marker:hover {
background-color: #2563eb;
transform: translate(-50%, -50%) scale(1.2);
}
.engine-status-active {
border-left: 4px solid #10b981;
}
.engine-status-inactive {
border-left: 4px solid #ef4444;
}
.engine-status-maintenance {
border-left: 4px solid #f59e0b;
}
.animate-pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% {
opacity: 1;
}
50% {
opacity: 0.5;
}
100% {
opacity: 1;
}
}
.sidebar {
transition: all 0.3s ease;
}
@media (max-width: 768px) {
.sidebar {
position: absolute;
left: -100%;
z-index: 50;
}
.sidebar-open {
left: 0;
}
}
.scroll-to-section {
scroll-margin-top: 20px;
}
.highlight-section {
animation: highlight 2s ease-out;
}
@keyframes highlight {
0% {
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
}
}
</style>
</head>
<body class="bg-gray-100">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white w-64 border-r border-gray-200 flex flex-col">
<div class="p-4 border-b border-gray-200 bg-blue-600 text-white">
<h1 class="text-xl font-bold flex items-center">
<i class="fas fa-gas-pump mr-2"></i>
Municipal Engine Tracker
</h1>
</div>
<div class="flex-1 overflow-y-auto">
<nav class="p-4">
<div class="mb-6">
<h2 class="text-xs uppercase font-semibold text-gray-500 mb-3">Navigation</h2>
<ul>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-blue-600 rounded-lg bg-blue-50">
<i class="fas fa-tachometer-alt mr-3"></i>
Dashboard
</a>
</li>
<li class="mb-2">
<a href="#engineListSection" id="enginesNavLink" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-gas-pump mr-3"></i>
Engines
</a>
</li>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-users mr-3"></i>
Operators
</a>
</li>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-map-marker-alt mr-3"></i>
Locations
</a>
</li>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-history mr-3"></i>
Movement Log
</a>
</li>
</ul>
</div>
<div>
<h2 class="text-xs uppercase font-semibold text-gray-500 mb-极速赛车开奖直播官网3">Reports</h2>
<ul>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-chart-bar mr-3"></i>
Usage Statistics
</a>
</li>
<li class="mb-2">
<a href="#" class="flex items-center p-2 text-gray-700 hover:bg-gray-100 rounded-lg">
<i class="fas fa-file-alt mr极速赛车开奖直播官网-3"></i>
Maintenance Logs
</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center">
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
<i class="fas fa-user"></i>
</div>
<div class="ml-3">
<p class="text-sm font-medium">Admin User</p>
<p class="text-xs text-gray-500">Municipal Office</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden">
<!-- Top Navigation -->
<header class="bg-white border-b border-gray-200 p-4 flex items-center justify-between">
<div class="flex items-center">
<button id="sidebarToggle" class="md:hidden mr-4 text-gray-600">
<i class="fas fa-bars"></i>
</button>
<h2 class="text-lg font-semibold">Diesel Engine Movement Tracking</h2>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<input type="text" placeholder="Search..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<button class="p-2 text-gray-600 hover:text-gray-900">
<i class="fas fa-bell"></i>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div id="totalEnginesCard" class="bg-white rounded-lg shadow p-6 cursor-pointer hover:shadow-md transition-shadow">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Total Engines</p>
<p class="text-2xl font-bold">24</p>
</div>
<div class="p-3 rounded-full bg-blue-100 text-blue-600">
<i class="fas fa-gas-pump text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Active Engines</p>
<p class="text-2xl font-bold">18</p>
</div>
<div class="p-3 rounded-full bg-green-100 text-green-600">
<i class="fas fa-check-circle text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">In Maintenance</p>
<p class="text-2xl font-bold">4</p>
</div>
<div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
<i class="fas fa-tools text-xl"></i>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-500">Operators</p>
<p class="text-2xl font-bold">15</p>
</div>
<div class="p-3 rounded-full bg-purple-100 text-purple-600">
<i class="fas fa-users text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Map and Recent Movements -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6">
<!-- Map Container -->
<div class="lg:col-span-2 bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b border-gray-200">
<h3 class="font-semibold">Engine Locations</h3>
</div>
<div class="map-container relative">
<!-- This would be replaced with a real map in production -->
<div class="location-marker" style="top: 30%; left: 25%;" data-engine="DE-001">
<span>1</span>
</div>
<div class="location-marker" style="top: 45%; left: 60%;" data-engine="DE-005">
<span>5</span>
</div>
<div class="location-marker" style="top: 70%; left: 40%;" data-engine="DE-012">
<span>12</span>
</div>
<div class="location-marker animate-pulse" style="top: 55%; left: 75%;" data-engine="DE-018">
<span>18</span>
</div>
</div>
</div>
<!-- Recent Movements -->
<div class="bg-white rounded-lg shadow overflow-hidden">
<div class="p-4 border-b border-gray-200">
<h3 class="font-semibold">Recent Movements</h3>
</div>
<div class="divide-y divide-gray-200 max-h-96 overflow-y-auto">
<div class="p-4 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">DE-018</p>
<p class="text-sm text-gray-500">From: Pump Station 3</p>
<p class="text-sm text-gray-500">To: Flood Control Area B</p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">Today, 09:45 AM</p>
<p class="text-sm font-medium">Operator: Rajesh Kumar</p>
</div>
</div>
</div>
<div class="p-4 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">DE-005</p>
<p class="text-sm text-gray-500">From: Water Treatment Plant</p>
<p class="text-sm text-gray-500">To: Pump Station 3</p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">Yesterday, 04:30 PM</p>
<p class="text-sm font-medium">Operator: Sunita Patel</p>
</div>
</div>
</div>
<div class="p-4 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">DE-012</p>
<p class="text-sm text-gray-500">From: Flood Control Area A</p>
<p class="text-sm text-gray-500">To: Maintenance Center</极速赛车开奖直播官网p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">Yesterday, 11:20 AM</p>
<p class="text-sm font-medium">Operator: Amit Sharma</p>
</div>
</div>
</div>
<div class="p-4 hover:bg-gray-50 cursor-pointer">
<div class="flex items-center justify-between">
<div>
<p class="font-medium">DE-001</p>
<p class="text-sm text-gray-500">From: Storage Facility</p>
<p class="text-sm text-gray-500">To: Water Treatment Plant</p>
</div>
<div class="text-right">
<p class="text-sm text-gray-500">2 days ago, 08:15 AM</p>
<p class="text-sm font-medium">Operator: Priya Gupta</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Engine List -->
<div id="engineListSection" class="bg-white rounded-lg shadow overflow-hidden scroll-to-section">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h3 class="font-semibold">All Diesel Engines</h3>
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 flex items-center">
<i class="fas fa-plus mr-2"></i>
Add New Engine
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Engine ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Current Location</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Last Moved</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Assigned Operator</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="engine-status-active hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
<i class="fas fa-gas-pump"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">DE-001</div>
<div class="text-sm text-gray-500">150 HP</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Water Treatment Plant</div>
<div class="text-sm text-gray-500">Zone 2</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
2 days ago
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Priya Gupta
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
<button class="text-gray-600 hover:text-gray-900">History</button>
</td>
</tr>
<tr class="engine-status-maintenance hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-yellow-100 rounded-full flex items-center justify-center text-yellow-600">
<i class="fas fa-gas-pump"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">DE-005</div>
<div class="text-sm text-gray-500">200 HP</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Pump Station 3</div>
<div class="text-sm text-gray-500">Zone 4</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">
Maintenance
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Yesterday
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Sunita Patel
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
<button class="text-gray-600 hover:text-gray-900">History</button>
</td>
</tr>
<tr class="engine-status-active hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
<i class="fas fa-gas-pump"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">DE-012</div>
<div class="text-sm text-gray-500">175 HP</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Maintenance Center</div>
<div class="极速赛车开奖直播官网text-sm text-gray-500">Central Zone</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Yesterday
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Amit Sharma
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
<button class="text-gray-600 hover:text-gray-900">History</button>
</td>
</tr>
<tr class="engine-status-active hover:bg-gray-50">
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div class="flex-shrink-0 h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center text-blue-600">
<i class="fas fa-gas-pump"></i>
</div>
<div class="ml-4">
<div class="text-sm font-medium text-gray-900">DE-018</div>
<div class="text-sm text-gray-500">250 HP</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900">Flood Control Area B</div>
<div class="text-sm text-gray-500">Zone 5</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Today
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
Rajesh Kumar
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<button class="text-blue-600 hover:text-blue-900 mr-3">Track</button>
<button class="text-gray-600 hover:text-gray-900">History</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
</div>
<!-- Engine Details Modal (hidden by default) -->
<div id="engineModal" class="fixed inset-0 bg-gray-600 bg-opacity-50 flex items-center justify-center hidden z-50">
<div class="bg-white rounded-lg shadow-xl w-full max-w-2xl">
<div class="p-4 border-b border-gray-200 flex justify-between items-center">
<h3 class="text-lg font-semibold">Engine Details - DE-001</h3>
<button id="closeModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<div class="p-6">
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<h4 class="font-medium text-gray-700 mb-2">Specifications</h4>
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex justify-between mb-2">
<span class="text-gray-600">HP Rating:</span>
<span class="font-medium">150 HP</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Manufacturer:</span>
<span class="font-medium">Cummins</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Model:</span>
<span class="font-medium">QSK19</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">Year:</span>
<span class="font-medium">2019</span>
</div>
</div>
</div>
<div>
<h4 class="font-medium text-gray-700 mb-2">Current Status</h4>
<div class="bg-gray-50 p-4 rounded-lg">
<div class="flex justify-between mb-2">
<span class="text-gray-600">Location:</span>
<span class="font-medium">Water Treatment Plant</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Assigned Operator:</span>
<span class="font-medium">Priya Gupta</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Status:</span>
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
Active
</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">Last Moved:</span>
<span class="font-medium">2 days ago</span>
</div>
</div>
</div>
</div>
<h4 class="font-medium text-gray-700 mb-4">Movement History</h4>
<div class="bg-gray-50 p-4 rounded-lg max-h-60 overflow-y-auto">
<div class="mb-4 pb-4 border-b border-gray-200">
<div class="flex justify-between mb-1">
<span class="font-medium">From: Pump Station 2</span>
<span class="text-sm text-gray-500">2 days ago</span>
</div>
<div class="flex justify-between">
<span>To: Water Treatment Plant</span>
<span class="text-sm">Operator: Priya Gupta</span>
</div>
</div>
<div class="mb-4 pb-4 border-b border-gray-200">
<div class="flex justify-between mb-1">
<span class="font-medium">From: Storage Facility</span>
<span class="text-sm text-gray-500">1 week ago</span>
</div>
<div class="flex justify-between">
<span>To: Pump Station 2</span>
<span class="text-sm">Operator: Amit Sharma</span>
</div>
</div>
<div class="mb-4 pb-4 border-b border-gray-200">
<div class="flex justify-between mb-1">
<span class="font-medium">From: Flood Control Area A</span>
<span class="text-sm text-gray-500">2 weeks ago</span>
</div>
<div class="flex justify-between">
<span>To: Storage Facility</span>
<span class="text-sm">Operator: Rajesh Kumar</span>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200 flex justify-end">
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700 mr-2">
<i class="fas fa-exchange-alt mr-2"></i>Record Movement
</button>
<button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg hover:bg-gray-300">
Close
</button>
</div>
</div>
</div>
<script>
// Toggle sidebar on mobile
document.getElementById('sidebarToggle').addEventListener('click', function() {
document.querySelector('.sidebar').classList.toggle('sidebar-open');
});
// Close modal
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('engineModal').classList.add('hidden');
});
// Show modal when clicking on engine markers (simulated)
document.querySelectorAll('.location-marker').forEach(marker => {
marker.addEventListener('click', function() {
document.getElementById('engineModal').classList.remove('hidden');
});
});
// Function to scroll to engine list with highlight effect
function scrollToEngineList() {
const engineListSection = document.getElementById('engineListSection');
engineListSection.scrollIntoView({ behavior: 'smooth' });
// Add highlight effect
engineListSection.classList.add('highlight-section');
setTimeout(() => {
engineListSection.classList.remove('highlight-section');
}, 2000);
}
// Scroll to engine list when clicking on total engines card
document.getElementById('totalEnginesCard').addEventListener('click', scrollToEngineList);
// Scroll to engine list when clicking on engines nav link
document.getElementById('enginesNavLink').addEventListener('click', function(e) {
e.preventDefault();
scrollToEngineList();
// Close sidebar on mobile after clicking
if (window.innerWidth <= 768) {
document.querySelector('.sidebar').classList.remove('sidebar-open');
}
});
// Simulate clicking on a marker to show the modal (for demo purposes)
setTimeout(() => {
document.querySelector('.location-marker').click();
}, 1000);
</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=mrd33p/diesel-engine-movement" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>