File size: 25,580 Bytes
28a8d2d 290e9fa 28a8d2d 290e9fa 28a8d2d 290e9fa | 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 | <!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sistema de Gestão de Cajueiros</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>
.tree-chart {
background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.leaf {
position: absolute;
background-color: #4ade80;
transform-origin: bottom center;
}
@keyframes wind {
0%, 100% { transform: rotate(-5deg); }
50% { transform: rotate(5deg); }
}
.animate-wind {
animation: wind 3s ease-in-out infinite;
}
.map-container {
height: 400px;
background-image: url('https://maps.googleapis.com/maps/api/staticmap?center=-5.7793,-35.2009&zoom=12&size=600x400&maptype=hybrid&markers=color:red%7C-5.7793,-35.2009&key=YOUR_API_KEY');
background-size: cover;
background-position: center;
}
</style>
</head>
<body class="bg-gray-50">
<div class="min-h-screen">
<!-- Header -->
<header class="bg-green-700 text-white shadow-lg">
<div class="container mx-auto px-4 py-6 flex justify-between items-center">
<div class="flex items-center space-x-3">
<i class="fas fa-tree text-3xl text-yellow-300"></i>
<h1 class="text-2xl font-bold">Sistema Cajueiro Inteligente</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="hover:text-yellow-300 font-medium" onclick="navigateTo('dashboard')">Dashboard</a>
<a href="#" class="hover:text-yellow-300 font-medium" onclick="navigateTo('trees')">Meus Cajueiros</a>
<a href="#" class="hover:text-yellow-300 font-medium" onclick="navigateTo('production')">Produção</a>
<a href="#" class="hover:text-yellow-300 font-medium" onclick="navigateTo('reports')">Relatórios</a>
</nav>
<button id="mobileMenuButton" class="md:hidden text-2xl">
<i class="fas fa-bars"></i>
</button>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Stats Cards -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
<div class="bg-white rounded-xl shadow-md p-6 flex items-center">
<div class="p-3 rounded-lg bg-green-100 text-green-700 mr-4">
<i class="fas fa-tree text-2xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Total de Cajueiros</p>
<h3 class="text-2xl font-bold">1,248</h3>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 flex items-center">
<div class="p-3 rounded-lg bg-yellow-100 text-yellow-700 mr-4">
<i class="fas fa-apple-alt text-2xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Produção Anual</p>
<h3 class="text-2xl font-bold">5,280 kg</h3>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 flex items-center">
<div class="p-3 rounded-lg bg-blue-100 text-blue-700 mr-4">
<i class="fas fa-tint text-2xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Irrigação</p>
<h3 class="text-2xl font-bold">78%</h3>
</div>
</div>
<div class="bg-white rounded-xl shadow-md p-6 flex items-center">
<div class="p-3 rounded-lg bg-red-100 text-red-700 mr-4">
<i class="fas fa-bug text-2xl"></i>
</div>
<div>
<p class="text-gray-500 text-sm">Pragas Detectadas</p>
<h3 class="text-2xl font-bold">12</h3>
</div>
</div>
</div>
<!-- Main Dashboard -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<!-- Tree Health Visualization -->
<div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold">Saúde dos Cajueiros</h2>
<select class="bg-gray-100 border border-gray-300 rounded-lg px-3 py-2 text-sm">
<option>Últimos 30 dias</option>
<option>Últimos 60 dias</option>
<option>Últimos 90 dias</option>
</select>
</div>
<div class="relative tree-chart rounded-lg p-4 h-64">
<div class="absolute inset-0 flex items-center justify-center">
<!-- Animated cashew tree -->
<div class="relative w-40 h-64">
<div class="absolute bottom-0 left-1/2 transform -translate-x-1/2 w-6 h-40 bg-yellow-800 rounded-sm"></div>
<div class="absolute bottom-40 left-1/2 transform -translate-x-1/2 w-32 h-32 rounded-full bg-green-600"></div>
<!-- Leaves -->
<div class="leaf w-8 h-8 rounded-full animate-wind" style="top: 30%; left: 20%;"></div>
<div class="leaf w-6 h-6 rounded-full animate-wind" style="top: 25%; left: 45%; animation-delay: 0.5s;"></div>
<div class="leaf w-7 h-7 rounded-full animate-wind" style="top: 35%; left: 70%; animation-delay: 0.7s;"></div>
<div class="leaf w-5 h-5 rounded-full animate-wind" style="top: 40%; left: 20%; animation-delay: 0.3s;"></div>
<div class="leaf w-9 h-9 rounded-full animate-wind" style="top: 50%; left: 50%; animation-delay: 1s;"></div>
</div>
</div>
<div class="absolute bottom-4 left-4 right-4 bg-white bg-opacity-90 rounded-lg p-3 shadow-sm">
<div class="flex justify-between items-center">
<div>
<p class="text-xs text-gray-500">Condição média</p>
<h4 class="font-bold text-green-700">Saudável</h4>
</div>
<div>
<p class="text-xs text-gray-500">Produtividade</p>
<h4 class="font-bold">86%</h4>
</div>
<div>
<p class="text-xs text-gray-500">Última análise</p>
<h4 class="font-bold">15/06/2023</h4>
</div>
</div>
</div>
</div>
</div>
<!-- Production Progress -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-bold mb-6">Produção Anual</h2>
<div class="flex items-center justify-center h-48">
<svg class="w-32 h-32" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
class="progress-ring__circle"
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#f59e0b"
stroke-width="3"
stroke-dasharray="65, 100"
/>
<text x="18" y="20.5" text-anchor="middle" font-size="6" fill="#f59e0b" font-weight="bold">65%</text>
<text x="18" y="25" text-anchor="middle" font-size="3" fill="#666">Meta Anual</text>
</svg>
</div>
<div class="mt-4">
<div class="flex justify-between mb-1">
<span class="text-sm font-medium text-gray-700">Colhido</span>
<span class="text-sm font-medium">3,420kg</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2.5">
<div class="bg-yellow-500 h-2.5 rounded-full" style="width: 65%"></div>
</div>
<p class="mt-2 text-sm text-gray-500">Restam 1,860kg para alcançar a meta de 5,280kg</p>
</div>
</div>
</div>
<!-- Map and Recent Activities -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<!-- Map Section -->
<div class="lg:col-span-2 bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h2 class="text-xl font-bold">Localização dos Cajueiros</h2>
<button id="addAreaButton" class="bg-green-600 text-white px-4 py-2 rounded-lg text-sm flex items-center">
<i class="fas fa-plus mr-2"></i> Adicionar Área
</button>
</div>
<div class="map-container rounded-lg border border-gray-200">
<!-- Google Map would be embedded here -->
<div class="absolute top-4 right-4 bg-white rounded-lg shadow-md p-2">
<div class="flex items-center px-2 py-1">
<div class="w-3 h-3 rounded-full bg-green-600 mr-2"></div>
<span class="text-xs">Saudável (1,020)</span>
</div>
<div class="flex items-center px-2 py-1">
<div class="w-3 h-3 rounded-full bg-yellow-400 mr-2"></div>
<span class="text-xs">Moderado (158)</span>
</div>
<div class="flex items-center px-2 py-1">
<div class="w-3 h-3 rounded-full bg-red-500 mr-2"></div>
<span class="text-xs">Problemas (70)</span>
</div>
</div>
</div>
</div>
</div>
<!-- Recent Tasks -->
<div class="bg-white rounded-xl shadow-md p-6">
<h2 class="text-xl font-bold mb-6">Tarefas Recentes</h2>
<div class="space-y-4">
<div class="flex items-start">
<div class="p-2 rounded-lg bg-green-100 text-green-700 mr-4">
<i class="fas fa-tint"></i>
</div>
<div>
<h4 class="font-medium">Irrigação concluída</h4>
<p class="text-sm text-gray-500">Setor B - 15/06/2023 08:30</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-lg bg-blue-100 text-blue-700 mr-4">
<i class="fas fa-spray-can"></i>
</div>
<div>
<h4 class="font-medium">Pulverização agendada</h4>
<p class="text-sm text-gray-500">Para 17/06/2023 - Manhã</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-lg bg-yellow-100 text-yellow-700 mr-4">
<i class="fas fa-bug"></i>
</div>
<div>
<h4 class="font-medium">Praga detectada</h4>
<p class="text-sm text-gray-500">Ácaros no Setor A</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-lg bg-purple-100 text-purple-700 mr-4">
<i class="fas fa-apple-alt"></i>
</div>
<div>
<h4 class="font-medium">Colheita registrada</h4>
<p class="text-sm text-gray-500">320kg no Setor C</p>
</div>
</div>
<div class="flex items-start">
<div class="p-2 rounded-lg bg-red-100 text-red-700 mr-4">
<i class="fas fa-exclamation-triangle"></i>
</div>
<div>
<h4 class="font-medium">Árvore doente</h4>
<p class="text-sm text-gray-500">Cajueiro #45 - Setor B</p>
</div>
</div>
</div>
<button id="viewAllTasks" class="mt-6 w-full border border-gray-300 rounded-lg py-2 text-sm font-medium text-gray-600 hover:bg-gray-50">
Ver todas as tarefas
</button>
</div>
</div>
<!-- Season Calendar -->
<div class="bg-white rounded-xl shadow-md p-6 mb-8">
<h2 class="text-xl font-bold mb-6">Calendário de Estações</h2>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-200">
<th class="text-left pb-3 text-sm font-medium text-gray-500">Mês</th>
<th class="text-left pb-3 text-sm font-medium text-gray-500">Atividade</th>
<th class="text-left pb-3 text-sm font-medium text-gray-500">Cuidados</th>
<th class="text-left pb-3 text-sm font-medium text-gray-500">Produção</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200">
<tr>
<td class="py-3">Janeiro</td>
<td class="py-3">Floração inicial</td>
<td class="py-3">Monitorar pragas, irrigação moderada</td>
<td class="py-3 text-green-600 font-medium">0%</td>
</tr>
<tr>
<td class="py-3">Fevereiro</td>
<td class="py-3">Floração total</td>
<td class="py-3">Proteger de ventos, adubação</td>
<td class="py-3 text-green-600 font-medium">0%</td>
</tr>
<tr>
<td class="py-3">Março</td>
<td class="py-3">Formação de frutos</td>
<td class="py-3">Pulverização preventiva, irrigação</td>
<td class="py-3 text-green-600 font-medium">5%</td>
</tr>
<tr class="bg-yellow-50">
<td class="py-3 font-medium">Abril</td>
<td class="py-3">Desenvolvimento dos frutos</td>
<td class="py-3">Controle de pragas intensivo</td>
<td class="py-3 text-yellow-600 font-medium">15%</td>
</tr>
<tr class="bg-yellow-50">
<td class="py-3 font-medium">Maio</td>
<td class="py-3">Maturação inicial</td>
<td class="py-3">Monitoramento constante</td>
<td class="py-3 text-yellow-600 font-medium">30%</td>
</tr>
<tr class="bg-green-50">
<td class="py-3 font-medium">Junho</td>
<td class="py-3">Colheita inicial</td>
<td class="py-3">Colheita seletiva</td>
<td class="py-3 text-green-700 font-medium">50%</td>
</tr>
</tbody>
</table>
</div>
</div>
</main>
</div>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">Cajueiro Inteligente</h3>
<p class="text-gray-400">Sistema de gestão para produtores de caju com tecnologia avançada para maximizar a produção e qualidade.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Links</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Dashboard</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Meus Cajueiros</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Produção</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Relatórios</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Suporte</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Central de Ajuda</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Contato</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Documentação</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Notificações</h3>
<p class="text-gray-400 mb-4">Cadastre-se para receber alertas e dicas de cultivo:</p>
<div class="flex">
<input type="email" placeholder="Seu email" class="bg-gray-700 text-white px-4 py-2 rounded-l-lg focus:outline-none w-full">
<button class="bg-green-600 text-white px-4 py-2 rounded-r-lg"><i class="fas fa-paper-plane"></i></button>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400 text-sm">
<p>© 2023 Sistema Cajueiro Inteligente. Todos os direitos reservados.</p>
</div>
</div>
</footer>
<script>
document.addEventListener('DOMContentLoaded', function() {
// DOM Elements
const mobileMenuButton = document.getElementById('mobileMenuButton');
const navbar = document.querySelector('nav');
const addAreaButton = document.getElementById('addAreaButton');
const viewAllTasks = document.getElementById('viewAllTasks');
const timePeriodSelect = document.querySelector('.tree-chart + select');
const newsletterForm = document.querySelector('footer input[type="email"] + button');
const newsletterInput = document.querySelector('footer input[type="email"]');
// Update production chart animation
const circle = document.querySelector('.progress-ring__circle');
const radius = circle.r.baseVal.value;
const circumference = 2 * Math.PI * radius;
circle.style.strokeDasharray = `${circumference} ${circumference}`;
circle.style.strokeDashoffset = circumference;
const offset = circumference - (65 / 100) * circumference;
circle.style.strokeDashoffset = offset;
// Mobile menu toggle
mobileMenuButton.addEventListener('click', function() {
navbar.classList.toggle('hidden');
navbar.classList.toggle('flex');
navbar.classList.toggle('flex-col');
navbar.classList.toggle('absolute');
navbar.classList.toggle('top-20');
navbar.classList.toggle('right-4');
navbar.classList.toggle('bg-green-800');
navbar.classList.toggle('p-4');
navbar.classList.toggle('rounded-lg');
navbar.classList.toggle('space-y-4');
});
// Add new area button
addAreaButton.addEventListener('click', function() {
alert('Abrir modal de adição de nova área de cultivo');
// In a real app, this would open a modal/form to add new cultivation area
});
// View all tasks button
viewAllTasks.addEventListener('click', function() {
alert('Redirecionando para página completa de tarefas');
// Would navigate to tasks page in a real app
});
// Time period select change
timePeriodSelect.addEventListener('change', function() {
const period = this.value;
alert(`Atualizando gráficos para o período: ${period}`);
// Would fetch new data for selected period in a real app
});
// Newsletter subscription
newsletterForm.addEventListener('click', function() {
if(newsletterInput.value.includes('@')) {
alert(`Obrigado por se inscrever com: ${newsletterInput.value}`);
newsletterInput.value = '';
} else {
alert('Por favor insira um email válido');
}
});
// Navigation function
window.navigateTo = function(page) {
alert(`Navegando para: ${page}`);
// Would handle routing in a real app
};
// Simulating data updates
setInterval(() => {
// Random health fluctuation for demo
const healthElements = document.querySelectorAll('.leaf');
healthElements.forEach(leaf => {
const randomScale = 0.8 + Math.random() * 0.4;
leaf.style.transform = `scale(${randomScale})`;
});
}, 3000);
});
</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=aderso/tt" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |