| <!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"> |
| |
| <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> |
|
|
| |
| <div class="main-content flex-1 overflow-auto"> |
| |
| <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> |
|
|
| |
| <main class="p-4 sm:p-6"> |
| |
| <div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4 mb-6"> |
| |
| <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> |
|
|
| |
| <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> |
|
|
| |
| <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> |
|
|
| |
| <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> |
|
|
| |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6"> |
| |
| <div class="lg:col-span-2 space-y-6"> |
| |
| <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> |
|
|
| |
| <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> |
|
|
| |
| <div class="space-y-6"> |
| |
| <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> |
|
|
| |
| <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> |
|
|
| |
| <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> |
|
|