Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +775 -19
- prompts.txt +1 -0
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: photoshoot-assistant
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: gray
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,775 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>PhotoShoot Assistant | Intelligent Outdoor Shooting Planner</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
| 9 |
+
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 10 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 11 |
+
<style>
|
| 12 |
+
#map { height: 400px; }
|
| 13 |
+
.timeline-container {
|
| 14 |
+
overflow-x: auto;
|
| 15 |
+
scrollbar-width: thin;
|
| 16 |
+
}
|
| 17 |
+
.sun-position-indicator {
|
| 18 |
+
width: 30px;
|
| 19 |
+
height: 30px;
|
| 20 |
+
border-radius: 50%;
|
| 21 |
+
background: radial-gradient(circle, #ffde00 30%, #ff9900 70%);
|
| 22 |
+
box-shadow: 0 0 15px #ff9900;
|
| 23 |
+
}
|
| 24 |
+
.weather-card:hover {
|
| 25 |
+
transform: translateY(-5px);
|
| 26 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
| 27 |
+
}
|
| 28 |
+
.time-marker {
|
| 29 |
+
position: absolute;
|
| 30 |
+
top: -20px;
|
| 31 |
+
left: 50%;
|
| 32 |
+
transform: translateX(-50%);
|
| 33 |
+
background: white;
|
| 34 |
+
padding: 2px 8px;
|
| 35 |
+
border-radius: 10px;
|
| 36 |
+
font-size: 12px;
|
| 37 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
| 38 |
+
}
|
| 39 |
+
.golden-hour {
|
| 40 |
+
background: linear-gradient(90deg, rgba(255,215,0,0.2), rgba(255,140,0,0.4));
|
| 41 |
+
}
|
| 42 |
+
.blue-hour {
|
| 43 |
+
background: linear-gradient(90deg, rgba(0,191,255,0.2), rgba(25,25,112,0.4));
|
| 44 |
+
}
|
| 45 |
+
.drone-safe {
|
| 46 |
+
border-left: 4px solid #4ade80;
|
| 47 |
+
}
|
| 48 |
+
.drone-warning {
|
| 49 |
+
border-left: 4px solid #f59e0b;
|
| 50 |
+
}
|
| 51 |
+
.drone-danger {
|
| 52 |
+
border-left: 4px solid #ef4444;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/* Dark mode styles */
|
| 56 |
+
.dark-mode {
|
| 57 |
+
background-color: #1a202c;
|
| 58 |
+
color: #e2e8f0;
|
| 59 |
+
}
|
| 60 |
+
.dark-mode .bg-white {
|
| 61 |
+
background-color: #2d3748 !important;
|
| 62 |
+
color: #e2e8f0 !important;
|
| 63 |
+
}
|
| 64 |
+
.dark-mode .text-gray-800 {
|
| 65 |
+
color: #e2e8f0 !important;
|
| 66 |
+
}
|
| 67 |
+
.dark-mode .text-gray-600 {
|
| 68 |
+
color: #a0aec0 !important;
|
| 69 |
+
}
|
| 70 |
+
.dark-mode .text-gray-700 {
|
| 71 |
+
color: #cbd5e0 !important;
|
| 72 |
+
}
|
| 73 |
+
.dark-mode .border {
|
| 74 |
+
border-color: #4a5568 !important;
|
| 75 |
+
}
|
| 76 |
+
.dark-mode .bg-gray-50 {
|
| 77 |
+
background-color: #4a5568 !important;
|
| 78 |
+
}
|
| 79 |
+
.dark-mode .bg-blue-50 {
|
| 80 |
+
background-color: #2c5282 !important;
|
| 81 |
+
}
|
| 82 |
+
.dark-mode .text-blue-700 {
|
| 83 |
+
color: #bee3f8 !important;
|
| 84 |
+
}
|
| 85 |
+
.dark-mode .text-blue-800 {
|
| 86 |
+
color: #90cdf4 !important;
|
| 87 |
+
}
|
| 88 |
+
.dark-mode .bg-gray-100 {
|
| 89 |
+
background-color: #4a5568 !important;
|
| 90 |
+
}
|
| 91 |
+
.dark-mode .hover\:bg-gray-50:hover {
|
| 92 |
+
background-color: #4a5568 !important;
|
| 93 |
+
}
|
| 94 |
+
.dark-mode .time-marker {
|
| 95 |
+
background: #2d3748;
|
| 96 |
+
color: #e2e8f0;
|
| 97 |
+
}
|
| 98 |
+
.dark-mode .bg-amber-100 {
|
| 99 |
+
background-color: #7b341e !important;
|
| 100 |
+
}
|
| 101 |
+
.dark-mode .text-amber-800 {
|
| 102 |
+
color: #fbd38d !important;
|
| 103 |
+
}
|
| 104 |
+
.dark-mode .bg-blue-100 {
|
| 105 |
+
background-color: #2b6cb0 !important;
|
| 106 |
+
}
|
| 107 |
+
.dark-mode .text-blue-800 {
|
| 108 |
+
color: #bee3f8 !important;
|
| 109 |
+
}
|
| 110 |
+
.dark-mode .bg-green-100 {
|
| 111 |
+
background-color: #276749 !important;
|
| 112 |
+
}
|
| 113 |
+
.dark-mode .text-green-800 {
|
| 114 |
+
color: #9ae6b4 !important;
|
| 115 |
+
}
|
| 116 |
+
.dark-mode .bg-yellow-100 {
|
| 117 |
+
background-color: #975a16 !important;
|
| 118 |
+
}
|
| 119 |
+
.dark-mode .text-yellow-800 {
|
| 120 |
+
color: #faf089 !important;
|
| 121 |
+
}
|
| 122 |
+
.dark-mode .bg-red-100 {
|
| 123 |
+
background-color: #9b2c2c !important;
|
| 124 |
+
}
|
| 125 |
+
.dark-mode .text-red-800 {
|
| 126 |
+
color: #feb2b2 !important;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
/* Settings panel styles */
|
| 130 |
+
.settings-panel {
|
| 131 |
+
display: none;
|
| 132 |
+
position: fixed;
|
| 133 |
+
top: 0;
|
| 134 |
+
right: 0;
|
| 135 |
+
width: 300px;
|
| 136 |
+
height: 100%;
|
| 137 |
+
background-color: white;
|
| 138 |
+
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
|
| 139 |
+
z-index: 1000;
|
| 140 |
+
padding: 20px;
|
| 141 |
+
overflow-y: auto;
|
| 142 |
+
transform: translateX(100%);
|
| 143 |
+
transition: transform 0.3s ease;
|
| 144 |
+
}
|
| 145 |
+
.dark-mode .settings-panel {
|
| 146 |
+
background-color: #2d3748;
|
| 147 |
+
}
|
| 148 |
+
.settings-panel.open {
|
| 149 |
+
transform: translateX(0);
|
| 150 |
+
}
|
| 151 |
+
.settings-overlay {
|
| 152 |
+
display: none;
|
| 153 |
+
position: fixed;
|
| 154 |
+
top: 0;
|
| 155 |
+
left: 0;
|
| 156 |
+
right: 0;
|
| 157 |
+
bottom: 0;
|
| 158 |
+
background-color: rgba(0,0,0,0.5);
|
| 159 |
+
z-index: 999;
|
| 160 |
+
}
|
| 161 |
+
.settings-overlay.open {
|
| 162 |
+
display: block;
|
| 163 |
+
}
|
| 164 |
+
</style>
|
| 165 |
+
</head>
|
| 166 |
+
<body class="bg-gray-50">
|
| 167 |
+
<!-- Settings Panel -->
|
| 168 |
+
<div class="settings-overlay" id="settingsOverlay"></div>
|
| 169 |
+
<div class="settings-panel" id="settingsPanel">
|
| 170 |
+
<div class="flex justify-between items-center mb-6">
|
| 171 |
+
<h2 class="text-xl font-bold">Settings</h2>
|
| 172 |
+
<button id="closeSettings" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
| 173 |
+
<i class="fas fa-times text-xl"></i>
|
| 174 |
+
</button>
|
| 175 |
+
</div>
|
| 176 |
+
|
| 177 |
+
<div class="mb-6">
|
| 178 |
+
<h3 class="font-medium mb-3 text-gray-700 dark:text-gray-300">Units</h3>
|
| 179 |
+
<div class="space-y-3">
|
| 180 |
+
<label class="flex items-center space-x-3">
|
| 181 |
+
<input type="radio" name="units" value="imperial" class="text-blue-600" checked>
|
| 182 |
+
<span>Imperial (Fahrenheit, mph)</span>
|
| 183 |
+
</label>
|
| 184 |
+
<label class="flex items-center space-x-3">
|
| 185 |
+
<input type="radio" name="units" value="metric" class="text-blue-600">
|
| 186 |
+
<span>Metric (Celsius, km/h)</span>
|
| 187 |
+
</label>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
|
| 191 |
+
<div class="mb-6">
|
| 192 |
+
<h3 class="font-medium mb-3 text-gray-700 dark:text-gray-300">Appearance</h3>
|
| 193 |
+
<div class="flex items-center justify-between">
|
| 194 |
+
<span>Dark Mode</span>
|
| 195 |
+
<label class="relative inline-flex items-center cursor-pointer">
|
| 196 |
+
<input type="checkbox" id="darkModeToggle" class="sr-only peer">
|
| 197 |
+
<div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"></div>
|
| 198 |
+
</label>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
|
| 202 |
+
<div class="mb-6">
|
| 203 |
+
<h3 class="font-medium mb-3 text-gray-700 dark:text-gray-300">Notifications</h3>
|
| 204 |
+
<div class="space-y-2">
|
| 205 |
+
<label class="flex items-center space-x-3">
|
| 206 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 207 |
+
<span>Golden hour alerts</span>
|
| 208 |
+
</label>
|
| 209 |
+
<label class="flex items-center space-x-3">
|
| 210 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 211 |
+
<span>Weather changes</span>
|
| 212 |
+
</label>
|
| 213 |
+
<label class="flex items-center space-x-3">
|
| 214 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 215 |
+
<span>Drone conditions</span>
|
| 216 |
+
</label>
|
| 217 |
+
</div>
|
| 218 |
+
</div>
|
| 219 |
+
|
| 220 |
+
<button id="saveSettings" class="w-full py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">
|
| 221 |
+
Save Settings
|
| 222 |
+
</button>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<div class="container mx-auto px-4 py-8">
|
| 226 |
+
<!-- Header -->
|
| 227 |
+
<header class="mb-8">
|
| 228 |
+
<div class="flex items-center justify-between">
|
| 229 |
+
<div>
|
| 230 |
+
<h1 class="text-3xl font-bold text-gray-800 dark:text-white">PhotoShoot Assistant</h1>
|
| 231 |
+
<p class="text-gray-600 dark:text-gray-300">Your intelligent outdoor shooting planner</p>
|
| 232 |
+
</div>
|
| 233 |
+
<div class="flex items-center space-x-4">
|
| 234 |
+
<button class="px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition">
|
| 235 |
+
<i class="fas fa-sign-in-alt mr-2"></i>Login
|
| 236 |
+
</button>
|
| 237 |
+
<button id="openSettingsBtn" class="p-2 text-gray-600 hover:text-gray-900 dark:hover:text-white">
|
| 238 |
+
<i class="fas fa-cog text-xl"></i>
|
| 239 |
+
</button>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
</header>
|
| 243 |
+
|
| 244 |
+
<!-- Main Content -->
|
| 245 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 246 |
+
<!-- Left Column - Controls -->
|
| 247 |
+
<div class="lg:col-span-1 bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 248 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Search Location</h2>
|
| 249 |
+
<div class="mb-6">
|
| 250 |
+
<div class="relative">
|
| 251 |
+
<input type="text" id="location-search" placeholder="Enter location or address"
|
| 252 |
+
class="w-full p-3 border border-gray-300 dark:border-gray-600 rounded-lg pr-10 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white">
|
| 253 |
+
<button class="absolute right-3 top-3 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300">
|
| 254 |
+
<i class="fas fa-search"></i>
|
| 255 |
+
</button>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<div class="mb-6">
|
| 260 |
+
<h3 class="font-medium mb-2 text-gray-700 dark:text-gray-300">Date Selection</h3>
|
| 261 |
+
<input type="date" id="shoot-date" class="w-full p-2 border border-gray-300 dark:border-gray-600 rounded-lg dark:bg-gray-700 dark:text-white">
|
| 262 |
+
</div>
|
| 263 |
+
|
| 264 |
+
<div class="mb-6">
|
| 265 |
+
<h3 class="font-medium mb-2 text-gray-700 dark:text-gray-300">Shoot Type</h3>
|
| 266 |
+
<div class="grid grid-cols-2 gap-2">
|
| 267 |
+
<button class="p-3 border rounded-lg hover:bg-gray-50 active:bg-blue-50 active:border-blue-200 dark:hover:bg-gray-700 dark:border-gray-600">
|
| 268 |
+
<i class="fas fa-portrait mr-2"></i> Portrait
|
| 269 |
+
</button>
|
| 270 |
+
<button class="p-3 border rounded-lg hover:bg-gray-50 active:bg-blue-50 active:border-blue-200 dark:hover:bg-gray-700 dark:border-gray-600">
|
| 271 |
+
<i class="fas fa-landscape mr-2"></i> Landscape
|
| 272 |
+
</button>
|
| 273 |
+
<button class="p-3 border rounded-lg hover:bg-gray-50 active:bg-blue-50 active:border-blue-200 dark:hover:bg-gray-700 dark:border-gray-600">
|
| 274 |
+
<i class="fas fa-city mr-2"></i> Urban
|
| 275 |
+
</button>
|
| 276 |
+
<button class="p-3 border rounded-lg hover:bg-gray-50 active:bg-blue-50 active:border-blue-200 dark:hover:bg-gray-700 dark:border-gray-600">
|
| 277 |
+
<i class="fas fa-drone-alt mr-2"></i> Drone
|
| 278 |
+
</button>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
|
| 282 |
+
<div class="mb-6">
|
| 283 |
+
<h3 class="font-medium mb-2 text-gray-700 dark:text-gray-300">Priority Conditions</h3>
|
| 284 |
+
<div class="space-y-2">
|
| 285 |
+
<label class="flex items-center space-x-2">
|
| 286 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 287 |
+
<span>Golden Hour</span>
|
| 288 |
+
</label>
|
| 289 |
+
<label class="flex items-center space-x-2">
|
| 290 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 291 |
+
<span>Blue Hour</span>
|
| 292 |
+
</label>
|
| 293 |
+
<label class="flex items-center space-x-2">
|
| 294 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 295 |
+
<span>Clear Sky</span>
|
| 296 |
+
</label>
|
| 297 |
+
<label class="flex items-center space-x-2">
|
| 298 |
+
<input type="checkbox" class="rounded text-blue-600">
|
| 299 |
+
<span>Low Wind (Drone)</span>
|
| 300 |
+
</label>
|
| 301 |
+
</div>
|
| 302 |
+
</div>
|
| 303 |
+
|
| 304 |
+
<button id="calculate-btn" class="w-full py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition flex items-center justify-center">
|
| 305 |
+
<i class="fas fa-calculator mr-2"></i> Calculate Best Times
|
| 306 |
+
</button>
|
| 307 |
+
|
| 308 |
+
<div class="mt-6 p-4 bg-blue-50 dark:bg-blue-900 rounded-lg">
|
| 309 |
+
<h3 class="font-medium text-blue-800 dark:text-blue-200 mb-2">Pro Tip</h3>
|
| 310 |
+
<p class="text-sm text-blue-700 dark:text-blue-300">For drone photography, look for wind speeds below 15 mph (24 km/h) and clear skies for optimal conditions.</p>
|
| 311 |
+
</div>
|
| 312 |
+
</div>
|
| 313 |
+
|
| 314 |
+
<!-- Right Column - Results -->
|
| 315 |
+
<div class="lg:col-span-2 space-y-6">
|
| 316 |
+
<!-- Map Section -->
|
| 317 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden">
|
| 318 |
+
<div class="p-4 border-b dark:border-gray-600">
|
| 319 |
+
<h2 class="text-xl font-semibold text-gray-800 dark:text-white">Location Overview</h2>
|
| 320 |
+
</div>
|
| 321 |
+
<div id="map" class="w-full"></div>
|
| 322 |
+
</div>
|
| 323 |
+
|
| 324 |
+
<!-- Weather Summary -->
|
| 325 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 326 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Weather Conditions</h2>
|
| 327 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-4">
|
| 328 |
+
<div class="weather-card p-4 border rounded-lg transition dark:border-gray-600">
|
| 329 |
+
<div class="flex items-center mb-2">
|
| 330 |
+
<i class="fas fa-temperature-high text-red-500 text-xl mr-2"></i>
|
| 331 |
+
<span class="font-medium">Temperature</span>
|
| 332 |
+
</div>
|
| 333 |
+
<div class="text-2xl font-bold"><span id="temp-value">72</span><span id="temp-unit">°F</span></div>
|
| 334 |
+
<div class="text-sm text-gray-500 dark:text-gray-400">Feels like <span id="feels-like-value">75</span><span id="feels-like-unit">°F</span></div>
|
| 335 |
+
</div>
|
| 336 |
+
<div class="weather-card p-4 border rounded-lg transition dark:border-gray-600">
|
| 337 |
+
<div class="flex items-center mb-2">
|
| 338 |
+
<i class="fas fa-cloud text-blue-400 text-xl mr-2"></i>
|
| 339 |
+
<span class="font-medium">Cloud Cover</span>
|
| 340 |
+
</div>
|
| 341 |
+
<div class="text-2xl font-bold">25%</div>
|
| 342 |
+
<div class="text-sm text-gray-500 dark:text-gray-400">Mostly clear</div>
|
| 343 |
+
</div>
|
| 344 |
+
<div class="weather-card p-4 border rounded-lg transition dark:border-gray-600">
|
| 345 |
+
<div class="flex items-center mb-2">
|
| 346 |
+
<i class="fas fa-wind text-gray-500 text-xl mr-2"></i>
|
| 347 |
+
<span class="font-medium">Wind Speed</span>
|
| 348 |
+
</div>
|
| 349 |
+
<div class="text-2xl font-bold"><span id="wind-value">8</span><span id="wind-unit"> mph</span></div>
|
| 350 |
+
<div class="text-sm text-gray-500 dark:text-gray-400 drone-safe">Drone: Safe</div>
|
| 351 |
+
</div>
|
| 352 |
+
<div class="weather-card p-4 border rounded-lg transition dark:border-gray-600">
|
| 353 |
+
<div class="flex items-center mb-2">
|
| 354 |
+
<i class="fas fa-umbrella text-blue-500 text-xl mr-2"></i>
|
| 355 |
+
<span class="font-medium">Precipitation</span>
|
| 356 |
+
</div>
|
| 357 |
+
<div class="text-2xl font-bold">0%</div>
|
| 358 |
+
<div class="text-sm text-gray-500 dark:text-gray-400">No rain expected</div>
|
| 359 |
+
</div>
|
| 360 |
+
</div>
|
| 361 |
+
</div>
|
| 362 |
+
|
| 363 |
+
<!-- Sun Position Timeline -->
|
| 364 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 365 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Sun Position & Optimal Times</h2>
|
| 366 |
+
|
| 367 |
+
<div class="mb-6">
|
| 368 |
+
<div class="flex justify-between mb-2">
|
| 369 |
+
<span class="text-sm font-medium">Sunrise: 6:45 AM</span>
|
| 370 |
+
<span class="text-sm font-medium">Sunset: 7:30 PM</span>
|
| 371 |
+
</div>
|
| 372 |
+
<div class="relative h-4 bg-gradient-to-r from-blue-900 via-yellow-500 to-blue-900 rounded-full">
|
| 373 |
+
<div class="absolute left-[15%] h-6 -mt-1">
|
| 374 |
+
<div class="sun-position-indicator"></div>
|
| 375 |
+
<div class="time-marker dark:bg-gray-800 dark:text-white">Morning Golden Hour</div>
|
| 376 |
+
</div>
|
| 377 |
+
<div class="absolute left-[35%] h-6 -mt-1">
|
| 378 |
+
<div class="sun-position-indicator"></div>
|
| 379 |
+
<div class="time-marker dark:bg-gray-800 dark:text-white">Blue Hour</div>
|
| 380 |
+
</div>
|
| 381 |
+
<div class="absolute left-[65%] h-6 -mt-1">
|
| 382 |
+
<div class="sun-position-indicator"></div>
|
| 383 |
+
<div class="time-marker dark:bg-gray-800 dark:text-white">Evening Golden Hour</div>
|
| 384 |
+
</div>
|
| 385 |
+
<div class="absolute left-[85%] h-6 -mt-1">
|
| 386 |
+
<div class="sun-position-indicator"></div>
|
| 387 |
+
<div class="time-marker dark:bg-gray-800 dark:text-white">Blue Hour</div>
|
| 388 |
+
</div>
|
| 389 |
+
</div>
|
| 390 |
+
</div>
|
| 391 |
+
|
| 392 |
+
<div class="timeline-container">
|
| 393 |
+
<div class="relative h-32 min-w-[800px]">
|
| 394 |
+
<!-- Timeline background -->
|
| 395 |
+
<div class="absolute inset-0 bg-gray-100 dark:bg-gray-700 rounded-lg"></div>
|
| 396 |
+
|
| 397 |
+
<!-- Current time indicator -->
|
| 398 |
+
<div class="absolute left-1/2 h-full w-0.5 bg-red-500 -ml-px">
|
| 399 |
+
<div class="time-marker dark:bg-gray-800 dark:text-white">Now</div>
|
| 400 |
+
</div>
|
| 401 |
+
|
| 402 |
+
<!-- Golden hours -->
|
| 403 |
+
<div class="absolute left-[15%] w-[20%] h-full golden-hour rounded"></div>
|
| 404 |
+
<div class="absolute left-[65%] w-[20%] h-full golden-hour rounded"></div>
|
| 405 |
+
|
| 406 |
+
<!-- Blue hours -->
|
| 407 |
+
<div class="absolute left-[35%] w-[10%] h-full blue-hour rounded"></div>
|
| 408 |
+
<div class="absolute left-[85%] w-[10%] h-full blue-hour rounded"></div>
|
| 409 |
+
|
| 410 |
+
<!-- Time labels -->
|
| 411 |
+
<div class="absolute bottom-2 left-[5%] text-xs dark:text-white">6:00 AM</div>
|
| 412 |
+
<div class="absolute bottom-2 left-[25%] text-xs dark:text-white">8:00 AM</div>
|
| 413 |
+
<div class="absolute bottom-2 left-[45%] text-xs dark:text-white">12:00 PM</div>
|
| 414 |
+
<div class="absolute bottom-2 left-[65%] text-xs dark:text-white">5:00 PM</div>
|
| 415 |
+
<div class="absolute bottom-2 left-[85%] text-xs dark:text-white">7:00 PM</div>
|
| 416 |
+
<div class="absolute bottom-2 left-[95%] text-xs dark:text-white">9:00 PM</div>
|
| 417 |
+
</div>
|
| 418 |
+
</div>
|
| 419 |
+
</div>
|
| 420 |
+
|
| 421 |
+
<!-- Recommended Time Slots -->
|
| 422 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 423 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Recommended Shooting Windows</h2>
|
| 424 |
+
|
| 425 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
| 426 |
+
<div class="p-4 border rounded-lg golden-hour dark:border-gray-600">
|
| 427 |
+
<div class="flex justify-between items-start mb-2">
|
| 428 |
+
<div>
|
| 429 |
+
<h3 class="font-bold">Morning Golden Hour</h3>
|
| 430 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Soft, warm light</p>
|
| 431 |
+
</div>
|
| 432 |
+
<span class="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 px-2 py-1 rounded text-sm">Best</span>
|
| 433 |
+
</div>
|
| 434 |
+
<div class="flex items-center justify-between">
|
| 435 |
+
<span class="font-medium">6:45 AM - 7:45 AM</span>
|
| 436 |
+
<button class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
|
| 437 |
+
<i class="fas fa-calendar-plus"></i>
|
| 438 |
+
</button>
|
| 439 |
+
</div>
|
| 440 |
+
</div>
|
| 441 |
+
|
| 442 |
+
<div class="p-4 border rounded-lg blue-hour dark:border-gray-600">
|
| 443 |
+
<div class="flex justify-between items-start mb-2">
|
| 444 |
+
<div>
|
| 445 |
+
<h3 class="font-bold">Blue Hour</h3>
|
| 446 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Cool, even light</p>
|
| 447 |
+
</div>
|
| 448 |
+
<span class="bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 px-2 py-1 rounded text-sm">Good</span>
|
| 449 |
+
</div>
|
| 450 |
+
<div class="flex items-center justify-between">
|
| 451 |
+
<span class="font-medium">7:45 AM - 8:15 AM</span>
|
| 452 |
+
<button class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
|
| 453 |
+
<i class="fas fa-calendar-plus"></i>
|
| 454 |
+
</button>
|
| 455 |
+
</div>
|
| 456 |
+
</div>
|
| 457 |
+
|
| 458 |
+
<div class="p-4 border rounded-lg golden-hour dark:border-gray-600">
|
| 459 |
+
<div class="flex justify-between items-start mb-2">
|
| 460 |
+
<div>
|
| 461 |
+
<h3 class="font-bold">Evening Golden Hour</h3>
|
| 462 |
+
<p class="text-sm text-gray-600 dark:text-gray-400">Dramatic shadows</p>
|
| 463 |
+
</div>
|
| 464 |
+
<span class="bg-amber-100 dark:bg-amber-900 text-amber-800 dark:text-amber-200 px-2 py-1 rounded text-sm">Best</span>
|
| 465 |
+
</div>
|
| 466 |
+
<div class="flex items-center justify-between">
|
| 467 |
+
<span class="font-medium">6:30 PM - 7:30 PM</span>
|
| 468 |
+
<button class="text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300">
|
| 469 |
+
<i class="fas fa-calendar-plus"></i>
|
| 470 |
+
</button>
|
| 471 |
+
</div>
|
| 472 |
+
</div>
|
| 473 |
+
</div>
|
| 474 |
+
</div>
|
| 475 |
+
|
| 476 |
+
<!-- Drone Conditions -->
|
| 477 |
+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-md p-6">
|
| 478 |
+
<h2 class="text-xl font-semibold mb-4 text-gray-800 dark:text-white">Drone Flight Conditions</h2>
|
| 479 |
+
|
| 480 |
+
<div class="overflow-x-auto">
|
| 481 |
+
<table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
|
| 482 |
+
<thead class="bg-gray-50 dark:bg-gray-700">
|
| 483 |
+
<tr>
|
| 484 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase dark:text-gray-300">Time</th>
|
| 485 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase dark:text-gray-300">Wind Speed</th>
|
| 486 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase dark:text-gray-300">Gusts</th>
|
| 487 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase dark:text-gray-300">Visibility</th>
|
| 488 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase dark:text-gray-300">Status</th>
|
| 489 |
+
</tr>
|
| 490 |
+
</thead>
|
| 491 |
+
<tbody class="bg-white divide-y divide-gray-200 dark:bg-gray-800 dark:divide-gray-700">
|
| 492 |
+
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700 drone-safe">
|
| 493 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white">6:00 AM - 8:00 AM</td>
|
| 494 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="wind-row-value">5-7</span><span class="wind-row-unit"> mph</span></td>
|
| 495 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="gust-row-value">9</span><span class="gust-row-unit"> mph</span></td>
|
| 496 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="vis-row-value">10</span><span class="vis-row-unit"> miles</span></td>
|
| 497 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
| 498 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">Ideal</span>
|
| 499 |
+
</td>
|
| 500 |
+
</tr>
|
| 501 |
+
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700 drone-warning">
|
| 502 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white">8:00 AM - 12:00 PM</td>
|
| 503 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="wind-row-value">10-12</span><span class="wind-row-unit"> mph</span></td>
|
| 504 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="gust-row-value">15</span><span class="gust-row-unit"> mph</span></td>
|
| 505 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="vis-row-value">8</span><span class="vis-row-unit"> miles</span></td>
|
| 506 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
| 507 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-200">Caution</span>
|
| 508 |
+
</td>
|
| 509 |
+
</tr>
|
| 510 |
+
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700 drone-danger">
|
| 511 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white">12:00 PM - 4:00 PM</td>
|
| 512 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="wind-row-value">15-18</span><span class="wind-row-unit"> mph</span></td>
|
| 513 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="gust-row-value">22</span><span class="gust-row-unit"> mph</span></td>
|
| 514 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="vis-row-value">6</span><span class="vis-row-unit"> miles</span></td>
|
| 515 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
| 516 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-200">Avoid</span>
|
| 517 |
+
</td>
|
| 518 |
+
</tr>
|
| 519 |
+
<tr class="hover:bg-gray-50 dark:hover:bg-gray-700 drone-safe">
|
| 520 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white">4:00 PM - 8:00 PM</td>
|
| 521 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="wind-row-value">6-8</span><span class="wind-row-unit"> mph</span></td>
|
| 522 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="gust-row-value">11</span><span class="gust-row-unit"> mph</span></td>
|
| 523 |
+
<td class="px-4 py-3 whitespace-nowrap dark:text-white"><span class="vis-row-value">10</span><span class="vis-row-unit"> miles</span></td>
|
| 524 |
+
<td class="px-4 py-3 whitespace-nowrap">
|
| 525 |
+
<span class="px-2 py-1 text-xs font-semibold rounded-full bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200">Ideal</span>
|
| 526 |
+
</td>
|
| 527 |
+
</tr>
|
| 528 |
+
</tbody>
|
| 529 |
+
</table>
|
| 530 |
+
</div>
|
| 531 |
+
</div>
|
| 532 |
+
</div>
|
| 533 |
+
</div>
|
| 534 |
+
|
| 535 |
+
<!-- Footer -->
|
| 536 |
+
<footer class="mt-12 pt-8 border-t border-gray-200 dark:border-gray-700">
|
| 537 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
| 538 |
+
<div class="mb-4 md:mb-0">
|
| 539 |
+
<h2 class="text-xl font-bold text-gray-800 dark:text-white">PhotoShoot Assistant</h2>
|
| 540 |
+
<p class="text-gray-600 dark:text-gray-300">Making perfect light predictable</p>
|
| 541 |
+
</div>
|
| 542 |
+
<div class="flex space-x-6">
|
| 543 |
+
<a href="#" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
| 544 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 545 |
+
</a>
|
| 546 |
+
<a href="#" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
| 547 |
+
<i class="fab fa-instagram text-xl"></i>
|
| 548 |
+
</a>
|
| 549 |
+
<a href="#" class="text-gray-500 hover:text-gray-700 dark:hover:text-gray-300">
|
| 550 |
+
<i class="fab fa-facebook text-xl"></i>
|
| 551 |
+
</a>
|
| 552 |
+
</div>
|
| 553 |
+
</div>
|
| 554 |
+
<div class="mt-6 text-center text-sm text-gray-500 dark:text-gray-400">
|
| 555 |
+
<p>Data provided by OpenWeatherMap, SunCalc, and Windy APIs</p>
|
| 556 |
+
<p class="mt-2">© 2023 PhotoShoot Assistant. All rights reserved.</p>
|
| 557 |
+
</div>
|
| 558 |
+
</footer>
|
| 559 |
+
</div>
|
| 560 |
+
|
| 561 |
+
<script>
|
| 562 |
+
// Initialize map
|
| 563 |
+
const map = L.map('map').setView([51.505, -0.09], 13);
|
| 564 |
+
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
| 565 |
+
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
| 566 |
+
}).addTo(map);
|
| 567 |
+
|
| 568 |
+
// Add a marker
|
| 569 |
+
const marker = L.marker([51.5, -0.09]).addTo(map)
|
| 570 |
+
.bindPopup('Your selected shooting location')
|
| 571 |
+
.openPopup();
|
| 572 |
+
|
| 573 |
+
// Sample sun position data (would come from SunCalc API in real implementation)
|
| 574 |
+
const sunData = {
|
| 575 |
+
sunrise: "6:45 AM",
|
| 576 |
+
sunset: "7:30 PM",
|
| 577 |
+
goldenHours: {
|
| 578 |
+
morning: { start: "6:45 AM", end: "7:45 AM" },
|
| 579 |
+
evening: { start: "6:30 PM", end: "7:30 PM" }
|
| 580 |
+
},
|
| 581 |
+
blueHours: {
|
| 582 |
+
morning: { start: "7:45 AM", end: "8:15 AM" },
|
| 583 |
+
evening: { start: "7:30 PM", end: "8:00 PM" }
|
| 584 |
+
}
|
| 585 |
+
};
|
| 586 |
+
|
| 587 |
+
// Sample weather data (would come from OpenWeatherMap API in real implementation)
|
| 588 |
+
const weatherData = {
|
| 589 |
+
temperature: 72,
|
| 590 |
+
feelsLike: 75,
|
| 591 |
+
cloudCover: 25,
|
| 592 |
+
windSpeed: 8,
|
| 593 |
+
precipitation: 0,
|
| 594 |
+
conditions: "Mostly clear"
|
| 595 |
+
};
|
| 596 |
+
|
| 597 |
+
// Sample drone conditions (would come from Windy API in real implementation)
|
| 598 |
+
const droneConditions = [
|
| 599 |
+
{ time: "6:00 AM - 8:00 AM", windSpeed: "5-7", gusts: "9", visibility: "10", status: "Ideal" },
|
| 600 |
+
{ time: "8:00 AM - 12:00 PM", windSpeed: "10-12", gusts: "15", visibility: "8", status: "Caution" },
|
| 601 |
+
{ time: "12:00 PM - 4:00 PM", windSpeed: "15-18", gusts: "22", visibility: "6", status: "Avoid" },
|
| 602 |
+
{ time: "4:00 PM - 8:00 PM", windSpeed: "6-8", gusts: "11", visibility: "10", status: "Ideal" }
|
| 603 |
+
];
|
| 604 |
+
|
| 605 |
+
// Settings panel functionality
|
| 606 |
+
const settingsPanel = document.getElementById('settingsPanel');
|
| 607 |
+
const settingsOverlay = document.getElementById('settingsOverlay');
|
| 608 |
+
const openSettingsBtn = document.getElementById('openSettingsBtn');
|
| 609 |
+
const closeSettings = document.getElementById('closeSettings');
|
| 610 |
+
const saveSettings = document.getElementById('saveSettings');
|
| 611 |
+
const darkModeToggle = document.getElementById('darkModeToggle');
|
| 612 |
+
|
| 613 |
+
// Open settings panel
|
| 614 |
+
openSettingsBtn.addEventListener('click', () => {
|
| 615 |
+
settingsPanel.classList.add('open');
|
| 616 |
+
settingsOverlay.classList.add('open');
|
| 617 |
+
});
|
| 618 |
+
|
| 619 |
+
// Close settings panel
|
| 620 |
+
closeSettings.addEventListener('click', () => {
|
| 621 |
+
settingsPanel.classList.remove('open');
|
| 622 |
+
settingsOverlay.classList.remove('open');
|
| 623 |
+
});
|
| 624 |
+
|
| 625 |
+
// Close settings panel when clicking on overlay
|
| 626 |
+
settingsOverlay.addEventListener('click', () => {
|
| 627 |
+
settingsPanel.classList.remove('open');
|
| 628 |
+
settingsOverlay.classList.remove('open');
|
| 629 |
+
});
|
| 630 |
+
|
| 631 |
+
// Save settings
|
| 632 |
+
saveSettings.addEventListener('click', () => {
|
| 633 |
+
// Get selected units
|
| 634 |
+
const selectedUnit = document.querySelector('input[name="units"]:checked').value;
|
| 635 |
+
|
| 636 |
+
// Update units in the UI
|
| 637 |
+
updateUnits(selectedUnit);
|
| 638 |
+
|
| 639 |
+
// Close settings panel
|
| 640 |
+
settingsPanel.classList.remove('open');
|
| 641 |
+
settingsOverlay.classList.remove('open');
|
| 642 |
+
|
| 643 |
+
// Show confirmation
|
| 644 |
+
alert('Settings saved successfully!');
|
| 645 |
+
});
|
| 646 |
+
|
| 647 |
+
// Dark mode toggle
|
| 648 |
+
darkModeToggle.addEventListener('change', function() {
|
| 649 |
+
if(this.checked) {
|
| 650 |
+
document.body.classList.add('dark-mode');
|
| 651 |
+
localStorage.setItem('darkMode', 'enabled');
|
| 652 |
+
} else {
|
| 653 |
+
document.body.classList.remove('dark-mode');
|
| 654 |
+
localStorage.setItem('darkMode', 'disabled');
|
| 655 |
+
}
|
| 656 |
+
});
|
| 657 |
+
|
| 658 |
+
// Check for saved dark mode preference
|
| 659 |
+
if(localStorage.getItem('darkMode') === 'enabled') {
|
| 660 |
+
document.body.classList.add('dark-mode');
|
| 661 |
+
darkModeToggle.checked = true;
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
// Function to update units in the UI
|
| 665 |
+
function updateUnits(unitSystem) {
|
| 666 |
+
if(unitSystem === 'metric') {
|
| 667 |
+
// Convert temperature to Celsius
|
| 668 |
+
const tempC = Math.round((weatherData.temperature - 32) * 5/9);
|
| 669 |
+
const feelsLikeC = Math.round((weatherData.feelsLike - 32) * 5/9);
|
| 670 |
+
|
| 671 |
+
document.getElementById('temp-value').textContent = tempC;
|
| 672 |
+
document.getElementById('temp-unit').textContent = '°C';
|
| 673 |
+
document.getElementById('feels-like-value').textContent = feelsLikeC;
|
| 674 |
+
document.getElementById('feels-like-unit').textContent = '°C';
|
| 675 |
+
|
| 676 |
+
// Convert wind speed to km/h
|
| 677 |
+
const windKmh = Math.round(weatherData.windSpeed * 1.60934);
|
| 678 |
+
document.getElementById('wind-value').textContent = windKmh;
|
| 679 |
+
document.getElementById('wind-unit').textContent = ' km/h';
|
| 680 |
+
|
| 681 |
+
// Update drone conditions table
|
| 682 |
+
const windValues = document.querySelectorAll('.wind-row-value');
|
| 683 |
+
const gustValues = document.querySelectorAll('.gust-row-value');
|
| 684 |
+
const visValues = document.querySelectorAll('.vis-row-value');
|
| 685 |
+
|
| 686 |
+
windValues.forEach(value => {
|
| 687 |
+
const mph = value.textContent.includes('-') ?
|
| 688 |
+
value.textContent.split('-').map(v => Math.round(parseFloat(v) * 1.60934)).join('-') :
|
| 689 |
+
Math.round(parseFloat(value.textContent) * 1.60934);
|
| 690 |
+
value.textContent = mph;
|
| 691 |
+
});
|
| 692 |
+
|
| 693 |
+
gustValues.forEach(value => {
|
| 694 |
+
const kmh = Math.round(parseFloat(value.textContent) * 1.60934);
|
| 695 |
+
value.textContent = kmh;
|
| 696 |
+
});
|
| 697 |
+
|
| 698 |
+
visValues.forEach(value => {
|
| 699 |
+
const km = Math.round(parseFloat(value.textContent) * 1.60934);
|
| 700 |
+
value.textContent = km;
|
| 701 |
+
});
|
| 702 |
+
|
| 703 |
+
document.querySelectorAll('.wind-row-unit').forEach(el => el.textContent = ' km/h');
|
| 704 |
+
document.querySelectorAll('.gust-row-unit').forEach(el => el.textContent = ' km/h');
|
| 705 |
+
document.querySelectorAll('.vis-row-unit').forEach(el => el.textContent = ' km');
|
| 706 |
+
|
| 707 |
+
// Update pro tip
|
| 708 |
+
document.querySelector('.bg-blue-50 p').textContent =
|
| 709 |
+
'For drone photography, look for wind speeds below 24 km/h and clear skies for optimal conditions.';
|
| 710 |
+
} else {
|
| 711 |
+
// Imperial units
|
| 712 |
+
document.getElementById('temp-value').textContent = weatherData.temperature;
|
| 713 |
+
document.getElementById('temp-unit').textContent = '°F';
|
| 714 |
+
document.getElementById('feels-like-value').textContent = weatherData.feelsLike;
|
| 715 |
+
document.getElementById('feels-like-unit').textContent = '°F';
|
| 716 |
+
|
| 717 |
+
document.getElementById('wind-value').textContent = weatherData.windSpeed;
|
| 718 |
+
document.getElementById('wind-unit').textContent = ' mph';
|
| 719 |
+
|
| 720 |
+
// Update drone conditions table
|
| 721 |
+
document.querySelectorAll('.wind-row-value').forEach((el, i) => {
|
| 722 |
+
el.textContent = droneConditions[i].windSpeed;
|
| 723 |
+
});
|
| 724 |
+
|
| 725 |
+
document.querySelectorAll('.gust-row-value').forEach((el, i) => {
|
| 726 |
+
el.textContent = droneConditions[i].gusts;
|
| 727 |
+
});
|
| 728 |
+
|
| 729 |
+
document.querySelectorAll('.vis-row-value').forEach((el, i) => {
|
| 730 |
+
el.textContent = droneConditions[i].visibility;
|
| 731 |
+
});
|
| 732 |
+
|
| 733 |
+
document.querySelectorAll('.wind-row-unit').forEach(el => el.textContent = ' mph');
|
| 734 |
+
document.querySelectorAll('.gust-row-unit').forEach(el => el.textContent = ' mph');
|
| 735 |
+
document.querySelectorAll('.vis-row-unit').forEach(el => el.textContent = ' miles');
|
| 736 |
+
|
| 737 |
+
// Update pro tip
|
| 738 |
+
document.querySelector('.bg-blue-50 p').textContent =
|
| 739 |
+
'For drone photography, look for wind speeds below 15 mph and clear skies for optimal conditions.';
|
| 740 |
+
}
|
| 741 |
+
|
| 742 |
+
// Save unit preference
|
| 743 |
+
localStorage.setItem('unitSystem', unitSystem);
|
| 744 |
+
}
|
| 745 |
+
|
| 746 |
+
// Check for saved unit preference
|
| 747 |
+
const savedUnitSystem = localStorage.getItem('unitSystem') || 'imperial';
|
| 748 |
+
document.querySelector(`input[name="units"][value="${savedUnitSystem}"]`).checked = true;
|
| 749 |
+
updateUnits(savedUnitSystem);
|
| 750 |
+
|
| 751 |
+
// Calculate button click handler
|
| 752 |
+
document.getElementById('calculate-btn').addEventListener('click', function() {
|
| 753 |
+
// In a real implementation, this would call the APIs with the selected location and date
|
| 754 |
+
alert('Fetching optimal shooting times for your location...');
|
| 755 |
+
|
| 756 |
+
// Here you would process the API responses and update the UI
|
| 757 |
+
// For now, we're using the sample data defined above
|
| 758 |
+
});
|
| 759 |
+
|
| 760 |
+
// Responsive adjustments
|
| 761 |
+
function handleResize() {
|
| 762 |
+
// Adjust map height on mobile
|
| 763 |
+
if (window.innerWidth < 768) {
|
| 764 |
+
document.getElementById('map').style.height = '300px';
|
| 765 |
+
} else {
|
| 766 |
+
document.getElementById('map').style.height = '400px';
|
| 767 |
+
}
|
| 768 |
+
}
|
| 769 |
+
|
| 770 |
+
// Initial call and event listener
|
| 771 |
+
handleResize();
|
| 772 |
+
window.addEventListener('resize', handleResize);
|
| 773 |
+
</script>
|
| 774 |
+
<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=WDFluho/photoshoot-assistant" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 775 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
make an options panel to chose metric units, make a button for dark mode,
|