Spaces:
Running
Running
File size: 31,299 Bytes
933f24f | 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 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | <!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ใจเกษตร Smart Farm - แพลตฟอร์มเกษตรอัจฉริยะ</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='50%' x='50%' font-size='50' text-anchor='middle'>🌱</text></svg>">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body class="bg-gray-50 font-[Prompt]">
<!-- Header -->
<header class="bg-green-600 text-white p-4 sticky top-0 z-40 shadow-lg">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-2">
<div class="w-10 h-10 bg-white rounded-full flex items-center justify-center">
<span class="text-green-600 text-xl">🌱</span>
</div>
<h1 class="text-xl font-bold">ใจเกษตร</h1>
</div>
<div class="flex items-center space-x-4">
<button class="relative" onclick="showNotifications()">
<i data-feather="bell" class="w-6 h-6"></i>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</button>
<button onclick="showProfile()">
<div class="w-8 h-8 bg-green-500 rounded-full flex items-center justify-center">
<i data-feather="user" class="w-5 h-5"></i>
</div>
</button>
</div>
</div>
</header>
<!-- Main Content -->
<main class="pb-20 min-h-screen">
<!-- Tab 1: วิเคราะห์ผลผลิตต่อไร่ -->
<div id="tab1" class="tab-content p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">📊 วิเคราะห์ผลผลิตต่อไร่</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">ข้อมูลพืชปัจจุบัน</h3>
<div class="space-y-2">
<div class="flex justify-between">
<span class="text-gray-600">ชนิดพืช:</span>
<span class="font-medium">🌽 ข้าวโพดหวาน</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">พื้นที่:</span>
<span class="font-medium">5 ไร่</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">ผลผลิตเฉลี่ยปีที่แล้ว:</span>
<span class="font-medium">3.2 ตัน</span>
</div>
<div class="flex justify-between">
<span class="text-gray-600">คาดการณ์ปีนี้:</span>
<span class="font-medium text-green-600">4.6 ตัน ↑43%</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">กราฟเปรียบเทียบผลผลิต (ตัน/ไร่)</h3>
<canvas id="yieldChart" width="400" height="200"></canvas>
</div>
<button onclick="calculateYield()" class="w-full bg-green-600 text-white py-3 rounded-lg font-medium hover:bg-green-700 transition">
คำนวณผลผลิตใหม่
</button>
</div>
<!-- Tab 2: วิเคราะห์การประหยัดต้นทุน -->
<div id="tab2" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">💰 วิเคราะห์การประหยัดต้นทุน</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">เปรียบเทียบต้นทุนต่อไร่</h3>
<div class="space-y-3">
<div class="flex justify-between items-center p-3 bg-red-50 rounded">
<span class="text-gray-700">ปุ๋ยเคมีเดิม:</span>
<span class="font-bold text-red-600">2,500 บาท/ไร่</span>
</div>
<div class="flex justify-between items-center p-3 bg-green-50 rounded">
<span class="text-gray-700">ใจเกษตร:</span>
<span class="font-bold text-green-600">790 บาท/ไร่</span>
</div>
<div class="flex justify-between items-center p-3 bg-blue-50 rounded border-2 border-blue-200">
<span class="text-gray-700 font-semibold">ประหยัดได้:</span>
<span class="font-bold text-blue-600">1,710 บาท/ไร่</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">สรุปการประหยัดรวม (5 ไร่)</h3>
<div class="text-center">
<div class="text-3xl font-bold text-green-600">8,550 บาท</div>
<div class="text-gray-600 mt-2">ROI: คืนทุนภายใน 1 ฤดูกาล</div>
</div>
<canvas id="costChart" width="400" height="200" class="mt-4"></canvas>
</div>
</div>
<!-- Tab 3: ราคาตลาดพืชสด -->
<div id="tab3" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">📈 ราคาตลาดพืชสด (เรียลไทม์)</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">ราคาพืชยอดนิยมวันนี้</h3>
<div class="space-y-3">
<div class="flex justify-between items-center p-3 border rounded">
<div>
<span class="font-medium">ข้าวหอมมะลิ</span>
<span class="text-xs text-gray-500 block">ตลาดกลาง</span>
</div>
<div class="text-right">
<div class="font-bold">14,500 บ./ตัน</div>
<span class="text-green-600 text-sm">↑ 2.3%</span>
</div>
</div>
<div class="flex justify-between items-center p-3 border rounded">
<div>
<span class="font-medium">มะม่วงน้ำดอกไม้</span>
<span class="text-xs text-gray-500 block">ตลาดสด</span>
</div>
<div class="text-right">
<div class="font-bold">35 บ./กก.</div>
<span class="text-red-600 text-sm">↓ 1.2%</span>
</div>
</div>
<div class="flex justify-between items-center p-3 border rounded">
<div>
<span class="font-medium">ข้าวโพดหวาน</span>
<span class="text-xs text-gray-500 block">ตลาดกลาง</span>
</div>
<div class="text-right">
<div class="font-bold">6.5 บ./กก.</div>
<span class="text-gray-600 text-sm">—</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">กราฟราคา 30 วันย้อนหลัง</h3>
<canvas id="priceChart" width="400" height="200"></canvas>
</div>
<button onclick="viewNationalPrices()" class="w-full bg-blue-600 text-white py-3 rounded-lg font-medium hover:bg-blue-700 transition">
ดูราคาทั้งประเทศ
</button>
</div>
<!-- Tab 4: แผนรอบการปลูกพืช -->
<div id="tab4" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">🗓️ แผนรอบการปลูกพืช</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">เลือกพืชและวางแผน</h3>
<div class="space-y-3">
<select class="w-full p-3 border rounded-lg">
<option>🌾 ข้าว</option>
<option>🌽 ข้าวโพด</option>
<option>🍅 มะเขือเทศ</option>
<option>🥬 ผักใบเขียว</option>
</select>
<input type="date" value="2024-11-01" class="w-full p-3 border rounded-lg">
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4">
<h3 class="font-semibold text-lg mb-3">แผนการปลูก</h3>
<div class="space-y-3">
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-green-500 rounded-full"></div>
<div class="flex-1">
<div class="font-medium">เตรียมดิน</div>
<div class="text-sm text-gray-600">1–5 พ.ย. 2024</div>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-blue-500 rounded-full"></div>
<div class="flex-1">
<div class="font-medium">ปลูก</div>
<div class="text-sm text-gray-600">6–10 พ.ย. 2024</div>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-yellow-500 rounded-full"></div>
<div class="flex-1">
<div class="font-medium">ดูแลรักษา</div>
<div class="text-sm text-gray-600">11 พ.ย.–15 ธ.ค. 2024</div>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-red-500 rounded-full"></div>
<div class="flex-1">
<div class="font-medium">เก็บเกี่ยว</div>
<div class="text-sm text-gray-600">20 ม.ค. 2025</div>
</div>
</div>
</div>
</div>
</div>
<!-- Tab 5: Crop Cycle -->
<div id="tab5" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">🌱 Crop Cycle รายพืช</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">วงจรการเจริญเติบโตข้าวโพด</h3>
<div class="space-y-4">
<div class="flex items-center space-x-3">
<span class="text-2xl">🚜</span>
<div class="flex-1">
<div class="font-medium">เตรียมดิน</div>
<div class="text-sm text-gray-600">วันที่ 1-5</div>
</div>
</div>
<div class="flex items-center space-x-3">
<span class="text-2xl">🌱</span>
<div class="flex-1">
<div class="font-medium">หยอดเมล็ด</div>
<div class="text-sm text-gray-600">วันที่ 6-7</div>
</div>
</div>
<div class="flex items-center space-x-3">
<span class="text-2xl">🌞</span>
<div class="flex-1">
<div class="font-medium">ให้น้ำและแสง</div>
<div class="text-sm text-gray-600">วันที่ 8-30</div>
</div>
</div>
<div class="flex items-center space-x-3">
<span class="text-2xl">🧪</span>
<div class="flex-1">
<div class="font-medium">ฉีดใจเกษตร</div>
<div class="text-sm text-gray-600">ช่วงที่ 1, 2, 3</div>
<div class="text-xs text-green-600 mt-1">- ช่วงที่ 1: 10 ลิตร/ไร่</div>
<div class="text-xs text-green-600">- ช่วงที่ 2: 15 ลิตร/ไร่</div>
<div class="text-xs text-green-600">- ช่วงที่ 3: 20 ลิตร/ไร่</div>
</div>
</div>
<div class="flex items-center space-x-3">
<span class="text-2xl">🧺</span>
<div class="flex-1">
<div class="font-medium">เก็บเกี่ยว</div>
<div class="text-sm text-gray-600">วันที่ 90-95</div>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<img src="http://static.photos/agriculture/640x360/123" alt="Crop Cycle" class="w-full rounded-lg mb-3">
<table class="w-full text-sm">
<thead>
<tr class="border-b">
<th class="text-left py-2">ระยะ</th>
<th class="text-center py-2">ใจเกษตร (ลิตร)</th>
<th class="text-center py-2">วันที่ฉีด</th>
</tr>
</thead>
<tbody>
<tr class="border-b">
<td class="py-2">ช่วงที่ 1</td>
<td class="text-center py-2">10</td>
<td class="text-center py-2">วันที่ 20</td>
</tr>
<tr class="border-b">
<td class="py-2">ช่วงที่ 2</td>
<td class="text-center py-2">15</td>
<td class="text-center py-2">วันที่ 45</td>
</tr>
<tr>
<td class="py-2">ช่วงที่ 3</td>
<td class="text-center py-2">20</td>
<td class="text-center py-2">วันที่ 70</td>
</tr>
</tbody>
</table>
</div>
<button onclick="downloadPDF()" class="w-full bg-green-600 text-white py-3 rounded-lg font-medium hover:bg-green-700 transition">
ดาวน์โหลดเป็น PDF
</button>
</div>
<!-- Tab 6: ตลาดเกษตรกร -->
<div id="tab6" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">🛍️ ตลาดเกษตรกร</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">ฝากขายผลผลิต</h3>
<div class="space-y-3">
<div class="border rounded-lg p-3">
<div class="flex justify-between items-start mb-2">
<div>
<span class="font-medium">มะละกอ</span>
<span class="bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded ml-2">รอจับคู่</span>
</div>
<span class="text-green-600 font-bold">18 บ./กก.</span>
</div>
<div class="text-sm text-gray-600">ปริมาณ: 600 กก. | วันที่: 15 พ.ย. 2024</div>
<div class="flex space-x-2 mt-2">
<button class="text-sm bg-blue-600 text-white px-3 py-1 rounded">แก้ไข</button>
<button class="text-sm bg-red-600 text-white px-3 py-1 rounded">ลบ</button>
</div>
</div>
</div>
<button onclick="addProduct()" class="w-full bg-green-600 text-white py-2 rounded-lg font-medium mt-3 hover:bg-green-700 transition">
+ เพิ่มผลผลิตใหม่
</button>
</div>
<div class="bg-white rounded-lg shadow-md p-4">
<h3 class="font-semibold text-lg mb-3">รวมสินค้าชุมชน</h3>
<div class="space-y-3">
<div class="border rounded-lg p-3">
<div class="flex justify-between items-center">
<div>
<span class="font-medium">ข้าวอินทรีย์บ้านท่าไม้</span>
<div class="text-sm text-gray-600">จ.นครสวรรค์ | มี 10 รายการ</div>
</div>
<button class="text-sm bg-blue-600 text-white px-3 py-1 rounded">สนใจ</button>
</div>
</div>
<div class="border rounded-lg p-3">
<div class="flex justify-between items-center">
<div>
<span class="font-medium">ผักรวมปลอดสาร GAP</span>
<div class="text-sm text-gray-600">จ.เชียงใหม่ | มี 25 รายการ</div>
</div>
<button class="text-sm bg-blue-600 text-white px-3 py-1 rounded">สนใจ</button>
</div>
</div>
</div>
</div>
</div>
<!-- Tab 7: สมัครเป็น BioAgri Coach -->
<div id="tab7" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">🤝 สมัครเป็น BioAgri Coach</h2>
<div class="bg-gradient-to-r from-green-500 to-green-600 text-white rounded-lg shadow-lg p-6 mb-4">
<h3 class="text-xl font-bold mb-3">เข้าร่วมเป็นนักดูแลดิน!</h3>
<div class="space-y-2 mb-4">
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>รับส่วนลดใจเกษตรพิเศษ</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>รายได้จากการแนะนำฟาร์มอื่น</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>อบรมฟรีพร้อม Certificate</span>
</div>
<div class="flex items-center space-x-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>Dashboard ติดตามพื้นที่อัจฉริยะ</span>
</div>
</div>
<button onclick="becomeCoach()" class="w-full bg-white text-green-600 py-3 rounded-lg font-bold hover:bg-gray-100 transition">
เริ่มต้นเป็นนักดูแลดิน
</button>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">ผลงานของคุณ</h3>
<div class="grid grid-cols-2 gap-4">
<div class="text-center p-4 bg-green-50 rounded">
<div class="text-2xl font-bold text-green-600">15 ไร่</div>
<div class="text-sm text-gray-600">ดูแลพื้นที่แล้ว</div>
</div>
<div class="text-center p-4 bg-blue-50 rounded">
<div class="text-2xl font-bold text-blue-600">12,800 บ.</div>
<div class="text-sm text-gray-600">รายได้รวม</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4">
<h3 class="font-semibold text-lg mb-3">ฟาร์มที่คุณดูแล</h3>
<div class="space-y-2">
<div class="flex justify-between items-center p-2 border rounded">
<span>ฟาร์มสุรชัย</span>
<span class="text-green-600 text-sm">ดูแล 5 ไร่</span>
</div>
<div class="flex justify-between items-center p-2 border rounded">
<span>ฟาร์มมาลี</span>
<span class="text-green-600 text-sm">ดูแล 3 ไร่</span>
</div>
</div>
</div>
</div>
<!-- Tab 8: โปรไฟล์ผู้ใช้งาน -->
<div id="tab8" class="tab-content hidden p-4">
<h2 class="text-2xl font-bold text-green-800 mb-4">👤 โปรไฟล์ผู้ใช้งาน</h2>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<div class="flex items-center space-x-4 mb-4">
<div class="w-20 h-20 bg-green-500 rounded-full flex items-center justify-center">
<i data-feather="user" class="w-12 h-12 text-white"></i>
</div>
<div>
<h3 class="text-xl font-bold">สมชาย ใจดี</h3>
<p class="text-gray-600">เกษตรกรระดับทอง</p>
</div>
</div>
<div class="space-y-3">
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<span class="text-gray-700">📊 แปลงที่ดูแล</span>
<span class="font-bold text-green-600">5 แปลง</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<span class="text-gray-700">🌾 พืชหลัก</span>
<span class="font-medium">ข้าวโพด, ทุเรียน, มะเขือเทศ</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<span class="text-gray-700">🧪 ใจเกษตรใช้แล้ว</span>
<span class="font-bold text-green-600">85 ลิตร</span>
</div>
<div class="flex justify-between items-center p-3 bg-gray-50 rounded">
<span class="text-gray-700">⭐ คะแนนสะสม</span>
<span class="font-bold text-yellow-600">1,750 แต้ม</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg shadow-md p-4 mb-4">
<h3 class="font-semibold text-lg mb-3">ความสำเร็จ</h3>
<div class="flex space-x-4 overflow-x-auto">
<div class="flex-shrink-0 text-center">
<div class="text-3xl mb-1">🏆</div>
<div class="text-xs">เกษตรกรตัวอย่าง</div>
</div>
<div class="flex-shrink-0 text-center">
<div class="text-3xl mb-1">🌱</div>
<div class="text-xs">เกษตรอินทรีย์</div>
</div>
<div class="flex-shrink-0 text-center">
<div class="text-3xl mb-1">💚</div>
<div class="text-xs">พลังงานสะอาด</div>
</div>
<div class="flex-shrink-0 text-center">
<div class="text-3xl mb-1">📈</div>
<div class="text-xs">ผลผลิตเกินเป้า</div>
</div>
</div>
</div>
<div class="space-y-2">
<button class="w-full bg-gray-100 text-gray-700 py-2 rounded-lg font-medium hover:bg-gray-200 transition">
แก้ไขข้อมูลส่วนตัว
</button>
<button class="w-full bg-gray-100 text-gray-700 py-2 rounded-lg font-medium hover:bg-gray-200 transition">
ประวัติการซื้อ
</button>
<button class="w-full bg-gray-100 text-gray-700 py-2 rounded-lg font-medium hover:bg-gray-200 transition">
ติดต่อฝ่ายสนับสนุน
</button>
<button class="w-full bg-red-600 text-white py-2 rounded-lg font-medium hover:bg-red-700 transition">
ออกจากระบบ
</button>
</div>
</div>
</main>
<!-- Bottom Navigation -->
<nav class="fixed bottom-0 left-0 right-0 bg-white border-t shadow-lg z-40">
<div class="flex justify-around items-center py-2">
<button onclick="switchTab(1)" class="nav-btn flex flex-col items-center p-2 text-green-600" data-tab="1">
<i data-feather="home" class="w-6 h-6"></i>
<span class="text-xs mt-1">หน้าแรก</span>
</button>
<button onclick="switchTab(2)" class="nav-btn flex flex-col items-center p-2 text-gray-600" data-tab="2">
<i data-feather="trending-up" class="w-6 h-6"></i>
<span class="text-xs mt-1">ผลผลิต</span>
</button>
<button onclick="switchTab(6)" class="nav-btn flex flex-col items-center p-2 text-gray-600" data-tab="6">
<i data-feather="shopping-cart" class="w-6 h-6"></i>
<span class="text-xs mt-1">ตลาด</span>
</button>
<button onclick="switchTab(4)" class="nav-btn flex flex-col items-center p-2 text-gray-600" data-tab="4">
<i data-feather="calendar" class="w-6 h-6"></i>
<span class="text-xs mt-1">แผนปลูก</span>
</button>
<button onclick="switchTab(8)" class="nav-btn flex flex-col items-center p-2 text-gray-600" data-tab="8">
<i data-feather="user" class="w-6 h-6"></i>
<span class="text-xs mt-1">โปรไฟล์</span>
</button>
</div>
</nav>
<!-- Notification Modal -->
<div id="notificationModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden flex items-center justify-center">
<div class="bg-white rounded-lg p-6 m-4 max-w-sm w-full">
<h3 class="text-lg font-bold mb-3">การแจ้งเตือน</h3>
<div class="space-y-2">
<div class="p-3 bg-blue-50 rounded">
<div class="font-medium">📈 ราคาข้าวโพดขึ้น 2.3%</div>
<div class="text-sm text-gray-600">2 ชั่วโมงที่แล้ว</div>
</div>
<div class="p-3 bg-green-50 rounded">
<div class="font-medium">🌱 ถึงเวลาฉีดใจเกษตรช่วงที่ 2</div>
<div class="text-sm text-gray-600">วันนี้ 10:00</div>
</div>
<div class="p-3 bg-yellow-50 rounded">
<div class="font-medium">🌧️ พยากรณ์ฝนตกใน 3 วันข้างหน้า</div>
<div class="text-sm text-gray-600">เมื่อวานนี้</div>
</div>
</div>
<button onclick="closeNotifications()" class="w-full mt-4 bg-green-600 text-white py-2 rounded-lg">
ปิด
</button>
</div>
</div>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html> |