geoseek / index.html
ppf38356's picture
Add 2 files
054c6a2 verified
<!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>