Spaces:
Running
Running
Download index.html from thakurihem/undefined: direct link, hf CLI and curl.
- Browser
- Download file 25.4 kB
-
https://huggingface.co/spaces/thakurihem/undefined/resolve/main/index.html
- Command line
-
hf download hf://spaces/thakurihem/undefined/index.html
-
curl -L -o index.html https://huggingface.co/spaces/thakurihem/undefined/resolve/main/index.html
25.4 kB
| <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> | |