Spaces:
Running
Running
undefined - Initial Deployment
Browse files- index.html +176 -395
index.html
CHANGED
|
@@ -3,82 +3,58 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
<style>
|
| 10 |
/* Custom styles */
|
| 11 |
-
.
|
| 12 |
-
transition: all 0.
|
| 13 |
}
|
| 14 |
-
.
|
| 15 |
-
|
| 16 |
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 17 |
}
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
}
|
| 23 |
-
.
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
.status-badge {
|
| 28 |
-
padding: 0.25rem 0.75rem;
|
| 29 |
-
border-radius: 9999px;
|
| 30 |
-
font-size: 0.75rem;
|
| 31 |
-
font-weight: 500;
|
| 32 |
}
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
.create-project-btn {
|
| 39 |
-
position: fixed;
|
| 40 |
-
bottom: 2rem;
|
| 41 |
-
right: 2rem;
|
| 42 |
-
z-index: 50;
|
| 43 |
-
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
.modal {
|
| 47 |
-
transition: opacity 0.25s ease;
|
| 48 |
-
}
|
| 49 |
-
.modal-backdrop {
|
| 50 |
-
background-color: rgba(0, 0, 0, 0.5);
|
| 51 |
-
transition: opacity 0.25s ease;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
.tag {
|
| 55 |
-
transition: all 0.2s ease;
|
| 56 |
}
|
| 57 |
-
.
|
| 58 |
-
|
| 59 |
}
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
border: 2px dashed #e5e7eb;
|
| 63 |
-
transition: all 0.2s ease;
|
| 64 |
}
|
| 65 |
-
.
|
| 66 |
-
|
| 67 |
-
background-color: #eff6ff;
|
| 68 |
}
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
overflow-x: auto;
|
| 73 |
}
|
| 74 |
-
.
|
| 75 |
-
|
| 76 |
-
top: 0;
|
| 77 |
-
background-color: #f9fafb;
|
| 78 |
-
z-index: 10;
|
| 79 |
}
|
| 80 |
-
.
|
| 81 |
-
background-color:
|
|
|
|
| 82 |
}
|
| 83 |
</style>
|
| 84 |
</head>
|
|
@@ -98,7 +74,7 @@
|
|
| 98 |
<i class="fas fa-home"></i>
|
| 99 |
<span>Dashboard</span>
|
| 100 |
</a>
|
| 101 |
-
<a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
|
| 102 |
<i class="fas fa-project-diagram"></i>
|
| 103 |
<span>Projects</span>
|
| 104 |
</a>
|
|
@@ -106,7 +82,7 @@
|
|
| 106 |
<i class="fas fa-users"></i>
|
| 107 |
<span>Participants</span>
|
| 108 |
</a>
|
| 109 |
-
<a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg
|
| 110 |
<i class="fas fa-microphone"></i>
|
| 111 |
<span>Interviews</span>
|
| 112 |
</a>
|
|
@@ -118,6 +94,14 @@
|
|
| 118 |
<i class="fas fa-chart-pie"></i>
|
| 119 |
<span>Analysis</span>
|
| 120 |
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
</nav>
|
| 122 |
|
| 123 |
<div class="p-4 border-t border-indigo-700">
|
|
@@ -128,380 +112,177 @@
|
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
|
| 131 |
-
<!-- Main Content -->
|
| 132 |
<div class="flex-1 flex flex-col overflow-hidden">
|
| 133 |
-
<!--
|
| 134 |
<header class="bg-white shadow-sm p-4">
|
| 135 |
<div class="flex justify-between items-center">
|
|
|
|
| 136 |
<div class="flex items-center space-x-4">
|
| 137 |
-
<
|
| 138 |
-
<
|
| 139 |
-
<li class="flex items-center">
|
| 140 |
-
<a href="dashboard.html" class="text-gray-500 hover:text-gray-700">Dashboard</a>
|
| 141 |
-
<i class="fas fa-chevron-right text-gray-400 mx-2"></i>
|
| 142 |
-
</li>
|
| 143 |
-
<li class="text-gray-700">Projects</li>
|
| 144 |
-
</ol>
|
| 145 |
-
</nav>
|
| 146 |
-
</div>
|
| 147 |
-
<div class="flex items-center space-x-4">
|
| 148 |
-
<button id="viewToggle" class="p-2 rounded-lg hover:bg-gray-100">
|
| 149 |
-
<i class="fas fa-th-large text-gray-600"></i>
|
| 150 |
</button>
|
| 151 |
<div class="relative">
|
| 152 |
-
<input type="text" placeholder="Search
|
| 153 |
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 154 |
</div>
|
| 155 |
</div>
|
| 156 |
</div>
|
| 157 |
</header>
|
| 158 |
|
| 159 |
-
<!-- Main Content
|
| 160 |
-
<
|
| 161 |
-
<
|
| 162 |
-
|
| 163 |
-
<div class="
|
| 164 |
-
<
|
| 165 |
-
|
| 166 |
-
<option value="active">Active</option>
|
| 167 |
-
<option value="paused">Paused</option>
|
| 168 |
-
<option value="completed">Completed</option>
|
| 169 |
-
<option value="archived">Archived</option>
|
| 170 |
-
</select>
|
| 171 |
-
<select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 172 |
-
<option value="">All Methodologies</option>
|
| 173 |
-
<option value="qualitative">Qualitative</option>
|
| 174 |
-
<option value="quantitative">Quantitative</option>
|
| 175 |
-
<option value="mixed">Mixed Methods</option>
|
| 176 |
-
</select>
|
| 177 |
-
<select class="px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 178 |
-
<option value="">All Team Members</option>
|
| 179 |
-
<option value="1">John Doe</option>
|
| 180 |
-
<option value="2">Jane Smith</option>
|
| 181 |
-
</select>
|
| 182 |
</div>
|
|
|
|
| 183 |
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
<div class="
|
| 188 |
-
<
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
<h3 class="text-lg font-semibold text-gray-800">
|
| 192 |
-
</div>
|
| 193 |
-
<div class="flex items-center space-x-2">
|
| 194 |
-
<span class="status-badge status-active">Active</span>
|
| 195 |
-
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 196 |
-
<i class="fas fa-ellipsis-v text-gray-600"></i>
|
| 197 |
-
</button>
|
| 198 |
-
</div>
|
| 199 |
-
</div>
|
| 200 |
-
|
| 201 |
-
<div class="space-y-4">
|
| 202 |
-
<div>
|
| 203 |
-
<p class="text-sm text-gray-600">Research Questions:</p>
|
| 204 |
-
<p class="text-sm text-gray-800 line-clamp-2">How do urban residents perceive and interact with green spaces? What factors influence their usage patterns?</p>
|
| 205 |
-
</div>
|
| 206 |
-
|
| 207 |
-
<div class="flex items-center justify-between">
|
| 208 |
-
<div class="flex items-center space-x-2">
|
| 209 |
-
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span>
|
| 210 |
-
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">#Sustainability</span>
|
| 211 |
-
</div>
|
| 212 |
<div class="flex items-center space-x-2">
|
| 213 |
-
<
|
| 214 |
-
<
|
|
|
|
|
|
|
| 215 |
</div>
|
| 216 |
</div>
|
| 217 |
|
| 218 |
-
<div>
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
<
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
<!-- More Project Cards... -->
|
| 231 |
-
</div>
|
| 232 |
-
|
| 233 |
-
<!-- Table View (Hidden by default) -->
|
| 234 |
-
<div id="tableView" class="hidden">
|
| 235 |
-
<div class="table-container">
|
| 236 |
-
<table class="table-view w-full">
|
| 237 |
-
<thead>
|
| 238 |
-
<tr class="text-left">
|
| 239 |
-
<th class="p-4">Project</th>
|
| 240 |
-
<th class="p-4">Status</th>
|
| 241 |
-
<th class="p-4">Methodology</th>
|
| 242 |
-
<th class="p-4">Progress</th>
|
| 243 |
-
<th class="p-4">Team</th>
|
| 244 |
-
<th class="p-4">Actions</th>
|
| 245 |
-
</tr>
|
| 246 |
-
</thead>
|
| 247 |
-
<tbody>
|
| 248 |
-
<tr>
|
| 249 |
-
<td class="p-4">
|
| 250 |
-
<div class="flex items-center space-x-2">
|
| 251 |
-
<div class="priority-dot priority-high"></div>
|
| 252 |
-
<span class="font-medium">Urban Sustainability Study</span>
|
| 253 |
-
</div>
|
| 254 |
-
</td>
|
| 255 |
-
<td class="p-4">
|
| 256 |
-
<span class="status-badge status-active">Active</span>
|
| 257 |
-
</td>
|
| 258 |
-
<td class="p-4">
|
| 259 |
-
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">Qualitative</span>
|
| 260 |
-
</td>
|
| 261 |
-
<td class="p-4">
|
| 262 |
-
<div class="w-32">
|
| 263 |
-
<div class="h-2 bg-gray-200 rounded-full">
|
| 264 |
-
<div class="h-2 bg-indigo-600 rounded-full" style="width: 45%"></div>
|
| 265 |
-
</div>
|
| 266 |
-
</div>
|
| 267 |
-
</td>
|
| 268 |
-
<td class="p-4">
|
| 269 |
-
<div class="flex -space-x-2">
|
| 270 |
-
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
|
| 271 |
-
<span class="text-xs font-medium text-indigo-800">JD</span>
|
| 272 |
-
</div>
|
| 273 |
-
<div class="w-8 h-8 rounded-full bg-green-100 flex items-center justify-center">
|
| 274 |
-
<span class="text-xs font-medium text-green-800">JS</span>
|
| 275 |
-
</div>
|
| 276 |
-
</div>
|
| 277 |
-
</td>
|
| 278 |
-
<td class="p-4">
|
| 279 |
-
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 280 |
-
<i class="fas fa-ellipsis-v text-gray-600"></i>
|
| 281 |
-
</button>
|
| 282 |
-
</td>
|
| 283 |
-
</tr>
|
| 284 |
-
</tbody>
|
| 285 |
-
</table>
|
| 286 |
-
</div>
|
| 287 |
-
</div>
|
| 288 |
-
</div>
|
| 289 |
-
</main>
|
| 290 |
-
</div>
|
| 291 |
-
</div>
|
| 292 |
-
|
| 293 |
-
<!-- Create Project Button -->
|
| 294 |
-
<button class="create-project-btn p-4 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition-colors">
|
| 295 |
-
<i class="fas fa-plus mr-2"></i>
|
| 296 |
-
Create Project
|
| 297 |
-
</button>
|
| 298 |
-
|
| 299 |
-
<!-- Create Project Modal -->
|
| 300 |
-
<div id="createProjectModal" class="modal hidden fixed inset-0 z-50">
|
| 301 |
-
<div class="modal-backdrop absolute inset-0"></div>
|
| 302 |
-
<div class="relative min-h-screen flex items-center justify-center p-4">
|
| 303 |
-
<div class="bg-white rounded-lg shadow-xl max-w-4xl w-full max-h-[90vh] overflow-y-auto">
|
| 304 |
-
<div class="p-6 border-b border-gray-200">
|
| 305 |
-
<div class="flex justify-between items-center">
|
| 306 |
-
<h3 class="text-xl font-semibold text-gray-800">Create New Project</h3>
|
| 307 |
-
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 308 |
-
<i class="fas fa-times text-gray-600"></i>
|
| 309 |
-
</button>
|
| 310 |
-
</div>
|
| 311 |
-
</div>
|
| 312 |
-
|
| 313 |
-
<div class="p-6">
|
| 314 |
-
<form class="space-y-6">
|
| 315 |
-
<!-- Basic Info -->
|
| 316 |
-
<div>
|
| 317 |
-
<h4 class="text-lg font-medium text-gray-800 mb-4">Basic Information</h4>
|
| 318 |
-
<div class="space-y-4">
|
| 319 |
-
<div>
|
| 320 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Project Title</label>
|
| 321 |
-
<input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" required>
|
| 322 |
-
</div>
|
| 323 |
-
<div>
|
| 324 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Description</label>
|
| 325 |
-
<textarea class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" rows="4"></textarea>
|
| 326 |
-
</div>
|
| 327 |
-
<div class="grid grid-cols-2 gap-4">
|
| 328 |
-
<div>
|
| 329 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Start Date</label>
|
| 330 |
-
<input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 331 |
-
</div>
|
| 332 |
-
<div>
|
| 333 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">End Date</label>
|
| 334 |
-
<input type="date" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 335 |
-
</div>
|
| 336 |
</div>
|
| 337 |
</div>
|
| 338 |
-
</div>
|
| 339 |
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
<
|
| 346 |
-
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 347 |
-
<option value="qualitative">Qualitative</option>
|
| 348 |
-
<option value="quantitative">Quantitative</option>
|
| 349 |
-
<option value="mixed">Mixed Methods</option>
|
| 350 |
-
</select>
|
| 351 |
-
</div>
|
| 352 |
-
<div>
|
| 353 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Research Questions</label>
|
| 354 |
-
<div class="space-y-2">
|
| 355 |
-
<div class="flex items-center space-x-2">
|
| 356 |
-
<input type="text" class="flex-1 px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500" placeholder="Enter research question">
|
| 357 |
-
<button class="p-2 text-gray-600 hover:text-gray-800">
|
| 358 |
-
<i class="fas fa-plus"></i>
|
| 359 |
-
</button>
|
| 360 |
-
</div>
|
| 361 |
-
</div>
|
| 362 |
-
</div>
|
| 363 |
-
<div class="flex items-center">
|
| 364 |
-
<input type="checkbox" id="ethicsApproval" class="h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded">
|
| 365 |
-
<label for="ethicsApproval" class="ml-2 block text-sm text-gray-700">Ethics approval required</label>
|
| 366 |
</div>
|
| 367 |
</div>
|
| 368 |
</div>
|
|
|
|
|
|
|
| 369 |
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
|
|
|
|
|
|
|
|
|
| 377 |
</div>
|
| 378 |
-
<div class="space-y-2">
|
| 379 |
-
<div class="flex items-center justify-between p-2 bg-gray-50 rounded-lg">
|
| 380 |
-
<div class="flex items-center space-x-2">
|
| 381 |
-
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
|
| 382 |
-
<span class="text-xs font-medium text-indigo-800">JD</span>
|
| 383 |
-
</div>
|
| 384 |
-
<span class="text-sm">John Doe</span>
|
| 385 |
-
</div>
|
| 386 |
-
<select class="px-3 py-1 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 387 |
-
<option value="owner">Owner</option>
|
| 388 |
-
<option value="editor">Editor</option>
|
| 389 |
-
<option value="viewer">Viewer</option>
|
| 390 |
-
</select>
|
| 391 |
-
</div>
|
| 392 |
-
</div>
|
| 393 |
-
</div>
|
| 394 |
-
</div>
|
| 395 |
-
|
| 396 |
-
<!-- Document Upload -->
|
| 397 |
-
<div>
|
| 398 |
-
<h4 class="text-lg font-medium text-gray-800 mb-4">Documents</h4>
|
| 399 |
-
<div class="drag-drop-zone p-8 text-center rounded-lg">
|
| 400 |
-
<i class="fas fa-cloud-upload-alt text-4xl text-gray-400 mb-2"></i>
|
| 401 |
-
<p class="text-gray-600">Drag and drop files here or click to browse</p>
|
| 402 |
-
<p class="text-sm text-gray-500 mt-1">Supports PDF, DOCX (max 10MB)</p>
|
| 403 |
</div>
|
| 404 |
</div>
|
| 405 |
-
</
|
| 406 |
</div>
|
|
|
|
| 407 |
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 411 |
</div>
|
| 412 |
</div>
|
| 413 |
</div>
|
| 414 |
</div>
|
| 415 |
|
| 416 |
<script>
|
| 417 |
-
//
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
createProjectModal.classList.remove('hidden');
|
| 438 |
-
document.body.style.overflow = 'hidden';
|
| 439 |
});
|
| 440 |
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
// Drag and Drop
|
| 450 |
-
const dragDropZone = document.querySelector('.drag-drop-zone');
|
| 451 |
-
|
| 452 |
-
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 453 |
-
dragDropZone.addEventListener(eventName, preventDefaults, false);
|
| 454 |
});
|
| 455 |
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
e.stopPropagation();
|
| 459 |
-
}
|
| 460 |
-
|
| 461 |
-
['dragenter', 'dragover'].forEach(eventName => {
|
| 462 |
-
dragDropZone.addEventListener(eventName, highlight, false);
|
| 463 |
-
});
|
| 464 |
-
|
| 465 |
-
['dragleave', 'drop'].forEach(eventName => {
|
| 466 |
-
dragDropZone.addEventListener(eventName, unhighlight, false);
|
| 467 |
-
});
|
| 468 |
-
|
| 469 |
-
function highlight(e) {
|
| 470 |
-
dragDropZone.classList.add('dragover');
|
| 471 |
-
}
|
| 472 |
-
|
| 473 |
-
function unhighlight(e) {
|
| 474 |
-
dragDropZone.classList.remove('dragover');
|
| 475 |
-
}
|
| 476 |
-
|
| 477 |
-
dragDropZone.addEventListener('drop', handleDrop, false);
|
| 478 |
-
|
| 479 |
-
function handleDrop(e) {
|
| 480 |
-
const dt = e.dataTransfer;
|
| 481 |
-
const files = dt.files;
|
| 482 |
-
handleFiles(files);
|
| 483 |
-
}
|
| 484 |
-
|
| 485 |
-
function handleFiles(files) {
|
| 486 |
-
// Handle file upload logic here
|
| 487 |
-
console.log('Files to upload:', files);
|
| 488 |
-
}
|
| 489 |
|
| 490 |
-
//
|
| 491 |
-
let
|
| 492 |
-
const
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
// Simulate auto-save
|
| 498 |
-
console.log('Auto-saving...');
|
| 499 |
-
}, 1500);
|
| 500 |
});
|
| 501 |
|
| 502 |
-
//
|
| 503 |
-
document.
|
| 504 |
-
|
|
|
|
|
|
|
|
|
|
| 505 |
});
|
| 506 |
</script>
|
| 507 |
<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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Interviews - Quantals Collect</title>
|
| 7 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<!-- FullCalendar -->
|
| 10 |
+
<link href='https://cdn.jsdelivr.net/npm/fullcalendar@5.11.3/main.min.css' rel='stylesheet' />
|
| 11 |
+
<script src='https://cdn.jsdelivr.net/npm/fullcalendar@5.11.3/main.min.js'></script>
|
| 12 |
+
<!-- Wavesurfer.js -->
|
| 13 |
+
<script src="https://unpkg.com/wavesurfer.js@6.6.3"></script>
|
| 14 |
+
<!-- TensorFlow.js -->
|
| 15 |
+
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
|
| 16 |
<style>
|
| 17 |
/* Custom styles */
|
| 18 |
+
.sidebar {
|
| 19 |
+
transition: all 0.3s ease;
|
| 20 |
}
|
| 21 |
+
.recording-pulse {
|
| 22 |
+
animation: pulse 2s infinite;
|
|
|
|
| 23 |
}
|
| 24 |
+
@keyframes pulse {
|
| 25 |
+
0% { opacity: 1; }
|
| 26 |
+
50% { opacity: 0.5; }
|
| 27 |
+
100% { opacity: 1; }
|
| 28 |
}
|
| 29 |
+
.waveform-container {
|
| 30 |
+
background: linear-gradient(90deg, #03045e, #accd5a, #fb5607);
|
| 31 |
+
background-size: 400% 400%;
|
| 32 |
+
animation: gradient 5s ease infinite;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
+
@keyframes gradient {
|
| 35 |
+
0% { background-position: 0% 50%; }
|
| 36 |
+
50% { background-position: 100% 50%; }
|
| 37 |
+
100% { background-position: 0% 50%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
+
.metadata-drawer {
|
| 40 |
+
transition: transform 0.3s ease-in-out;
|
| 41 |
}
|
| 42 |
+
.metadata-drawer.open {
|
| 43 |
+
transform: translateY(0);
|
|
|
|
|
|
|
| 44 |
}
|
| 45 |
+
.metadata-drawer.closed {
|
| 46 |
+
transform: translateY(100%);
|
|
|
|
| 47 |
}
|
| 48 |
+
.timestamp-link {
|
| 49 |
+
color: var(--quantals-purple);
|
| 50 |
+
cursor: pointer;
|
|
|
|
| 51 |
}
|
| 52 |
+
.timestamp-link:hover {
|
| 53 |
+
text-decoration: underline;
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
+
.conflict-highlight {
|
| 56 |
+
background-color: rgba(239, 68, 68, 0.1);
|
| 57 |
+
border: 1px solid #ef4444;
|
| 58 |
}
|
| 59 |
</style>
|
| 60 |
</head>
|
|
|
|
| 74 |
<i class="fas fa-home"></i>
|
| 75 |
<span>Dashboard</span>
|
| 76 |
</a>
|
| 77 |
+
<a href="projects.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 78 |
<i class="fas fa-project-diagram"></i>
|
| 79 |
<span>Projects</span>
|
| 80 |
</a>
|
|
|
|
| 82 |
<i class="fas fa-users"></i>
|
| 83 |
<span>Participants</span>
|
| 84 |
</a>
|
| 85 |
+
<a href="interviews.html" class="flex items-center space-x-3 p-2 rounded-lg bg-indigo-700 text-white">
|
| 86 |
<i class="fas fa-microphone"></i>
|
| 87 |
<span>Interviews</span>
|
| 88 |
</a>
|
|
|
|
| 94 |
<i class="fas fa-chart-pie"></i>
|
| 95 |
<span>Analysis</span>
|
| 96 |
</a>
|
| 97 |
+
<a href="ai-assist.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 98 |
+
<i class="fas fa-robot"></i>
|
| 99 |
+
<span>AI Assist</span>
|
| 100 |
+
</a>
|
| 101 |
+
<a href="transcriber.html" class="flex items-center space-x-3 p-2 rounded-lg text-indigo-200 hover:bg-indigo-700 hover:text-white">
|
| 102 |
+
<i class="fas fa-keyboard"></i>
|
| 103 |
+
<span>Transcriber</span>
|
| 104 |
+
</a>
|
| 105 |
</nav>
|
| 106 |
|
| 107 |
<div class="p-4 border-t border-indigo-700">
|
|
|
|
| 112 |
</div>
|
| 113 |
</div>
|
| 114 |
|
| 115 |
+
<!-- Main Content Area -->
|
| 116 |
<div class="flex-1 flex flex-col overflow-hidden">
|
| 117 |
+
<!-- Top Navigation -->
|
| 118 |
<header class="bg-white shadow-sm p-4">
|
| 119 |
<div class="flex justify-between items-center">
|
| 120 |
+
<h2 class="text-xl font-semibold text-gray-800">Interviews</h2>
|
| 121 |
<div class="flex items-center space-x-4">
|
| 122 |
+
<button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700">
|
| 123 |
+
<i class="fas fa-plus mr-2"></i>New Interview
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
</button>
|
| 125 |
<div class="relative">
|
| 126 |
+
<input type="text" placeholder="Search interviews..." class="pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500">
|
| 127 |
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
|
| 128 |
</div>
|
| 129 |
</div>
|
| 130 |
</div>
|
| 131 |
</header>
|
| 132 |
|
| 133 |
+
<!-- Main Content -->
|
| 134 |
+
<div class="flex-1 flex overflow-hidden">
|
| 135 |
+
<!-- Interview Scheduler (Left Panel) -->
|
| 136 |
+
<div class="w-80 border-r border-gray-200 bg-white overflow-y-auto">
|
| 137 |
+
<div class="p-4">
|
| 138 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Schedule</h3>
|
| 139 |
+
<div id="calendar"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
</div>
|
| 141 |
+
</div>
|
| 142 |
|
| 143 |
+
<!-- Recording Workspace (Center Panel) -->
|
| 144 |
+
<div class="flex-1 flex flex-col overflow-hidden">
|
| 145 |
+
<div class="flex-1 p-6 overflow-y-auto">
|
| 146 |
+
<div class="max-w-4xl mx-auto">
|
| 147 |
+
<!-- Recording Controls -->
|
| 148 |
+
<div class="bg-white rounded-xl shadow-sm p-6 mb-6">
|
| 149 |
+
<div class="flex justify-between items-center mb-4">
|
| 150 |
+
<h3 class="text-lg font-semibold text-gray-800">Recording Session</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
<div class="flex items-center space-x-2">
|
| 152 |
+
<span class="text-sm text-gray-500">00:32:45</span>
|
| 153 |
+
<button class="p-2 rounded-full bg-red-500 text-white recording-pulse">
|
| 154 |
+
<i class="fas fa-microphone"></i>
|
| 155 |
+
</button>
|
| 156 |
</div>
|
| 157 |
</div>
|
| 158 |
|
| 159 |
+
<div class="waveform-container h-32 rounded-lg mb-4" id="waveform"></div>
|
| 160 |
+
|
| 161 |
+
<div class="flex justify-center space-x-4">
|
| 162 |
+
<button class="p-3 bg-gray-100 rounded-full hover:bg-gray-200">
|
| 163 |
+
<i class="fas fa-step-backward text-gray-600"></i>
|
| 164 |
+
</button>
|
| 165 |
+
<button class="p-3 bg-gray-100 rounded-full hover:bg-gray-200">
|
| 166 |
+
<i class="fas fa-pause text-gray-600"></i>
|
| 167 |
+
</button>
|
| 168 |
+
<button class="p-3 bg-gray-100 rounded-full hover:bg-gray-200">
|
| 169 |
+
<i class="fas fa-step-forward text-gray-600"></i>
|
| 170 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
</div>
|
| 172 |
</div>
|
|
|
|
| 173 |
|
| 174 |
+
<!-- Live Transcription -->
|
| 175 |
+
<div class="bg-white rounded-xl shadow-sm p-6">
|
| 176 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Live Transcription</h3>
|
| 177 |
+
<div class="h-64 overflow-y-auto p-4 bg-gray-50 rounded-lg">
|
| 178 |
+
<p class="text-gray-600">[10:23] Interviewer: Welcome to our session today...</p>
|
| 179 |
+
<p class="text-gray-600">[10:24] Participant: Thank you for having me...</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
</div>
|
| 181 |
</div>
|
| 182 |
</div>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
|
| 186 |
+
<!-- Live Notes Panel (Right Panel) -->
|
| 187 |
+
<div class="w-80 border-l border-gray-200 bg-white overflow-y-auto">
|
| 188 |
+
<div class="p-4">
|
| 189 |
+
<h3 class="text-lg font-semibold text-gray-800 mb-4">Live Notes</h3>
|
| 190 |
+
<div class="space-y-4">
|
| 191 |
+
<div class="p-4 bg-gray-50 rounded-lg">
|
| 192 |
+
<p class="text-sm text-gray-600">[10:25] Key point about park safety</p>
|
| 193 |
+
<div class="mt-2 flex items-center space-x-2">
|
| 194 |
+
<span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">#safety</span>
|
| 195 |
+
<span class="px-2 py-1 bg-green-100 text-green-800 text-xs rounded-full">#parks</span>
|
| 196 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
</div>
|
| 198 |
</div>
|
| 199 |
+
</div>
|
| 200 |
</div>
|
| 201 |
+
</div>
|
| 202 |
|
| 203 |
+
<!-- Metadata Editor (Bottom Drawer) -->
|
| 204 |
+
<div class="metadata-drawer bg-white border-t border-gray-200 p-4">
|
| 205 |
+
<div class="flex justify-between items-center mb-4">
|
| 206 |
+
<h3 class="text-lg font-semibold text-gray-800">Session Metadata</h3>
|
| 207 |
+
<button class="p-2 hover:bg-gray-100 rounded-lg">
|
| 208 |
+
<i class="fas fa-chevron-down text-gray-600"></i>
|
| 209 |
+
</button>
|
| 210 |
+
</div>
|
| 211 |
+
<div class="grid grid-cols-3 gap-4">
|
| 212 |
+
<div>
|
| 213 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Session Type</label>
|
| 214 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2">
|
| 215 |
+
<option>In-person</option>
|
| 216 |
+
<option>Remote</option>
|
| 217 |
+
</select>
|
| 218 |
+
</div>
|
| 219 |
+
<div>
|
| 220 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Equipment</label>
|
| 221 |
+
<input type="text" class="w-full border border-gray-300 rounded-lg px-3 py-2" placeholder="Enter equipment used">
|
| 222 |
+
</div>
|
| 223 |
+
<div>
|
| 224 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Classification</label>
|
| 225 |
+
<select class="w-full border border-gray-300 rounded-lg px-3 py-2">
|
| 226 |
+
<option>Public</option>
|
| 227 |
+
<option>Confidential</option>
|
| 228 |
+
<option>Restricted</option>
|
| 229 |
+
</select>
|
| 230 |
+
</div>
|
| 231 |
</div>
|
| 232 |
</div>
|
| 233 |
</div>
|
| 234 |
</div>
|
| 235 |
|
| 236 |
<script>
|
| 237 |
+
// Initialize FullCalendar
|
| 238 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 239 |
+
const calendarEl = document.getElementById('calendar');
|
| 240 |
+
const calendar = new FullCalendar.Calendar(calendarEl, {
|
| 241 |
+
initialView: 'timeGridWeek',
|
| 242 |
+
headerToolbar: {
|
| 243 |
+
left: 'prev,next today',
|
| 244 |
+
center: 'title',
|
| 245 |
+
right: 'timeGridWeek,timeGridDay'
|
| 246 |
+
},
|
| 247 |
+
events: [
|
| 248 |
+
{
|
| 249 |
+
title: 'Interview with Maria',
|
| 250 |
+
start: '2024-03-20T10:00:00',
|
| 251 |
+
end: '2024-03-20T11:00:00',
|
| 252 |
+
backgroundColor: '#4f46e5'
|
| 253 |
+
}
|
| 254 |
+
]
|
| 255 |
+
});
|
| 256 |
+
calendar.render();
|
|
|
|
|
|
|
| 257 |
});
|
| 258 |
|
| 259 |
+
// Initialize WaveSurfer
|
| 260 |
+
const wavesurfer = WaveSurfer.create({
|
| 261 |
+
container: '#waveform',
|
| 262 |
+
waveColor: '#ffffff',
|
| 263 |
+
progressColor: '#ffffff',
|
| 264 |
+
height: 100,
|
| 265 |
+
responsive: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 266 |
});
|
| 267 |
|
| 268 |
+
// Load audio file (example)
|
| 269 |
+
// wavesurfer.load('path/to/audio.mp3');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
|
| 271 |
+
// Handle recording state
|
| 272 |
+
let isRecording = false;
|
| 273 |
+
const recordButton = document.querySelector('.recording-pulse');
|
| 274 |
+
recordButton.addEventListener('click', () => {
|
| 275 |
+
isRecording = !isRecording;
|
| 276 |
+
recordButton.classList.toggle('bg-red-500');
|
| 277 |
+
recordButton.classList.toggle('bg-gray-500');
|
|
|
|
|
|
|
|
|
|
| 278 |
});
|
| 279 |
|
| 280 |
+
// Handle metadata drawer
|
| 281 |
+
const metadataDrawer = document.querySelector('.metadata-drawer');
|
| 282 |
+
const toggleDrawer = document.querySelector('.metadata-drawer button');
|
| 283 |
+
toggleDrawer.addEventListener('click', () => {
|
| 284 |
+
metadataDrawer.classList.toggle('open');
|
| 285 |
+
metadataDrawer.classList.toggle('closed');
|
| 286 |
});
|
| 287 |
</script>
|
| 288 |
<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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=dataquantals/quantals-collect" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|