-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
575 lines (502 loc) · 18.9 KB
/
index.html
File metadata and controls
575 lines (502 loc) · 18.9 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenCollab - Real-time Collaborative Coding Platform</title>
<meta name="description" content="A secure, real-time collaborative coding platform for technical interviews and pair programming. Open source and self-hostable.">
<!-- Favicons -->
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
overflow-x: hidden;
}
/* Animated background */
.bg-animation {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: -1;
opacity: 0.3;
}
.bg-animation span {
position: absolute;
display: block;
width: 20px;
height: 20px;
background: rgba(255, 255, 255, 0.2);
animation: move 25s infinite;
bottom: -150px;
}
.bg-animation span:nth-child(1) {
left: 25%;
width: 80px;
height: 80px;
animation-delay: 0s;
}
.bg-animation span:nth-child(2) {
left: 10%;
width: 20px;
height: 20px;
animation-delay: 2s;
animation-duration: 12s;
}
.bg-animation span:nth-child(3) {
left: 70%;
width: 120px;
height: 120px;
animation-delay: 4s;
}
.bg-animation span:nth-child(4) {
left: 40%;
width: 60px;
height: 60px;
animation-delay: 0s;
animation-duration: 18s;
}
.bg-animation span:nth-child(5) {
left: 65%;
width: 20px;
height: 20px;
animation-delay: 0s;
}
.bg-animation span:nth-child(6) {
left: 75%;
width: 110px;
height: 110px;
animation-delay: 3s;
}
.bg-animation span:nth-child(7) {
left: 35%;
width: 150px;
height: 150px;
animation-delay: 7s;
}
.bg-animation span:nth-child(8) {
left: 50%;
width: 25px;
height: 25px;
animation-delay: 15s;
animation-duration: 45s;
}
.bg-animation span:nth-child(9) {
left: 20%;
width: 15px;
height: 15px;
animation-delay: 2s;
animation-duration: 35s;
}
.bg-animation span:nth-child(10) {
left: 85%;
width: 150px;
height: 150px;
animation-delay: 0s;
animation-duration: 11s;
}
@keyframes move {
0% {
transform: translateY(0) rotate(0deg);
opacity: 1;
border-radius: 0;
}
100% {
transform: translateY(-1000px) rotate(720deg);
opacity: 0;
border-radius: 50%;
}
}
/* Main container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
/* Header */
header {
text-align: center;
padding: 60px 20px 40px;
animation: fadeInDown 1s ease;
}
.logo {
display: inline-block;
background: white;
padding: 20px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
margin-bottom: 30px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}
h1 {
color: white;
font-size: 3em;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.tagline {
color: rgba(255,255,255,0.9);
font-size: 1.3em;
margin-bottom: 30px;
}
/* Action buttons */
.cta-buttons {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
margin-bottom: 50px;
animation: fadeInUp 1s ease 0.3s both;
}
.btn {
padding: 15px 35px;
font-size: 1.1em;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 600;
}
.btn-primary {
background: white;
color: #667eea;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.btn-secondary {
background: rgba(255,255,255,0.2);
color: white;
border: 2px solid white;
}
.btn-secondary:hover {
background: white;
color: #667eea;
}
/* Features section */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
margin: 50px 0;
animation: fadeIn 1s ease 0.6s both;
}
.feature-card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.feature-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.feature-icon {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #667eea, #764ba2);
border-radius: 15px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
font-size: 28px;
}
.feature-card h3 {
color: #333;
margin-bottom: 10px;
font-size: 1.3em;
}
.feature-card p {
color: #666;
line-height: 1.6;
}
/* Demo section */
.demo-section {
background: white;
border-radius: 20px;
padding: 40px;
margin: 50px 0;
box-shadow: 0 20px 60px rgba(0,0,0,0.1);
animation: fadeIn 1s ease 0.9s both;
}
.demo-header {
text-align: center;
margin-bottom: 30px;
}
.demo-header h2 {
color: #333;
font-size: 2em;
margin-bottom: 10px;
}
.code-preview {
background: #282c34;
border-radius: 10px;
padding: 20px;
overflow-x: auto;
position: relative;
}
.code-header {
display: flex;
gap: 8px;
margin-bottom: 20px;
}
.code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
pre {
color: #abb2bf;
font-family: 'Monaco', 'Courier New', monospace;
font-size: 14px;
line-height: 1.6;
margin: 0;
}
.code-comment { color: #5c6370; }
.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }
.code-function { color: #61afef; }
/* Tech stack */
.tech-stack {
display: flex;
flex-wrap: wrap;
gap: 15px;
justify-content: center;
margin: 40px 0;
animation: fadeIn 1s ease 1.2s both;
}
.tech-badge {
background: rgba(255,255,255,0.9);
padding: 10px 20px;
border-radius: 25px;
font-weight: 600;
color: #667eea;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.tech-badge:hover {
transform: scale(1.1);
}
/* Footer */
footer {
text-align: center;
padding: 40px 20px;
color: white;
animation: fadeIn 1s ease 1.5s both;
}
footer a {
color: white;
text-decoration: none;
margin: 0 15px;
transition: opacity 0.3s ease;
}
footer a:hover {
opacity: 0.8;
}
/* Animations */
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
/* Responsive */
@media (max-width: 768px) {
h1 { font-size: 2em; }
.tagline { font-size: 1.1em; }
.features { grid-template-columns: 1fr; }
.cta-buttons { flex-direction: column; align-items: center; }
.btn { width: 250px; justify-content: center; }
}
</style>
</head>
<body>
<!-- Animated background -->
<div class="bg-animation">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<div class="container">
<header>
<div class="logo">
<svg width="80" height="80" viewBox="0 0 24 24" fill="none">
<path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" fill="#667eea"/>
<path d="M11 17h2v-6h-2v6zm0-8h2V7h-2v2z" fill="#764ba2"/>
</svg>
</div>
<h1>OpenCollab</h1>
<p class="tagline">Real-time collaborative coding for technical interviews and pair programming</p>
<div class="cta-buttons">
<a href="app.html" class="btn btn-primary">
<span>🚀</span>
<span>Launch App</span>
</a>
<a href="https://github.com/humancto/CollabCode" class="btn btn-secondary">
<span>⭐</span>
<span>Star on GitHub</span>
</a>
</div>
</header>
<div class="features">
<div class="feature-card">
<div class="feature-icon">⚡</div>
<h3>Real-time Collaboration</h3>
<p>See code changes instantly as multiple users type. Perfect for remote interviews and pair programming sessions.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🌍</div>
<h3>16+ Languages</h3>
<p>Support for JavaScript, Python, Java, C++, Go, Rust, Ruby, and more. Syntax highlighting and auto-completion included.</p>
</div>
<div class="feature-card">
<div class="feature-icon">▶️</div>
<h3>Live Code Execution</h3>
<p>Run code directly in the browser or via secure sandboxed environments. See output instantly without leaving the editor.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🔒</div>
<h3>Secure by Design</h3>
<p>JWT authentication, encrypted sessions, and no account required for candidates. Your code and data stay private.</p>
</div>
<div class="feature-card">
<div class="feature-icon">📊</div>
<h3>Interview Analytics</h3>
<p>Track candidate activity, code changes, and session history. Export results to Slack for team collaboration.</p>
</div>
<div class="feature-card">
<div class="feature-icon">🎨</div>
<h3>Beautiful UI</h3>
<p>Clean, modern interface with multiple editor themes. Optimized for both desktop and mobile devices.</p>
</div>
</div>
<div class="demo-section">
<div class="demo-header">
<h2>See It In Action</h2>
<p style="color: #666;">Experience the smooth, real-time collaboration</p>
</div>
<!-- Screenshot Gallery -->
<div style="margin: 30px 0;">
<div style="display: grid; grid-template-columns: 1fr; gap: 30px;">
<!-- Landing Page Screenshot -->
<div style="text-align: center;">
<h3 style="color: #667eea; margin-bottom: 15px;">🏠 Beautiful Landing Page</h3>
<img src="docs/screenshots/landing-page.png" alt="OpenCollab Landing Page" style="width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);">
<p style="color: #666; margin-top: 10px; font-size: 14px;">Clean, modern interface with animated code particles</p>
</div>
<!-- Login Screenshot -->
<div style="text-align: center; margin-top: 20px;">
<h3 style="color: #667eea; margin-bottom: 15px;">🔐 Secure Interviewer Login</h3>
<img src="docs/screenshots/interviewer-login2.png" alt="Interviewer Login" style="width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);">
<p style="color: #666; margin-top: 10px; font-size: 14px;">JWT-based authentication for secure access</p>
</div>
<!-- Admin Dashboard Screenshot -->
<div style="text-align: center; margin-top: 20px;">
<h3 style="color: #667eea; margin-bottom: 15px;">📊 Admin Dashboard</h3>
<img src="docs/screenshots/admin-dashboard.png" alt="Admin Dashboard" style="width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);">
<p style="color: #666; margin-top: 10px; font-size: 14px;">Manage all interview sessions from one place</p>
</div>
<!-- Coding Session Screenshot -->
<div style="text-align: center; margin-top: 20px;">
<h3 style="color: #667eea; margin-bottom: 15px;">💻 Live Coding Session</h3>
<img src="docs/screenshots/coding-session.png" alt="Coding Session" style="width: 100%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);">
<p style="color: #666; margin-top: 10px; font-size: 14px;">Real-time collaborative coding with syntax highlighting</p>
</div>
</div>
</div>
<div class="code-preview" style="margin-top: 40px;">
<div class="code-header">
<span class="code-dot dot-red"></span>
<span class="code-dot dot-yellow"></span>
<span class="code-dot dot-green"></span>
</div>
<pre><code><span class="code-comment">// Real-time collaborative coding example</span>
<span class="code-keyword">function</span> <span class="code-function">fibonacci</span>(n) {
<span class="code-keyword">if</span> (n <= 1) <span class="code-keyword">return</span> n;
<span class="code-keyword">const</span> cache = [0, 1];
<span class="code-keyword">for</span> (<span class="code-keyword">let</span> i = 2; i <= n; i++) {
cache[i] = cache[i - 1] + cache[i - 2];
}
<span class="code-keyword">return</span> cache[n];
}
<span class="code-comment">// Test the function</span>
console.log(<span class="code-string">'Fibonacci(10):'</span>, fibonacci(10));
<span class="code-comment">// Output: 55</span></code></pre>
</div>
</div>
<div class="tech-stack">
<span class="tech-badge">Node.js</span>
<span class="tech-badge">Firebase</span>
<span class="tech-badge">WebSockets</span>
<span class="tech-badge">ACE Editor</span>
<span class="tech-badge">JWT Auth</span>
<span class="tech-badge">Vercel</span>
</div>
<footer>
<p style="margin-bottom: 20px;">Open source and free forever ❤️</p>
<p style="margin-bottom: 20px;">Made with ❤️ by <a href="https://www.humancto.com" style="color: white; text-decoration: underline;">HumanCTO</a></p>
<div style="margin-bottom: 20px;">
<a href="https://github.com/humancto/CollabCode">GitHub</a>
<a href="https://github.com/humancto/CollabCode/wiki">Documentation</a>
<a href="https://github.com/humancto/CollabCode/issues">Support</a>
<a href="LICENSE">MIT License</a>
</div>
<div>
<a href="https://www.buymeacoffee.com/humancto" style="background: #FFDD00; color: #000; padding: 10px 20px; border-radius: 20px; text-decoration: none; font-weight: bold; display: inline-block;">
☕ Buy Me a Coffee
</a>
</div>
</footer>
</div>
</body>
</html>