-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
590 lines (530 loc) · 21.7 KB
/
index.html
File metadata and controls
590 lines (530 loc) · 21.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Doable - Hackathon Presentation</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<!-- Import Markdown Parser for AI response -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<style>
/* CORE SETUP */
* { box-sizing: border-box; }
body {
background-color: #f1f5f9; /* Light grey background for the window */
display: grid;
gap: 20px;
grid-template-columns: 1fr;
margin: 0;
min-height: 100vh;
padding: 20px 0;
place-items: center;
font-family: 'Inter', sans-serif;
}
/* SLIDE CONTAINER - STRICT 1280x720 */
.slide-container {
background-color: #ffffff; /* STRICT WHITE BACKGROUND */
border-radius: 0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
display: flex;
flex-direction: column;
height: 720px;
overflow: hidden;
padding: 60px 80px;
position: relative;
width: 1280px;
}
/* TYPOGRAPHY */
h1, h2, h3, h4, p, li { color: #0f172a; margin: 0; }
h1 {
font-size: 72px;
font-weight: 700;
letter-spacing: -1.5px;
line-height: 1.1;
margin-bottom: 16px;
}
.subtitle {
font-size: 32px;
font-weight: 300;
color: #64748b;
letter-spacing: -0.5px;
}
.slide-title {
font-size: 42px;
font-weight: 600;
letter-spacing: -1px;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid #e2e8f0;
width: 100%;
}
h3 {
font-size: 24px;
font-weight: 600;
margin-bottom: 12px;
color: #334155;
}
p, li {
font-size: 20px;
line-height: 1.6;
color: #475569;
}
/* ACCENTS */
.accent-text {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
/* LAYOUTS */
.content-area {
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: center;
width: 100%;
}
/* Two Column - Modified to be text focused if needed */
.two-column {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
width: 100%;
height: 100%;
align-items: center;
}
/* Single Column Centered */
.single-column {
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
height: 100%;
}
/* Tiled Content */
.tiled-content {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
width: 100%;
}
.tile {
background-color: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 30px;
transition: all 0.3s ease;
}
.tile:hover {
border-color: #6366f1;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
/* List Styling */
ul {
list-style-type: disc; /* Standard bullets */
padding-left: 20px;
margin: 0;
}
ul li {
margin-bottom: 16px;
}
/* Footer */
.slide-footer {
position: absolute;
bottom: 40px;
right: 80px;
text-align: right;
font-size: 14px;
color: #94a3b8;
border-top: 1px solid #e2e8f0;
padding-top: 10px;
}
/* Timeline */
.timeline-container {
position: relative;
padding: 40px 0;
width: 100%;
}
.timeline-line {
position: absolute;
left: 50px;
top: 0;
bottom: 0;
width: 2px;
background: #e2e8f0;
}
.timeline-item {
position: relative;
margin-bottom: 40px;
padding-left: 80px;
}
.timeline-dot {
position: absolute;
left: 41px;
top: 5px;
width: 20px;
height: 20px;
border-radius: 50%;
background: white;
border: 4px solid #4f46e5;
}
/* Tag */
.tag {
display: inline-block;
padding: 6px 12px;
background-color: #e0e7ff;
color: #4338ca;
border-radius: 20px;
font-size: 14px;
font-weight: 600;
margin-bottom: 20px;
}
/* Center Content Utility */
.center-slide {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.center-slide h2 { margin-bottom: 20px; }
/* DEMO INTERFACE STYLES */
.demo-interface {
width: 100%;
height: 100%;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
}
.demo-input-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.demo-textarea {
width: 100%;
height: 200px;
padding: 20px;
border: 2px solid #e2e8f0;
border-radius: 12px;
font-family: 'Inter', sans-serif;
font-size: 16px;
resize: none;
transition: border-color 0.2s;
}
.demo-textarea:focus {
outline: none;
border-color: #4f46e5;
}
.demo-btn {
background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
color: white;
border: none;
padding: 15px;
border-radius: 8px;
font-size: 18px;
font-weight: 600;
cursor: pointer;
transition: transform 0.1s;
}
.demo-btn:hover {
transform: scale(1.02);
}
.demo-btn:active {
transform: scale(0.98);
}
.demo-btn:disabled {
opacity: 0.7;
cursor: not-allowed;
}
.demo-output {
background: #f8fafc;
border-radius: 12px;
padding: 20px;
border: 1px solid #e2e8f0;
overflow-y: auto;
font-size: 15px;
}
/* Custom styles for AI output */
.task-card {
background: white;
padding: 15px;
margin-bottom: 10px;
border-radius: 8px;
border-left: 4px solid #cbd5e1;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.task-card.high { border-left-color: #ef4444; }
.task-card.medium { border-left-color: #f59e0b; }
.task-card.low { border-left-color: #10b981; }
.task-header {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-weight: 600;
font-size: 16px;
}
.task-meta {
font-size: 13px;
color: #64748b;
}
</style>
</head>
<body>
<!-- Slide 1: Title -->
<div class="slide-container" id="slide1">
<div class="content-area" style="text-align: left; justify-content: flex-end; padding-bottom: 60px;">
<div style="z-index: 1; max-width: 80%;">
<span class="tag">BMW Challenge Submission</span>
<h1><span class="accent-text">Doable</span></h1>
<p class="subtitle" style="color: #0f172a; margin-bottom: 40px;">The AI Personal Productivity Agent.<br>Redefining Task Management with Agentic Intelligence.</p>
<div style="display: flex; gap: 40px; font-size: 16px; color: #64748b;">
<div>
<strong>Team Name:</strong><br>Doable
</div>
<div>
<strong>Presenters:</strong><br>Rayyan Nafees & Zuhair Arif
</div>
</div>
</div>
</div>
<div class="slide-footer">
<p style="font-size: 14px; margin:0;">BMW Challenge Submission</p>
<p style="font-size: 14px; margin:0;">December 30, 2025</p>
</div>
</div>
<!-- Slide 2: Problem -->
<div class="slide-container" id="slide2">
<h2 class="slide-title">The Productivity Paradox</h2>
<div class="content-area">
<div class="two-column">
<div>
<h3 style="font-size: 32px; margin-bottom: 30px;">Drowning in tasks,<br>starving for <span class="accent-text">context</span>.</h3>
<p>Modern professionals juggle an average of <strong>4+ isolated tools</strong> daily for task tracking and communication.</p>
<br>
<div class="tile" style="background: #fff; border-left: 4px solid #ef4444;">
<p style="font-size: 18px; margin: 0; color: #333;"><strong>The Pain Point:</strong><br>Context switching consumes up to 40% of productive time. Traditional tools are passive—they record, but don't assist.</p>
</div>
</div>
<div>
<ul style="font-size: 22px;">
<li style="margin-bottom: 30px;"><strong>Overwhelming Complexity</strong><br><span style="font-size: 18px; color: #64748b;">Manual conversion of messages into tasks creates high cognitive load.</span></li>
<li style="margin-bottom: 30px;"><strong>Lack of "Why"</strong><br><span style="font-size: 18px; color: #64748b;">Task lists are static and disconnected from personal goals or psychological motivators.</span></li>
<li><strong>Static Tools</strong><br><span style="font-size: 18px; color: #64748b;">No active reasoning or planning capabilities.</span></li>
</ul>
</div>
</div>
</div>
</div>
<!-- Slide 3: Solution -->
<div class="slide-container" id="slide3">
<h2 class="slide-title">Enter <span class="accent-text">Doable</span></h2>
<div class="content-area single-column">
<h3>Innovative Agentic Workflow</h3>
<p style="margin-bottom: 30px; font-size: 24px;">An intelligent assistant that bridges the gap between intent (Natural Language) and action.</p>
<div style="background-color: #f8fafc; padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0;">
<ul>
<li style="margin-bottom: 20px;"><strong>Intelligent Assistant:</strong> Persona-based agent tailored for specific roles (e.g., Software Developers).</li>
<li style="margin-bottom: 20px;"><strong>True Agency:</strong> Utilizes "Agentic" behavior to reason, plan, and execute independently.</li>
<li><strong>Context-Aware:</strong> Understands the "Who", "What", and "Why" behind every task.</li>
</ul>
</div>
</div>
</div>
<!-- Slide 4: Core Capabilities -->
<div class="slide-container" id="slide4">
<h2 class="slide-title">Powered by Advanced NLP & Reasoning</h2>
<div class="content-area">
<div class="tiled-content">
<div class="tile">
<h3>Natural Language Parsing</h3>
<p style="font-size: 16px;">"Schedule a 2-hour coding session after lunch"</p>
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 15px 0;">
<p style="font-size: 16px; color: #4f46e5;"><strong>Auto-Action:</strong> Understands temporal context and user intent.</p>
</div>
<div class="tile">
<h3>Smart Task Management</h3>
<p style="font-size: 16px;">Automated Priority Ranking & Effort Estimation.</p>
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 15px 0;">
<p style="font-size: 16px; color: #4f46e5;"><strong>Memory:</strong> Retains long-term context for recurring projects.</p>
</div>
<div class="tile">
<h3>Proactive Insights</h3>
<p style="font-size: 16px;">Anticipates bottlenecks before they happen.</p>
<hr style="border: 0; border-top: 1px solid #e2e8f0; margin: 15px 0;">
<p style="font-size: 16px; color: #4f46e5;"><strong>Guidance:</strong> Suggests breaks and workload rebalancing.</p>
</div>
</div>
</div>
</div>
<!-- Slide 5: Features Dashboard -->
<div class="slide-container" id="slide5">
<div class="content-area single-column">
<span class="tag">Visualized</span>
<h2 style="font-size: 48px; margin-bottom: 30px;">A Modern, Dynamic Dashboard</h2>
<div style="background-color: #f8fafc; padding: 40px; border-radius: 12px; border: 1px solid #e2e8f0;">
<ul style="font-size: 20px;">
<li style="margin-bottom: 25px;"><strong>Eisenhower Matrix:</strong> Auto-sorting tasks by Urgency vs. Importance.</li>
<li style="margin-bottom: 25px;"><strong>Focus Mode:</strong> Distraction-free interface for deep work sessions.</li>
<li style="margin-bottom: 25px;"><strong>Daily Analytics:</strong> Visual breakdown of productivity trends and completion rates.</li>
</ul>
</div>
</div>
</div>
<!-- Slide 6: Architecture -->
<div class="slide-container" id="slide6">
<h2 class="slide-title">Built on Modern Stack</h2>
<div class="content-area single-column">
<div class="tiled-content" style="grid-template-columns: 1fr 1fr;">
<div class="tile">
<h3>Frontend & AI</h3>
<ul style="font-size: 18px;">
<li style="margin-bottom: 15px;"><strong>Frontend:</strong> Next.js 15 (App Router), React, TailwindCSS, Shadcn/UI.</li>
<li><strong>AI Engine:</strong> Google Gemini 2.5 Flash (Multimodal).</li>
</ul>
</div>
<div class="tile">
<h3>Backend & Observability</h3>
<ul style="font-size: 18px;">
<li style="margin-bottom: 15px;"><strong>Server:</strong> Model Context Protocol (MCP).</li>
<li style="margin-bottom: 15px;"><strong>Frameworks:</strong> <code>xmcp</code> (TypeScript) & <code>agno</code> (Python).</li>
<li><strong>Tracing:</strong> Langfuse Integration with OpenTelemetry.</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Slide 7: Conversational AI -->
<div class="slide-container" id="slide7">
<h2 class="slide-title">The Multimodal Edge</h2>
<div class="content-area single-column">
<div style="margin-bottom: 40px;">
<h3 style="color: #4f46e5; font-size: 32px; margin-bottom: 20px;">Agentic Voice & Audio</h3>
<p>Leveraging Gemini TTS and ASR for human-level interaction.</p>
</div>
<div class="tiled-content">
<div class="tile">
<h3>Director's Mode</h3>
<p>Context-aware tone (e.g., "Firm" for deadlines, "Upbeat" for wins).</p>
</div>
<div class="tile">
<h3>Meeting to Task</h3>
<p>Upload audio → Extract action items instantly.</p>
</div>
<div class="tile">
<h3>Nuance Detection</h3>
<p>Analyzes pitch/tone to detect user stress or fatigue.</p>
</div>
</div>
</div>
</div>
<!-- Slide 8: Roadmap -->
<div class="slide-container" id="slide8">
<h2 class="slide-title">The Path Ahead</h2>
<div class="content-area">
<div class="timeline-container">
<div class="timeline-line"></div>
<div class="timeline-item">
<div class="timeline-dot"></div>
<h3>Phase 1: Autonomous Reasoning</h3>
<p>Expanding self-reflection cycles for higher task execution accuracy.</p>
</div>
<div class="timeline-item">
<div class="timeline-dot"></div>
<h3>Phase 2: Predictive Workflows</h3>
<p>Using historical data to automate recurring task patterns and suggestion engines.</p>
</div>
<div class="timeline-item">
<div class="timeline-dot"></div>
<h3>Phase 3: Native Voice Interface</h3>
<p>Full bidirectional, real-time voice conversations via Live API.</p>
</div>
</div>
</div>
</div>
<!-- Slide 9: LIVE DEMO (NEW) -->
<div class="slide-container" id="slide9">
<h2 class="slide-title">Experience Doable <span class="accent-text">Live</span></h2>
<p class="subtitle" style="font-size: 20px; margin-bottom: 20px;">
Test the <strong>Gemini 2.5 Flash</strong> reasoning engine. Enter a messy "Brain Dump" below:
</p>
<div class="demo-interface">
<div class="demo-input-container">
<textarea class="demo-textarea" id="brainDumpInput" placeholder="e.g. I need to fix the login bug by 2pm, call the client about the new designs, and remind Sarah to submit the report..."></textarea>
<button class="demo-btn" onclick="organizeTasks()">✨ Organize with Gemini</button>
<p style="font-size: 14px; color: #94a3b8;">* This actually calls the Gemini API live.</p>
</div>
<div class="demo-output" id="demoOutput">
<div style="height:100%; display:flex; align-items:center; justify-content:center; color:#94a3b8; flex-direction:column;">
<i class="fa-solid fa-bolt" style="font-size: 24px; margin-bottom: 10px;"></i>
Waiting for input...
</div>
</div>
</div>
</div>
<!-- Slide 10: Conclusion -->
<div class="slide-container center-slide" id="slide10">
<h2 style="font-size: 80px; margin-bottom: 20px;"><span class="accent-text">Make It Doable.</span></h2>
<p style="font-size: 28px; max-width: 800px; margin-bottom: 50px;">Intelligent. Agentic. Psychologically-aware.<br>Experience the future of work today.</p>
</div>
<!-- Gemini API Integration Script -->
<script>
async function organizeTasks() {
const input = document.getElementById('brainDumpInput').value;
const outputDiv = document.getElementById('demoOutput');
const btn = document.querySelector('.demo-btn');
if (!input.trim()) {
alert("Please enter some text first!");
return;
}
// UI Loading State
btn.disabled = true;
btn.innerHTML = '<i class="fa-solid fa-spinner fa-spin"></i> Reasoning...';
outputDiv.innerHTML = '<div style="padding:20px; text-align:center; color:#64748b;">Analysing context and priorities...</div>';
const apiKey = ""; // API Key provided by runtime
const url = `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-preview-09-2025:generateContent?key=${apiKey}`;
const systemPrompt = `
You are Doable, an elite productivity AI.
Your goal is to take unstructured text and convert it into a set of HTML Task Cards.
For each task found in the text, generate a div with class 'task-card' and an additional class based on priority: 'high', 'medium', or 'low'.
Inside the div:
1. A header div with class 'task-header' containing the Task Name and a span with the Priority level.
2. A div with class 'task-meta' containing Estimated Time and Category.
Example format:
<div class="task-card high">
<div class="task-header">Fix Login Bug <span>HIGH</span></div>
<div class="task-meta">Est: 2 hours | Category: Development</div>
</div>
Return ONLY the raw HTML string for the cards. Do not include markdown formatting or \`\`\` tags.
`;
const payload = {
contents: [{ parts: [{ text: input }] }],
systemInstruction: { parts: [{ text: systemPrompt }] }
};
try {
const response = await fetch(url, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(payload)
});
const data = await response.json();
if (data.error) {
throw new Error(data.error.message);
}
const aiResponse = data.candidates[0].content.parts[0].text;
// Clean up if the model returned markdown code blocks despite instructions
const cleanHtml = aiResponse.replace(/```html/g, '').replace(/```/g, '');
outputDiv.innerHTML = cleanHtml;
} catch (error) {
outputDiv.innerHTML = `<div style="color:red; padding:10px;">Error: ${error.message}</div>`;
} finally {
btn.disabled = false;
btn.innerHTML = '✨ Organize with Gemini';
}
}
</script>
<!-- Font Awesome for Icons (re-added strictly for the Demo UI) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
</body>
</html>