File size: 21,231 Bytes
d7fe66c ae44789 d7fe66c 75eac86 d7fe66c | 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 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard - Agrosynth OS</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
primary: {
50: '#f0fdf4',
100: '#dcfce7',
200: '#bbf7d0',
300: '#86efac',
400: '#4ade80',
500: '#22c55e',
600: '#16a34a',
700: '#15803d',
800: '#166534',
900: '#14532d',
}
}
}
}
}
</script>
<style>
.sidebar {
transition: all 0.3s ease;
}
.sidebar.collapsed {
width: 5rem;
}
.sidebar.collapsed .sidebar-text {
display: none;
}
.main-content {
transition: margin-left 0.3s ease;
}
.map-container {
height: 500px;
background-image: url('http://static.photos/nature/1200x630/42');
background-size: cover;
background-position: center;
}
</style>
</head>
<body class="bg-gray-100 font-sans antialiased">
<div class="flex h-screen overflow-hidden">
<!-- Sidebar -->
<div class="sidebar bg-white shadow-md w-64 flex flex-col">
<div class="flex items-center justify-center h-16 px-4 border-b">
<div class="flex items-center">
<i data-feather="layers" class="text-primary-600 h-6 w-6"></i>
<span class="ml-2 text-lg font-bold text-gray-900 sidebar-text">Agrosynth OS</span>
</div>
</div>
<nav class="flex-1 overflow-y-auto py-4">
<div class="px-4 space-y-1">
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md bg-primary-50 text-primary-700">
<i data-feather="home" class="text-primary-600 h-5 w-5"></i>
<span class="ml-3 sidebar-text">Dashboard</span>
</a>
<a href="/field-maps" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i data-feather="map" class="text-gray-500 h-5 w-5"></i>
<span class="ml-3 sidebar-text">Field Maps</span>
</a>
<a href="/analytics" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i data-feather="activity" class="text-gray-500 h-5 w-5"></i>
<span class="ml-3 sidebar-text">Analytics</span>
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i data-feather="eye" class="text-gray-500 h-5 w-5"></i>
<span class="ml-3 sidebar-text">XR Tools</span>
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i data-feather="shield" class="text-gray-500 h-5 w-5"></i>
<span class="ml-3 sidebar-text">Certificates</span>
</a>
<a href="#" class="flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:bg-gray-50 hover:text-gray-900">
<i data-feather="settings" class="text-gray-500 h-5 w-5"></i>
<span class="ml-3 sidebar-text">Settings</span>
</a>
</div>
</nav>
<div class="p-4 border-t">
<div class="flex items-center">
<img class="h-8 w-8 rounded-full" src="http://static.photos/people/200x200/1" alt="User profile">
<div class="ml-3 sidebar-text">
<p class="text-sm font-medium text-gray-700">John Farmer</p>
<p class="text-xs text-gray-500">Premium Plan</p>
</div>
</div>
</div>
</div>
<!-- Main content -->
<div class="main-content flex-1 overflow-auto">
<!-- Top navigation -->
<header class="bg-white shadow-sm">
<div class="flex justify-between items-center px-4 py-4 sm:px-6">
<div class="flex items-center">
<button class="mr-4 text-gray-500 hover:text-gray-600">
<i data-feather="menu" class="h-5 w-5"></i>
</button>
<h1 class="text-xl font-semibold text-gray-900">Farm Dashboard</h1>
</div>
<div class="flex items-center space-x-4">
<button class="p-1 text-gray-400 hover:text-gray-500">
<i data-feather="bell" class="h-5 w-5"></i>
</button>
<button class="p-1 text-gray-400 hover:text-gray-500">
<i data-feather="help-circle" class="h-5 w-5"></i>
</button>
</div>
</div>
</header>
<!-- Dashboard content -->
<main class="p-4 sm:p-6">
<!-- Stats cards -->
<div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-6">
<!-- Card 1 -->
<div class="bg-white overflow-hidden shadow rounded-lg" data-aos="fade-up">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 rounded-md p-3">
<i data-feather="map-pin" class="h-6 w-6 text-primary-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Total Hectares</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">1,250</div>
</dd>
</div>
</div>
</div>
</div>
<!-- Card 2 -->
<div class="bg-white overflow-hidden shadow rounded-lg" data-aos="fade-up" data-aos-delay="100">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 rounded-md p-3">
<i data-feather="bar-chart-2" class="h-6 w-6 text-primary-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Yield Forecast</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">4.2 t/ha</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-green-600">
<i data-feather="trending-up" class="h-4 w-4"></i>
<span class="sr-only">Increased by</span> 8%
</div>
</dd>
</div>
</div>
</div>
</div>
<!-- Card 3 -->
<div class="bg-white overflow-hidden shadow rounded-lg" data-aos="fade-up" data-aos-delay="200">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 rounded-md p-3">
<i data-feather="droplet" class="h-6 w-6 text-primary-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Soil Moisture</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">62%</div>
<div class="ml-2 flex items-baseline text-sm font-semibold text-red-600">
<i data-feather="trending-down" class="h-4 w-4"></i>
<span class="sr-only">Decreased by</span> 3%
</div>
</dd>
</div>
</div>
</div>
</div>
<!-- Card 4 -->
<div class="bg-white overflow-hidden shadow rounded-lg" data-aos="fade-up" data-aos-delay="300">
<div class="px-4 py-5 sm:p-6">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 rounded-md p-3">
<i data-feather="shield" class="h-6 w-6 text-primary-600"></i>
</div>
<div class="ml-5 w-0 flex-1">
<dt class="text-sm font-medium text-gray-500 truncate">Certified Fields</dt>
<dd class="flex items-baseline">
<div class="text-2xl font-semibold text-gray-900">3/5</div>
</dd>
</div>
</div>
</div>
</div>
</div>
<!-- Map and main content -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left column -->
<div class="lg:col-span-2 space-y-6">
<!-- Map -->
<div class="bg-white shadow rounded-lg overflow-hidden" data-aos="fade-up">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg font-medium leading-6 text-gray-900">Field Map</h3>
</div>
<div class="map-container rounded-b-lg"></div>
</div>
<!-- Tasks -->
<div class="bg-white shadow rounded-lg overflow-hidden" data-aos="fade-up">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg font-medium leading-6 text-gray-900">Pending Tasks</h3>
</div>
<div class="divide-y divide-gray-200">
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<div class="flex items-center">
<input type="checkbox" class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
<span class="ml-3 text-sm font-medium text-gray-900">Apply fertilizer to Field B</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="h-4 w-4 mr-1"></i>
Due tomorrow
</div>
</div>
</div>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<div class="flex items-center">
<input type="checkbox" class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
<span class="ml-3 text-sm font-medium text-gray-900">Schedule drone scan for Field C</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="h-4 w-4 mr-1"></i>
Due in 3 days
</div>
</div>
</div>
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<div class="flex items-center">
<input type="checkbox" class="h-4 w-4 text-primary-600 focus:ring-primary-500 border-gray-300 rounded">
<span class="ml-3 text-sm font-medium text-gray-900">Review soil analysis report</span>
</div>
<div class="flex items-center text-sm text-gray-500">
<i data-feather="calendar" class="h-4 w-4 mr-1"></i>
Due in 5 days
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Right column -->
<div class="space-y-6">
<!-- Yield forecast -->
<div class="bg-white shadow rounded-lg overflow-hidden" data-aos="fade-up">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg font-medium leading-6 text-gray-900">Yield Forecast</h3>
</div>
<div class="px-4 py-5 sm:p-6">
<div class="h-64 flex items-center justify-center">
<div class="text-center">
<div class="text-5xl font-bold text-primary-600">4.2</div>
<div class="mt-2 text-gray-500">tons per hectare</div>
<div class="mt-4 text-sm text-gray-500">8% increase from last season</div>
</div>
</div>
</div>
</div>
<!-- Recent activity -->
<div class="bg-white shadow rounded-lg overflow-hidden" data-aos="fade-up">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg font-medium leading-6 text-gray-900">Recent Activity</h3>
</div>
<div class="divide-y divide-gray-200">
<div class="px-4 py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<i data-feather="alert-circle" class="h-5 w-5 text-yellow-500"></i>
</div>
<div class="min-w-0 flex-1">
<p class="text-sm text-gray-800">Soil moisture levels in Field A are below optimal</p>
<p class="text-sm text-gray-500">2 hours ago</p>
</div>
</div>
</div>
<div class="px-4 py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<i data-feather="check-circle" class="h-5 w-5 text-green-500"></i>
</div>
<div class="min-w-0 flex-1">
<p class="text-sm text-gray-800">Drone scan completed for Field B</p>
<p class="text-sm text-gray-500">1 day ago</p>
</div>
</div>
</div>
<div class="px-4 py-4">
<div class="flex space-x-3">
<div class="flex-shrink-0">
<i data-feather="shield" class="h-5 w-5 text-blue-500"></i>
</div>
<div class="min-w-0 flex-1">
<p class="text-sm text-gray-800">New organic certification issued for Field C</p>
<p class="text-sm text-gray-500">3 days ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- Quick actions -->
<div class="bg-white shadow rounded-lg overflow-hidden" data-aos="fade-up">
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
<h3 class="text-lg font-medium leading-6 text-gray-900">Quick Actions</h3>
</div>
<div class="p-4 grid grid-cols-2 gap-4">
<button class="flex items-center justify-center p-3 border border-gray-200 rounded-md hover:bg-gray-50">
<i data-feather="plus" class="h-5 w-5 text-gray-500"></i>
<span class="ml-2 text-sm font-medium">New Task</span>
</button>
<button class="flex items-center justify-center p-3 border border-gray-200 rounded-md hover:bg-gray-50">
<i data-feather="map" class="h-5 w-5 text-gray-500"></i>
<span class="ml-2 text-sm font-medium">View Map</span>
</button>
<button class="flex items-center justify-center p-3 border border-gray-200 rounded-md hover:bg-gray-50">
<i data-feather="bar-chart-2" class="h-5 w-5 text-gray-500"></i>
<span class="ml-2 text-sm font-medium">Analytics</span>
</button>
<button class="flex items-center justify-center p-3 border border-gray-200 rounded-md hover:bg-gray-50">
<i data-feather="settings" class="h-5 w-5 text-gray-500"></i>
<span class="ml-2 text-sm font-medium">Settings</span>
</button>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<script>
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
</script>
<script>
feather.replace();
</script>
</body>
</html>
|