Spaces:
Running
Running
File size: 27,056 Bytes
828e201 a5d244d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DocSync - Notion Meets AI Chat</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
<style>
.doc-sidebar {
scrollbar-width: thin;
scrollbar-color: #6366f1 transparent;
}
.doc-sidebar::-webkit-scrollbar {
width: 6px;
}
.doc-sidebar::-webkit-scrollbar-thumb {
background-color: #6366f1;
border-radius: 3px;
}
.markdown-preview h1 {
font-size: 2rem;
font-weight: 700;
margin: 1.5rem 0;
}
.markdown-preview h2 {
font-size: 1.5rem;
font-weight: 600;
margin: 1.25rem 0;
}
.markdown-preview p {
margin: 1rem 0;
line-height: 1.6;
}
.markdown-preview ul {
list-style-type: disc;
padding-left: 2rem;
margin: 1rem 0;
}
.markdown-preview ol {
list-style-type: decimal;
padding-left: 2rem;
margin: 1rem 0;
}
.markdown-preview pre {
background-color: #1e293b;
color: #f8fafc;
padding: 1rem;
border-radius: 0.5rem;
overflow-x: auto;
margin: 1rem 0;
}
.markdown-preview code {
background-color: #1e293b;
color: #f8fafc;
padding: 0.2rem 0.4rem;
border-radius: 0.25rem;
font-family: monospace;
}
.agent-message {
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
</style>
</head>
<body class="bg-gray-50 text-gray-900 font-sans">
<div id="vanta-bg" class="fixed inset-0 -z-10 opacity-10"></div>
<!-- Header -->
<header class="bg-white border-b border-gray-200 px-6 py-4 flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="text-indigo-600 font-bold text-2xl flex items-center">
<i data-feather="file-text" class="mr-2"></i>
<span>DocSync</span>
</div>
<nav class="hidden md:flex space-x-6">
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Docs</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Templates</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Agents</a>
<a href="#" class="text-gray-700 hover:text-indigo-600 font-medium">Integrations</a>
</nav>
</div>
<div class="flex items-center space-x-4">
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="search"></i>
</button>
<button class="p-2 rounded-full hover:bg-gray-100">
<i data-feather="bell"></i>
</button>
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="user" class="text-indigo-600"></i>
</div>
</div>
</header>
<div class="flex h-[calc(100vh-73px)]">
<!-- Sidebar -->
<aside class="w-64 bg-white border-r border-gray-200 flex flex-col">
<div class="p-4 border-b border-gray-200">
<button class="w-full flex items-center justify-between px-4 py-2 bg-indigo-50 text-indigo-600 rounded-lg">
<span>New Document</span>
<i data-feather="plus"></i>
</button>
</div>
<div class="flex-1 overflow-y-auto doc-sidebar">
<div class="p-4">
<div class="flex items-center justify-between mb-2">
<h3 class="font-medium text-gray-700">Recent Documents</h3>
<i data-feather="chevron-down" class="text-gray-500"></i>
</div>
<ul class="space-y-1">
<li class="flex items-center px-3 py-2 rounded-lg bg-indigo-50 text-indigo-600">
<i data-feather="file-text" class="mr-3"></i>
<span>Project Overview</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Meeting Notes</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>API Documentation</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>User Research</span>
</li>
</ul>
</div>
<div class="p-4 border-t border-gray-200">
<div class="flex items-center justify-between mb-2">
<h3 class="font-medium text-gray-700">Templates</h3>
<i data-feather="chevron-down" class="text-gray-500"></i>
</div>
<ul class="space-y-1">
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Meeting Notes</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Project Plan</span>
</li>
<li class="flex items-center px-3 py-2 rounded-lg hover:bg-gray-100">
<i data-feather="file-text" class="mr-3 text-gray-500"></i>
<span>Research Report</span>
</li>
</ul>
</div>
</div>
</aside>
<!-- Main Content -->
<main class="flex-1 flex overflow-hidden">
<!-- Document Editor -->
<div class="flex-1 flex flex-col border-r border-gray-200 bg-white">
<div class="p-4 border-b border-gray-200 flex items-center justify-between">
<div class="flex items-center space-x-2">
<input type="text" value="Project Overview" class="text-xl font-semibold bg-transparent border-none focus:ring-2 focus:ring-indigo-100 rounded px-2 py-1">
<span class="text-sm text-gray-500">Last edited 2 hours ago</span>
</div>
<div class="flex items-center space-x-2">
<button class="p-2 rounded hover:bg-gray-100">
<i data-feather="share-2"></i>
</button>
<button class="p-2 rounded hover:bg-gray-100">
<i data-feather="more-vertical"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-6">
<div class="max-w-3xl mx-auto">
<div class="markdown-preview">
<h1>Project Overview</h1>
<p>This document outlines the key objectives, timeline, and deliverables for our upcoming product launch.</p>
<h2>Objectives</h2>
<ul>
<li>Launch new AI-powered documentation tool</li>
<li>Onboard 100+ beta users</li>
<li>Gather feedback for iterative improvements</li>
</ul>
<h2>Timeline</h2>
<p>The project will follow this timeline:</p>
<pre><code>Q1: Research & Planning
Q2: Development
Q3: Beta Testing
Q4: Public Launch</code></pre>
<h2>Team</h2>
<p>Core team members:</p>
<ul>
<li>Product Manager: Jane Doe</li>
<li>Lead Developer: John Smith</li>
<li>UX Designer: Alex Johnson</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Task Pane -->
<div class="w-96 bg-gray-50 flex flex-col border-l border-gray-200">
<div class="p-4 border-b border-gray-200 flex items-center justify-between bg-indigo-50">
<h3 class="font-medium text-indigo-600">Task Wizard</h3>
<div class="flex items-center space-x-2">
<button class="p-1 rounded hover:bg-indigo-100">
<i data-feather="plus" class="w-4 h-4 text-indigo-600"></i>
</button>
<button class="p-1 rounded hover:bg-indigo-100">
<i data-feather="settings" class="w-4 h-4 text-indigo-600"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between cursor-pointer">
<div class="flex items-center">
<i data-feather="list" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Project Plan</span>
</div>
<i data-feather="chevron-down" class="text-gray-500 w-4 h-4"></i>
</div>
<div class="p-3 space-y-3">
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-4 h-4 rounded-full border-2 border-indigo-400 mr-2 flex items-center justify-center">
<div class="w-2 h-2 rounded-full bg-indigo-600 animate-pulse"></div>
</div>
<span>Research phase</span>
</div>
<div class="flex space-x-1">
<div class="w-2 h-2 rounded-full bg-green-400 animate-pulse"></div>
<div class="w-2 h-2 rounded-full bg-yellow-400 animate-pulse delay-100"></div>
<div class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse delay-200"></div>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<i data-feather="check-circle" class="text-green-500 mr-2 w-4 h-4"></i>
<span class="text-gray-500">Planning complete</span>
</div>
</div>
</div>
</div>
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between cursor-pointer">
<div class="flex items-center">
<i data-feather="check-square" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">To-Do List</span>
</div>
<i data-feather="chevron-down" class="text-gray-500 w-4 h-4"></i>
</div>
<div class="p-3 space-y-2">
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span>Outline document structure</span>
</div>
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
<span>Add research references</span>
</div>
<div class="flex items-center">
<input type="checkbox" class="mr-2 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500" checked>
<span class="text-gray-400 line-through">Create initial draft</span>
</div>
</div>
</div>
<div class="bg-white rounded-lg border border-gray-200 overflow-hidden">
<div class="p-3 bg-gray-50 border-b border-gray-200 flex items-center justify-between">
<div class="flex items-center">
<i data-feather="zap" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Task Execution</span>
</div>
<div class="flex items-center">
<span class="text-xs bg-indigo-100 text-indigo-600 px-2 py-1 rounded-full">3 agents working</span>
</div>
</div>
<div class="p-3 space-y-3">
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Generating summary</p>
<p class="text-xs text-gray-500">Agent #1 analyzing document</p>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Formatting content</p>
<p class="text-xs text-gray-500">Agent #2 applying styles</p>
</div>
</div>
<div class="flex items-center space-x-3">
<div class="animate-spin">
<i data-feather="loader" class="w-4 h-4 text-indigo-600"></i>
</div>
<div class="flex-1">
<p class="text-sm font-medium">Checking references</p>
<p class="text-xs text-gray-500">Agent #3 verifying sources</p>
</div>
</div>
</div>
</div>
<div class="bg-indigo-50 rounded-lg p-4">
<div class="flex items-center mb-2">
<i data-feather="check-circle" class="text-indigo-600 mr-2 w-4 h-4"></i>
<span class="font-medium">Task Summary</span>
</div>
<p class="text-sm text-gray-700">Completed 5/8 tasks. Generated document outline, created initial draft, and formatted headings. Research references pending.</p>
</div>
</div>
</div>
<!-- AI Chat Panel -->
<div class="w-96 bg-gray-50 flex flex-col border-l border-gray-200">
<div class="p-4 border-b border-gray-200 flex items-center justify-between">
<h3 class="font-medium">AI Assistant</h3>
<div class="flex items-center space-x-2">
<button class="p-1 rounded hover:bg-gray-200">
<i data-feather="refresh-cw" class="w-4 h-4"></i>
</button>
<button class="p-1 rounded hover:bg-gray-200">
<i data-feather="settings" class="w-4 h-4"></i>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="agent-message bg-indigo-50 p-4 rounded-lg">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<p class="text-gray-700 mt-1">I can help you edit this document. What would you like to do?</p>
</div>
</div>
</div>
<div class="agent-message bg-white p-4 rounded-lg border border-gray-200">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-gray-100 flex items-center justify-center mr-3">
<i data-feather="user" class="text-gray-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-gray-600">You</p>
<p class="text-gray-700 mt-1">Summarize the timeline section</p>
</div>
</div>
</div>
<div class="agent-message bg-indigo-50 p-4 rounded-lg">
<div class="flex items-start">
<div class="w-8 h-8 rounded-full bg-indigo-100 flex items-center justify-center mr-3">
<i data-feather="cpu" class="text-indigo-600 w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-indigo-600">DocSync AI</p>
<p class="text-gray-700 mt-1">The timeline is divided into four quarters:</p>
<ul class="list-disc pl-5 mt-2 space-y-1">
<li>Q1: Research & Planning</li>
<li>Q2: Development</li>
<li>Q3: Beta Testing</li>
<li>Q4: Public Launch</li>
</ul>
<div class="mt-3 flex space-x-2">
<button class="text-sm px-3 py-1 bg-indigo-100 text-indigo-600 rounded-full hover:bg-indigo-200">Insert into doc</button>
<button class="text-sm px-3 py-1 bg-white text-gray-600 rounded-full hover:bg-gray-100 border border-gray-200">Regenerate</button>
</div>
</div>
</div>
</div>
</div>
<div class="p-4 border-t border-gray-200">
<div class="relative">
<input type="text" placeholder="Ask the AI to edit or create content..." class="w-full pl-4 pr-12 py-3 bg-white border border-gray-300 rounded-lg focus:ring-2 focus:ring-indigo-100 focus:border-indigo-300">
<button class="absolute right-3 top-3 text-indigo-600">
<i data-feather="send"></i>
</button>
</div>
<div class="mt-2 flex justify-between text-xs text-gray-500">
<span>AI may produce inaccurate information</span>
<button class="text-indigo-600 hover:underline">View examples</button>
</div>
</div>
</div>
</main>
</div>
<script>
// Task pane toggle functionality
document.querySelectorAll('[data-task-toggle]').forEach(button => {
button.addEventListener('click', () => {
const content = button.nextElementSibling;
const icon = button.querySelector('i');
if (content.classList.contains('hidden')) {
content.classList.remove('hidden');
icon.setAttribute('data-feather', 'chevron-up');
} else {
content.classList.add('hidden');
icon.setAttribute('data-feather', 'chevron-down');
}
feather.replace();
});
});
// Simulate task progress
function simulateTaskProgress() {
setTimeout(() => {
const checkboxes = document.querySelectorAll('input[type="checkbox"]:not(:checked)');
if (checkboxes.length > 0) {
checkboxes[0].click();
setTimeout(simulateTaskProgress, 2000);
}
}, 3000);
}
simulateTaskProgress();
</script>
<script>
</script>
</body>
</html>
|