File size: 53,060 Bytes
054c6a2 |
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 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Earth REC - Geospatial AI Platform</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>
.map-container {
background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
position: relative;
overflow: hidden;
}
.grid-points {
position: absolute;
width: 100%;
height: 100%;
background-image:
linear-gradient(rgba(0,0,0,0.1) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px);
background-size: 20px 20px;
}
.tool-icon {
transition: all 0.3s ease;
}
.tool-icon:hover {
transform: scale(1.1);
background-color: rgba(255,255,255,0.2);
}
.ai-message {
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.project-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}
.layer-item:hover {
background-color: rgba(255,255,255,0.1);
}
.analysis-panel {
transition: all 0.3s ease;
}
.analysis-panel:hover {
box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
</style>
</head>
<body class="bg-gray-50 text-gray-800 font-sans">
<!-- Main App Container -->
<div class="flex flex-col h-screen">
<!-- Top Navigation Bar -->
<header class="bg-white shadow-sm z-10">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center space-x-4">
<div class="flex items-center">
<i class="fas fa-globe-americas text-blue-500 text-2xl mr-2"></i>
<h1 class="text-xl font-bold text-blue-600">Earth REC</h1>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="text-blue-600 font-medium border-b-2 border-blue-600 pb-1">Map</a>
<a href="#" class="text-gray-600 hover:text-blue-600">Analysis</a>
<a href="#" class="text-gray-600 hover:text-blue-600">Projects</a>
<a href="#" class="text-gray-600 hover:text-blue-600">Data</a>
</nav>
</div>
<div class="flex items-center space-x-4">
<div class="relative hidden md:block">
<input type="text" placeholder="Search locations, datasets..."
class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 w-64">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<button class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-bell text-gray-600"></i>
</button>
<div class="relative">
<button class="flex items-center space-x-2 focus:outline-none">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white font-medium">JD</div>
<i class="fas fa-chevron-down text-gray-600 text-xs"></i>
</button>
</div>
</div>
</div>
<!-- Breadcrumbs -->
<div class="px-4 py-2 bg-gray-50 text-sm border-t border-gray-200">
<div class="flex items-center space-x-2 text-gray-600">
<a href="#" class="hover:text-blue-600">Home</a>
<i class="fas fa-chevron-right text-xs"></i>
<span class="text-blue-600">Map View</span>
</div>
</div>
</header>
<!-- Main Content Area -->
<div class="flex flex-1 overflow-hidden">
<!-- Left Toolbar -->
<div class="w-16 bg-white border-r border-gray-200 flex flex-col items-center py-4 space-y-6">
<div class="tool-icon p-2 rounded-lg cursor-pointer text-blue-600 bg-blue-50" title="Navigation Tools">
<i class="fas fa-compass text-xl"></i>
</div>
<div class="tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Data Tools">
<i class="fas fa-database text-xl"></i>
</div>
<div class="tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Analysis Tools">
<i class="fas fa-chart-bar text-xl"></i>
</div>
<div class="tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Visualization Tools">
<i class="fas fa-paint-brush text-xl"></i>
</div>
<div class="border-t border-gray-200 w-8 my-2"></div>
<div class="tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Projects">
<i class="fas fa-folder text-xl"></i>
</div>
<div class="tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Settings">
<i class="fas fa-cog text-xl"></i>
</div>
<div class="mt-auto tool-icon p-2 rounded-lg cursor-pointer text-gray-600 hover:text-blue-600" title="Help">
<i class="fas fa-question-circle text-xl"></i>
</div>
</div>
<!-- Expanded Left Panel (Tools) -->
<div class="w-64 bg-white border-r border-gray-200 overflow-y-auto">
<div class="p-4 border-b border-gray-200">
<h3 class="font-medium text-gray-700">Navigation Tools</h3>
</div>
<div class="space-y-1 p-2">
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-search-plus text-blue-500 mr-3"></i>
<span>Zoom In</span>
</div>
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-search-minus text-blue-500 mr-3"></i>
<span>Zoom Out</span>
</div>
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-arrows-alt text-blue-500 mr-3"></i>
<span>Pan</span>
</div>
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-bookmark text-blue-500 mr-3"></i>
<span>Bookmarks</span>
</div>
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-ruler-combined text-blue-500 mr-3"></i>
<span>Measure Distance</span>
</div>
<div class="flex items-center p-2 rounded hover:bg-blue-50 cursor-pointer">
<i class="fas fa-ruler text-blue-500 mr-3"></i>
<span>Measure Area</span>
</div>
</div>
<div class="p-4 border-t border-b border-gray-200">
<h3 class="font-medium text-gray-700">Layers</h3>
</div>
<div class="space-y-2 p-2">
<div class="flex items-center justify-between p-2 rounded hover:bg-blue-50 cursor-pointer">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-blue-500 mr-3"></div>
<span>Base Map</span>
</div>
<i class="fas fa-eye text-blue-500"></i>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-blue-50 cursor-pointer">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-500 mr-3"></div>
<span>Land Use</span>
</div>
<i class="fas fa-eye text-blue-500"></i>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-blue-50 cursor-pointer">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-red-500 mr-3"></div>
<span>Population Density</span>
</div>
<i class="fas fa-eye-slash text-gray-400"></i>
</div>
<div class="flex items-center justify-between p-2 rounded hover:bg-blue-50 cursor-pointer">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-yellow-500 mr-3"></div>
<span>Transportation</span>
</div>
<i class="fas fa-eye text-blue-500"></i>
</div>
</div>
<div class="p-4 border-t border-b border-gray-200">
<button class="w-full bg-blue-600 text-white py-2 rounded-lg hover:bg-blue-700 transition">
<i class="fas fa-plus mr-2"></i> Add Layer
</button>
</div>
</div>
<!-- Main Map Area -->
<div class="flex-1 flex flex-col">
<div class="map-container flex-1 relative">
<div class="grid-points"></div>
<!-- Map Controls -->
<div class="absolute top-4 right-4 bg-white rounded-lg shadow-md p-2 z-20">
<div class="flex flex-col space-y-2">
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-plus text-gray-600"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-minus text-gray-600"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i class="fas fa-home text-gray-600"></i>
</button>
</div>
</div>
<!-- Selection Rectangle (example) -->
<div class="absolute border-2 border-blue-500 bg-blue-100 bg-opacity-20 z-10"
style="left: 30%; top: 25%; width: 200px; height: 150px;"></div>
<!-- Map Legend -->
<div class="absolute bottom-4 left-4 bg-white rounded-lg shadow-md p-3 z-20 max-w-xs">
<h4 class="font-medium text-gray-700 mb-2">Map Legend</h4>
<div class="space-y-2">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-blue-500 mr-2"></div>
<span class="text-sm">Water Bodies</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-green-500 mr-2"></div>
<span class="text-sm">Forest Areas</span>
</div>
<div class="flex items-center">
<div class="w-4 h-4 rounded-full bg-gray-500 mr-2"></div>
<span class="text-sm">Urban Areas</span>
</div>
</div>
</div>
</div>
<!-- Bottom Status Bar -->
<div class="bg-white border-t border-gray-200 px-4 py-2 flex items-center justify-between text-sm">
<div class="flex items-center space-x-4">
<div class="flex items-center">
<i class="fas fa-map-marker-alt text-blue-500 mr-2"></i>
<span>Center: 34.0522° N, 118.2437° W</span>
</div>
<div class="flex items-center">
<i class="fas fa-expand text-blue-500 mr-2"></i>
<span>Zoom: 12</span>
</div>
</div>
<div>
<span class="text-gray-500">Coordinate System: WGS 84</span>
</div>
</div>
</div>
<!-- Right AI Sidebar -->
<div class="w-80 bg-white border-l border-gray-200 flex flex-col">
<div class="p-4 border-b border-gray-200">
<div class="flex items-center justify-between">
<h3 class="font-medium text-gray-700">GeoAI Assistant</h3>
<div class="relative">
<select class="appearance-none bg-blue-50 text-blue-600 text-sm font-medium px-3 py-1 pr-6 rounded-full focus:outline-none">
<option>Analyst</option>
<option>Planner</option>
<option>Explorer</option>
<option>Teacher</option>
</select>
<i class="fas fa-chevron-down absolute right-2 top-1.5 text-blue-600 text-xs pointer-events-none"></i>
</div>
</div>
</div>
<!-- Spatial Memory -->
<div class="p-3 bg-blue-50 border-b border-blue-100">
<h4 class="text-xs font-medium text-blue-700 mb-1">SPATIAL MEMORY</h4>
<div class="flex space-x-2 overflow-x-auto pb-1">
<div class="flex-shrink-0 w-16 h-16 bg-blue-100 rounded border border-blue-200 flex items-center justify-center">
<i class="fas fa-map-marker-alt text-blue-500"></i>
</div>
<div class="flex-shrink-0 w-16 h-16 bg-blue-100 rounded border border-blue-200 flex items-center justify-center">
<i class="fas fa-chart-line text-blue-500"></i>
</div>
<div class="flex-shrink-0 w-16 h-16 bg-blue-100 rounded border border-blue-200 flex items-center justify-center">
<i class="fas fa-layer-group text-blue-500"></i>
</div>
</div>
</div>
<!-- AI Conversation -->
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="ai-message">
<div class="flex items-start mb-2">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
<i class="fas fa-robot text-blue-500"></i>
</div>
<div class="flex-1">
<div class="bg-blue-50 rounded-lg p-3">
<p class="text-sm">I see you've selected an area in downtown Los Angeles. Would you like me to analyze:</p>
<ul class="list-disc pl-5 mt-2 text-sm space-y-1">
<li>Land use patterns in this area</li>
<li>Population density statistics</li>
<li>Transportation accessibility</li>
</ul>
</div>
<div class="flex space-x-2 mt-2">
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">Land Use</button>
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">Population</button>
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">Transport</button>
</div>
</div>
</div>
</div>
<div class="ai-message">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center mr-2">
<i class="fas fa-user text-gray-500"></i>
</div>
<div class="flex-1">
<div class="bg-gray-100 rounded-lg p-3">
<p class="text-sm">Show me land use patterns with transportation overlay</p>
</div>
</div>
</div>
</div>
<div class="ai-message">
<div class="flex items-start mb-2">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
<i class="fas fa-robot text-blue-500"></i>
</div>
<div class="flex-1">
<div class="bg-blue-50 rounded-lg p-3">
<p class="text-sm">Here's the land use analysis for your selected area (2.3 sq mi):</p>
<div class="mt-2">
<div class="flex items-center justify-between text-xs mb-1">
<span>Residential</span>
<span class="font-medium">42%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5">
<div class="bg-blue-500 h-1.5 rounded-full" style="width: 42%"></div>
</div>
</div>
<div class="mt-2">
<div class="flex items-center justify-between text-xs mb-1">
<span>Commercial</span>
<span class="font-medium">28%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5">
<div class="bg-green-500 h-1.5 rounded-full" style="width: 28%"></div>
</div>
</div>
<div class="mt-2">
<div class="flex items-center justify-between text-xs mb-1">
<span>Industrial</span>
<span class="font-medium">15%</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-1.5">
<div class="bg-yellow-500 h-1.5 rounded-full" style="width: 15%"></div>
</div>
</div>
<div class="mt-3">
<p class="text-xs text-gray-600">Transportation overlay shows high accessibility with 3 metro stations and 12 bus routes in this area.</p>
</div>
</div>
<div class="flex space-x-2 mt-2">
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">
<i class="fas fa-chart-pie mr-1"></i> More Stats
</button>
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">
<i class="fas fa-map-marked-alt mr-1"></i> Show on Map
</button>
</div>
</div>
</div>
</div>
</div>
<!-- Input Area -->
<div class="p-4 border-t border-gray-200">
<div class="relative">
<textarea class="w-full border border-gray-300 rounded-lg pl-4 pr-10 py-3 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 resize-none"
placeholder="Ask the GeoAI about this area..." rows="2"></textarea>
<div class="absolute right-2 bottom-3 flex space-x-1">
<button class="p-1 text-gray-500 hover:text-blue-500">
<i class="fas fa-paperclip"></i>
</button>
<button class="p-1 text-gray-500 hover:text-blue-500">
<i class="fas fa-microphone"></i>
</button>
<button class="p-1 text-blue-500">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Analysis Dashboard (Hidden by default) -->
<div id="analysis-dashboard" class="fixed inset-0 bg-white z-50 hidden">
<div class="flex flex-col h-full">
<header class="bg-white shadow-sm z-10">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center space-x-4">
<button onclick="toggleDashboard()" class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-arrow-left text-gray-600"></i>
</div>
<h2 class="text-lg font-medium">Land Use Analysis - Downtown Los Angeles</h2>
</div>
<div class="flex items-center space-x-2">
<button class="px-3 py-1 border border-gray-300 rounded-lg hover:bg-gray-50">
<i class="fas fa-download mr-2"></i> Export
</button>
<button class="px-3 py-1 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
<i class="fas fa-share-alt mr-2"></i> Share
</button>
</div>
</div>
</header>
<div class="flex-1 overflow-hidden">
<div class="grid grid-cols-12 grid-rows-6 gap-4 p-4 h-full">
<!-- Main Map -->
<div class="col-span-8 row-span-4 bg-gray-100 rounded-lg overflow-hidden relative">
<div class="map-container w-full h-full">
<div class="grid-points"></div>
</div>
<div class="absolute bottom-4 left-4 bg-white rounded-lg shadow-md p-3 z-20">
<h4 class="font-medium text-gray-700 mb-2">Land Use Classification</h4>
<div class="space-y-1">
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-blue-500 mr-2"></div>
<span class="text-xs">Residential</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-green-500 mr-2"></div>
<span class="text-xs">Commercial</span>
</div>
<div class="flex items-center">
<div class="w-3 h-3 rounded-full bg-yellow-500 mr-2"></div>
<span class="text-xs">Industrial</span>
</div>
</div>
</div>
</div>
<!-- Pie Chart -->
<div class="col-span-4 row-span-2 bg-white rounded-lg shadow-sm p-4 analysis-panel">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">Land Use Distribution</h3>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="flex justify-center">
<div class="w-32 h-32 rounded-full border-8 border-blue-500 border-t-green-500 border-r-yellow-500 border-b-purple-500 flex items-center justify-center">
<div class="text-center">
<div class="text-xs text-gray-500">Total</div>
<div class="font-medium">2.3 sq mi</div>
</div>
</div>
</div>
<div class="mt-4 space-y-2">
<div class="flex items-center justify-between text-sm">
<div class="flex items-center">
<div class="w-2 h-2 rounded-full bg-blue-500 mr-2"></div>
<span>Residential</span>
</div>
<span class="font-medium">42%</span>
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center">
<div class="w-2 h-2 rounded-full bg-green-500 mr-2"></div>
<span>Commercial</span>
</div>
<span class="font-medium">28%</span>
</div>
<div class="flex items-center justify-between text-sm">
<div class="flex items-center">
<div class="w-2 h-2 rounded-full bg-yellow-500 mr-2"></div>
<span>Industrial</span>
</div>
<span class="font-medium">15%</span>
</div>
</div>
</div>
<!-- Bar Chart -->
<div class="col-span-4 row-span-2 bg-white rounded-lg shadow-sm p-4 analysis-panel">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">Population Density</h3>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="h-40">
<div class="flex items-end h-32 space-x-2">
<div class="flex-1 bg-blue-500 rounded-t" style="height: 70%"></div>
<div class="flex-1 bg-blue-500 rounded-t" style="height: 85%"></div>
<div class="flex-1 bg-blue-500 rounded-t" style="height: 60%"></div>
<div class="flex-1 bg-blue-500 rounded-t" style="height: 45%"></div>
<div class="flex-1 bg-blue-500 rounded-t" style="height: 75%"></div>
</div>
<div class="flex justify-between text-xs text-gray-500 mt-1">
<span>2018</span>
<span>2019</span>
<span>2020</span>
<span>2021</span>
<span>2022</span>
</div>
</div>
<div class="mt-2 text-sm text-gray-600">
<i class="fas fa-info-circle text-blue-500 mr-1"></i> 12% increase since 2018
</div>
</div>
<!-- AI Insights -->
<div class="col-span-8 row-span-2 bg-white rounded-lg shadow-sm p-4 analysis-panel">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">AI Insights</h3>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="text-sm space-y-3">
<p>The selected area shows a typical urban land use pattern with high-density residential zones concentrated around commercial corridors. The transportation accessibility score (0.87) is well above the city average (0.62).</p>
<p>Notable observations:</p>
<ul class="list-disc pl-5 space-y-1">
<li>Commercial areas are primarily along major thoroughfares</li>
<li>Industrial zones are concentrated in the southeast quadrant</li>
<li>Public transit coverage is excellent with 95% of residential areas within 0.5mi of a transit stop</li>
</ul>
</div>
</div>
<!-- Transportation Stats -->
<div class="col-span-4 row-span-2 bg-white rounded-lg shadow-sm p-4 analysis-panel">
<div class="flex items-center justify-between mb-3">
<h3 class="font-medium">Transportation</h3>
<button class="text-gray-400 hover:text-gray-600">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
<div class="space-y-4">
<div>
<div class="flex items-center justify-between text-sm mb-1">
<span class="text-gray-600">Transit Score</span>
<span class="font-medium">87/100</span>
</div>
<div class="w-full bg-gray-200 rounded-full h-2">
<div class="bg-green-500 h-2 rounded-full" style="width: 87%"></div>
</div>
</div>
<div class="grid grid-cols-2 gap-2">
<div class="bg-blue-50 p-2 rounded text-center">
<div class="text-blue-600 font-medium">3</div>
<div class="text-xs text-gray-600">Metro Stations</div>
</div>
<div class="bg-green-50 p-2 rounded text-center">
<div class="text-green-600 font-medium">12</div>
<div class="text-xs text-gray-600">Bus Routes</div>
</div>
<div class="bg-yellow-50 p-2 rounded text-center">
<div class="text-yellow-600 font-medium">4.2</div>
<div class="text-xs text-gray-600">Avg. Walk Score</div>
</div>
<div class="bg-purple-50 p-2 rounded text-center">
<div class="text-purple-600 font-medium">15</div>
<div class="text-xs text-gray-600">Bike Stations</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Projects Page (Hidden by default) -->
<div id="projects-page" class="fixed inset-0 bg-white z-50 hidden">
<div class="flex flex-col h-full">
<header class="bg-white shadow-sm z-10">
<div class="flex items-center justify-between px-4 py-3">
<div class="flex items-center space-x-4">
<button onclick="toggleProjects()" class="p-2 rounded-full hover:bg-gray-100">
<i class="fas fa-arrow-left text-gray-600"></i>
</div>
<h2 class="text-lg font-medium">My Projects</h2>
</div>
<div class="flex items-center space-x-2">
<div class="relative">
<input type="text" placeholder="Search projects..."
class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 w-64">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<button class="px-3 py-1 bg-blue-600 text-white rounded-lg hover:bg-blue-700">
<i class="fas fa-plus mr-2"></i> New Project
</button>
</div>
</div>
<!-- Project Categories -->
<div class="px-4 py-2 bg-gray-50 border-t border-gray-200">
<div class="flex space-x-4">
<button class="px-3 py-1 bg-blue-600 text-white rounded-full text-sm">All</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-full text-sm hover:bg-gray-50">Urban Planning</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-full text-sm hover:bg-gray-50">Environmental</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-full text-sm hover:bg-gray-50">Transportation</button>
<button class="px-3 py-1 bg-white border border-gray-300 rounded-full text-sm hover:bg-gray-50">Demographics</button>
</div>
</div>
</header>
<div class="flex-1 overflow-y-auto p-6">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
<!-- Project Cards -->
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-blue-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-map-marked-alt text-blue-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-blue-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Downtown LA Land Use</h3>
<p class="text-sm text-gray-600 mb-3">Analysis of land use patterns and transportation accessibility</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 2 days ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>3</span>
</div>
</div>
</div>
</div>
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-green-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-tree text-green-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-green-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Urban Green Spaces</h3>
<p class="text-sm text-gray-600 mb-3">Mapping and analysis of parks and recreational areas</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 1 week ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>5</span>
</div>
</div>
</div>
</div>
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-yellow-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-bus text-yellow-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-yellow-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Public Transit Analysis</h3>
<p class="text-sm text-gray-600 mb-3">Bus and metro coverage analysis for city planning</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 3 days ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>2</span>
</div>
</div>
</div>
</div>
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-purple-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-chart-line text-purple-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-purple-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Population Growth</h3>
<p class="text-sm text-gray-600 mb-3">Demographic trends and projections for 2020-2030</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 1 month ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>4</span>
</div>
</div>
</div>
</div>
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-red-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-fire text-red-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-red-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Wildfire Risk Areas</h3>
<p class="text-sm text-gray-600 mb-3">Mapping high-risk zones and evacuation routes</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 2 weeks ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>6</span>
</div>
</div>
</div>
</div>
<div class="project-card bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden transition duration-300 cursor-pointer">
<div class="h-32 bg-indigo-100 relative">
<div class="absolute inset-0 flex items-center justify-center">
<i class="fas fa-home text-indigo-500 text-3xl"></i>
</div>
<div class="absolute top-2 right-2">
<button class="p-1 bg-white rounded-full shadow-sm text-gray-500 hover:text-indigo-500">
<i class="fas fa-ellipsis-h"></i>
</button>
</div>
</div>
<div class="p-4">
<h3 class="font-medium mb-1">Housing Affordability</h3>
<p class="text-sm text-gray-600 mb-3">Price trends and affordable housing inventory</p>
<div class="flex items-center justify-between text-xs text-gray-500">
<span>Last updated: 5 days ago</span>
<div class="flex items-center space-x-1">
<i class="fas fa-user-friends"></i>
<span>3</span>
</div>
</div>
</div>
</div>
<!-- New Project Card -->
<div class="project-card bg-white rounded-lg shadow-sm border-2 border-dashed border-gray-300 flex flex-col items-center justify-center p-6 cursor-pointer hover:border-blue-500 transition duration-300">
<div class="w-12 h-12 rounded-full bg-blue-100 flex items-center justify-center mb-3">
<i class="fas fa-plus text-blue-500 text-xl"></i>
</div>
<h3 class="font-medium text-gray-700">Create New Project</h3>
<p class="text-sm text-gray-500 mt-1 text-center">Start a new geospatial analysis project</p>
</div>
</div>
</div>
</div>
</div>
<script>
// Toggle analysis dashboard
function toggleDashboard() {
const dashboard = document.getElementById('analysis-dashboard');
dashboard.classList.toggle('hidden');
}
// Toggle projects page
function toggleProjects() {
const projects = document.getElementById('projects-page');
projects.classList.toggle('hidden');
}
// Simulate AI response (for demo purposes)
function sendMessage() {
const input = document.querySelector('.ai-sidebar textarea');
const message = input.value.trim();
if (message) {
const conversation = document.querySelector('.ai-conversation');
// Add user message
const userMsg = document.createElement('div');
userMsg.className = 'ai-message';
userMsg.innerHTML = `
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center mr-2">
<i class="fas fa-user text-gray-500"></i>
</div>
<div class="flex-1">
<div class="bg-gray-100 rounded-lg p-3">
<p class="text-sm">${message}</p>
</div>
</div>
</div>
`;
conversation.appendChild(userMsg);
// Clear input
input.value = '';
// Scroll to bottom
conversation.scrollTop = conversation.scrollHeight;
// Simulate AI response after delay
setTimeout(() => {
const aiMsg = document.createElement('div');
aiMsg.className = 'ai-message';
aiMsg.innerHTML = `
<div class="flex items-start mb-2">
<div class="w-8 h-8 rounded-full bg-blue-100 flex items-center justify-center mr-2">
<i class="fas fa-robot text-blue-500"></i>
</div>
<div class="flex-1">
<div class="bg-blue-50 rounded-lg p-3">
<p class="text-sm">I've analyzed your request about "${message}". Here are some insights:</p>
<ul class="list-disc pl-5 mt-2 text-sm space-y-1">
<li>Pattern detected in the northwest quadrant</li>
<li>Correlation with transportation nodes</li>
<li>Historical trends show 15% increase</li>
</ul>
</div>
<div class="flex space-x-2 mt-2">
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">Show Details</button>
<button class="text-xs bg-blue-100 text-blue-600 px-2 py-1 rounded hover:bg-blue-200">Export Data</button>
</div>
</div>
</div>
`;
conversation.appendChild(aiMsg);
// Scroll to bottom again
conversation.scrollTop = conversation.scrollHeight;
}, 1500);
}
}
// Add event listeners for demo
document.addEventListener('DOMContentLoaded', function() {
// Send message on Enter key (but not Shift+Enter)
document.querySelector('.ai-sidebar textarea').addEventListener('keydown', function(e) {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault();
sendMessage();
}
});
// Demo buttons to show different pages
document.querySelector('[title="Analysis"]').addEventListener('click', function(e) {
e.preventDefault();
toggleDashboard();
});
document.querySelector('[title="Projects"]').addEventListener('click', function(e) {
e.preventDefault();
toggleProjects();
});
// Project card click handlers
document.querySelectorAll('.project-card').forEach(card => {
card.addEventListener('click', function() {
// In a real app, this would open the project
alert('Opening project: ' + this.querySelector('h3').textContent);
});
});
});
</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=ppf38356/geoseek" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |