Spaces:
Running
Running
File size: 25,350 Bytes
7eeea54 63e8329 7eeea54 d417b49 | 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 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IntelliFarm Pro | Smart Farm Management</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.waves.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',
},
secondary: {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#94a3b8',
500: '#64748b',
600: '#475569',
700: '#334155',
800: '#1e293b',
900: '#0f172a',
}
}
}
}
}
</script>
<style>
.hero-gradient {
background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(16,163,74,0.2) 100%);
}
.card-hover:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.transition-smooth {
transition: all 0.3s ease;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="bg-white shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items-center">
<i data-feather="sun" class="text-primary-600 h-8 w-8"></i>
<span class="ml-2 text-xl font-bold text-primary-800">IntelliFarm Pro</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="#" class="text-primary-600 border-b-2 border-primary-500 px-3 py-2 text-sm font-medium">Home</a>
<a href="#" class="text-secondary-600 hover:text-primary-500 px-3 py-2 text-sm font-medium">Features</a>
<a href="#" class="text-secondary-600 hover:text-primary-500 px-3 py-2 text-sm font-medium">Pricing</a>
<a href="#" class="text-secondary-600 hover:text-primary-500 px-3 py-2 text-sm font-medium">About</a>
</div>
<div class="flex items-center">
<a href="login" class="ml-4 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-600 hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500">
Sign In
</a>
</div>
</div>
</div>
</nav>
<!-- Hero Section -->
<div id="hero" class="hero-gradient">
<div class="max-w-7xl mx-auto py-16 px-4 sm:py-24 sm:px-6 lg:px-8">
<div class="text-center">
<h1 class="text-4xl tracking-tight font-extrabold text-secondary-900 sm:text-5xl md:text-6xl">
<span class="block">Smart Farming</span>
<span class="block text-primary-600">Management System</span>
</h1>
<p class="mt-3 max-w-md mx-auto text-base text-secondary-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
Revolutionize your agricultural operations with our all-in-one farm management platform. Monitor, analyze, and optimize your farming activities in real-time.
</p>
<div class="mt-5 max-w-md mx-auto sm:flex sm:justify-center md:mt-8">
<div class="rounded-md shadow">
<a href="/register" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700 md:py-4 md:text-lg md:px-10">
Get Started
</a>
</div>
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
<a href="#" class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-primary-600 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10">
Live Demo
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Features Section -->
<div class="py-12 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-primary-600 font-semibold tracking-wide uppercase">Features</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-secondary-900 sm:text-4xl">
Everything you need to manage your farm
</p>
<p class="mt-4 max-w-2xl text-xl text-secondary-500 lg:mx-auto">
From field operations to financial tracking, we've got you covered.
</p>
</div>
<div class="mt-10">
<div class="space-y-10 md:space-y-0 md:grid md:grid-cols-2 md:gap-x-8 md:gap-y-10">
<!-- Feature 1 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="map"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Farm Mapping</h3>
<p class="mt-2 text-base text-secondary-500">
Visualize your farm layout with GPS mapping and plot management.
</p>
</div>
</div>
<!-- Feature 2 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="clipboard"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Activity Tracking</h3>
<p class="mt-2 text-base text-secondary-500">
Record and monitor all field activities with our intuitive calendar.
</p>
</div>
</div>
<!-- Feature 3 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="alert-triangle"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Disease Management</h3>
<p class="mt-2 text-base text-secondary-500">
Log and track diseases with recommendations for control measures.
</p>
</div>
</div>
<!-- Feature 4 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="dollar-sign"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Financial Analysis</h3>
<p class="mt-2 text-base text-secondary-500">
Track costs and revenues with detailed profit & loss reports.
</p>
</div>
</div>
<!-- Feature 5 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="package"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Inventory Control</h3>
<p class="mt-2 text-base text-secondary-500">
Manage stock levels and receive alerts for low inventory.
</p>
</div>
</div>
<!-- Feature 6 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="users"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Worker Management</h3>
<p class="mt-2 text-base text-secondary-500">
Assign tasks and track worker productivity across your farm.
</p>
</div>
</div>
<!-- Feature 7 -->
<div class="card-hover transition-smooth relative p-6 bg-white rounded-lg shadow-sm border border-gray-200">
<div class="flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-md bg-primary-500 text-white">
<i data-feather="cloud"></i>
</div>
<div class="mt-5">
<h3 class="text-lg leading-6 font-medium text-secondary-900">Weather Integration</h3>
<p class="mt-2 text-base text-secondary-500">
Real-time weather data and forecasts for optimal planning.
</p>
<div id="weatherWidget" class="mt-3 text-sm p-2 bg-gray-50 rounded">
Loading weather data...
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Dashboard Preview -->
<div class="bg-secondary-50 py-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="lg:text-center">
<h2 class="text-base text-primary-600 font-semibold tracking-wide uppercase">Dashboard</h2>
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-secondary-900 sm:text-4xl">
Real-time farm insights at your fingertips
</p>
</div>
<div class="mt-10">
<div class="relative bg-white p-6 rounded-lg shadow-xl overflow-hidden">
<div class="relative z-10">
<div class="flex justify-between items-center mb-6">
<h3 class="text-lg font-medium text-secondary-900">Farm Overview</h3>
<div class="flex space-x-2">
<button class="px-3 py-1 bg-primary-100 text-primary-800 rounded-md text-sm">This Week</button>
<button class="px-3 py-1 bg-white text-secondary-600 border border-secondary-200 rounded-md text-sm">This Month</button>
<button class="px-3 py-1 bg-white text-secondary-600 border border-secondary-200 rounded-md text-sm">This Year</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
<!-- Stat 1 -->
<div class="bg-white p-4 rounded-lg border border-secondary-200 shadow-sm">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 p-3 rounded-md">
<i data-feather="droplet" class="text-primary-600 h-6 w-6"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-secondary-500 truncate">Water Usage</p>
<p class="text-xl font-semibold text-secondary-900">1,240 L</p>
</div>
</div>
</div>
<!-- Stat 2 -->
<div class="bg-white p-4 rounded-lg border border-secondary-200 shadow-sm">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 p-3 rounded-md">
<i data-feather="check-circle" class="text-primary-600 h-6 w-6"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-secondary-500 truncate">Tasks Completed</p>
<p class="text-xl font-semibold text-secondary-900">24/32</p>
</div>
</div>
</div>
<!-- Stat 3 -->
<div class="bg-white p-4 rounded-lg border border-secondary-200 shadow-sm">
<div class="flex items-center">
<div class="flex-shrink-0 bg-primary-100 p-3 rounded-md">
<i data-feather="dollar-sign" class="text-primary-600 h-6 w-6"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-secondary-500 truncate">Weekly Revenue</p>
<p class="text-xl font-semibold text-secondary-900">$3,450</p>
</div>
</div>
</div>
</div>
<!-- Chart -->
<div class="bg-white p-4 rounded-lg border border-secondary-200 shadow-sm">
<canvas id="farmChart" height="300"></canvas>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- CTA Section -->
<div class="bg-primary-700">
<div class="max-w-2xl mx-auto text-center py-16 px-4 sm:py-20 sm:px-6 lg:px-8">
<h2 class="text-3xl font-extrabold text-white sm:text-4xl">
<span class="block">Ready to transform your farm management?</span>
</h2>
<p class="mt-4 text-lg leading-6 text-primary-200">
Join thousands of farmers who are already optimizing their operations with IntelliFarm Pro.
</p>
<a href="/register" class="mt-8 w-full inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-primary-600 bg-white hover:bg-primary-50 sm:w-auto">
Start Free Trial
</a>
</div>
</div>
<!-- Footer -->
<footer class="bg-white">
<div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
<nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
<div class="px-5 py-2">
<a href="#" class="text-base text-secondary-500 hover:text-primary-500">About</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-secondary-500 hover:text-primary-500">Features</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-secondary-500 hover:text-primary-500">Pricing</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-secondary-500 hover:text-primary-500">Docs</a>
</div>
<div class="px-5 py-2">
<a href="/blog" class="text-base text-secondary-500 hover:text-primary-500">Blog</a>
</div>
<div class="px-5 py-2">
<a href="#" class="text-base text-secondary-500 hover:text-primary-500">Contact</a>
</div>
</nav>
<div class="mt-8 flex justify-center space-x-6">
<a href="#" class="text-secondary-400 hover:text-primary-500">
<i data-feather="facebook" class="h-6 w-6"></i>
</a>
<a href="#" class="text-secondary-400 hover:text-primary-500">
<i data-feather="twitter" class="h-6 w-6"></i>
</a>
<a href="#" class="text-secondary-400 hover:text-primary-500">
<i data-feather="instagram" class="h-6 w-6"></i>
</a>
<a href="#" class="text-secondary-400 hover:text-primary-500">
<i data-feather="linkedin" class="h-6 w-6"></i>
</a>
</div>
<p class="mt-8 text-center text-base text-secondary-400">
© 2023 IntelliFarm Pro. All rights reserved.
</p>
</div>
</footer>
<script>
// Initialize feather icons
feather.replace();
// Weather API integration
function fetchWeather() {
navigator.geolocation.getCurrentPosition(async position => {
const { latitude, longitude } = position.coords;
try {
const response = await fetch(`https://api.open-meteo.com/v1/forecast?latitude=${latitude}&longitude=${longitude}¤t_weather=true&hourly=temperature_2m,precipitation_probability&daily=weathercode,temperature_2m_max,temperature_2m_min,precipitation_sum&timezone=auto`);
const data = await response.json();
const currentTemp = data.current_weather.temperature;
const weatherCode = data.current_weather.weathercode;
const weatherDesc = getWeatherDescription(weatherCode);
const widget = document.getElementById('weatherWidget');
widget.innerHTML = `
<div class="flex items-center">
<i data-feather="cloud" class="text-primary-600 mr-2"></i>
<span class="font-medium">${currentTemp}°C - ${weatherDesc}</span>
</div>
<div class="mt-1 text-xs">
Next 24h: ${data.hourly.precipitation_probability[0]}% rain chance
</div>
`;
feather.replace();
} catch (error) {
console.error('Weather API error:', error);
document.getElementById('weatherWidget').textContent = 'Weather data unavailable';
}
}, () => {
document.getElementById('weatherWidget').textContent = 'Location access denied';
});
}
function getWeatherDescription(code) {
const weatherCodes = {
0: 'Clear sky',
1: 'Mainly clear',
2: 'Partly cloudy',
3: 'Overcast',
45: 'Fog',
48: 'Depositing rime fog',
51: 'Drizzle',
53: 'Moderate drizzle',
55: 'Dense drizzle',
56: 'Freezing drizzle',
57: 'Dense freezing drizzle',
61: 'Slight rain',
63: 'Moderate rain',
65: 'Heavy rain',
66: 'Freezing rain',
67: 'Heavy freezing rain',
71: 'Slight snow',
73: 'Moderate snow',
75: 'Heavy snow',
77: 'Snow grains',
80: 'Slight rain showers',
81: 'Moderate rain showers',
82: 'Violent rain showers',
85: 'Slight snow showers',
86: 'Heavy snow showers',
95: 'Thunderstorm',
96: 'Thunderstorm with slight hail',
99: 'Thunderstorm with heavy hail'
};
return weatherCodes[code] || 'Unknown weather';
}
// Initialize weather on page load
if (document.getElementById('weatherWidget')) {
fetchWeather();
}
// Initialize chart
document.addEventListener('DOMContentLoaded', function() {
const ctx = document.getElementById('farmChart').getContext('2d');
const farmChart = new Chart(ctx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
datasets: [
{
label: 'Yield (kg/ha)',
data: [1200, 1900, 1500, 2000, 1800, 2300, 2200, 2500, 2100, 2400, 2300, 2600],
borderColor: '#22c55e',
backgroundColor: 'rgba(34, 197, 94, 0.05)',
fill: true,
tension: 0.4
},
{
label: 'Revenue ($)',
data: [3200, 4200, 3800, 4500, 4100, 5200, 4800, 5500, 4900, 5300, 5100, 5800],
borderColor: '#64748b',
backgroundColor: 'rgba(100, 116, 139, 0.05)',
fill: true,
tension: 0.4
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
tooltip: {
mode: 'index',
intersect: false,
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Vanta.js background for hero section
VANTA.WAVES({
el: "#hero",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x86efac,
shininess: 35.00,
waveHeight: 15.00,
waveSpeed: 0.50,
zoom: 0.65
});
});
</script>
</body>
</html>
|