forked from humancto/CollabCode
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
Latest commit
575 lines (502 loc) · 18.9 KB
/
Copy pathindex.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>
<htmllang="en">
<head>
<metacharset="UTF-8">
<metaname="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenCollab - Real-time Collaborative Coding Platform</title>
<metaname="description" content="A secure, real-time collaborative coding platform for technical interviews and pair programming. Open source and self-hostable.">
<!-- Favicons -->
<linkrel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<linkrel="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,#667eea0%,#764ba2100%);
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-animationspan {
position: absolute;
display: block;
width:20px;
height:20px;
background:rgba(255,255,255,0.2);
animation: move 25s infinite;
bottom:-150px;
}
.bg-animationspan:nth-child(1) {
left:25%;
width:80px;
height:80px;
animation-delay:0s;
}
.bg-animationspan:nth-child(2) {
left:10%;
width:20px;
height:20px;
animation-delay:2s;
animation-duration:12s;
}
.bg-animationspan:nth-child(3) {
left:70%;
width:120px;
height:120px;
animation-delay:4s;
}
.bg-animationspan:nth-child(4) {
left:40%;
width:60px;
height:60px;
animation-delay:0s;
animation-duration:18s;
}
.bg-animationspan:nth-child(5) {
left:65%;
width:20px;
height:20px;
animation-delay:0s;
}
.bg-animationspan:nth-child(6) {
left:75%;
width:110px;
height:110px;
animation-delay:3s;
}
.bg-animationspan:nth-child(7) {
left:35%;
width:150px;
height:150px;
animation-delay:7s;
}
.bg-animationspan:nth-child(8) {
left:50%;
width:25px;
height:25px;
animation-delay:15s;
animation-duration:45s;
}
.bg-animationspan:nth-child(9) {
left:20%;
width:15px;
height:15px;
animation-delay:2s;
animation-duration:35s;
}
.bg-animationspan: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:60px20px40px;
animation: fadeInDown 1s ease;
}
.logo {
display: inline-block;
background: white;
padding:20px;
border-radius:20px;
box-shadow:010px40pxrgba(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:2px2px4pxrgba(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:15px35px;
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:010px30pxrgba(0,0,0,0.2);
}
.btn-primary:hover {
transform:translateY(-3px);
box-shadow:015px40pxrgba(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:50px0;
animation: fadeIn 1s ease 0.6s both;
}
.feature-card {
background: white;
padding:30px;
border-radius:15px;
box-shadow:010px30pxrgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.feature-card:hover {
transform:translateY(-5px);
box-shadow:015px40pxrgba(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-cardh3 {
color:#333;
margin-bottom:10px;
font-size:1.3em;
}
.feature-cardp {
color:#666;
line-height:1.6;
}
/* Demo section */
.demo-section {
background: white;
border-radius:20px;
padding:40px;
margin:50px0;
box-shadow:020px60pxrgba(0,0,0,0.1);
animation: fadeIn 1s ease 0.9s both;
}
.demo-header {
text-align: center;
margin-bottom:30px;
}
.demo-headerh2 {
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:40px0;
animation: fadeIn 1s ease 1.2s both;
}
.tech-badge {
background:rgba(255,255,255,0.9);
padding:10px20px;
border-radius:25px;
font-weight:600;
color:#667eea;
box-shadow:05px15pxrgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.tech-badge:hover {
transform:scale(1.1);
}
/* Footer */
footer {
text-align: center;
padding:40px20px;
color: white;
animation: fadeIn 1s ease 1.5s both;
}
footera {
color: white;
text-decoration: none;
margin:015px;
transition: opacity 0.3s ease;
}
footera: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 -->
<divclass="bg-animation">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<divclass="container">
<header>
<divclass="logo">
<svgwidth="80" height="80" viewBox="0 0 24 24" fill="none">
<pathd="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"/>
<pathd="M11 17h2v-6h-2v6zm0-8h2V7h-2v2z" fill="#764ba2"/>
</svg>
</div>
<h1>OpenCollab</h1>
<pclass="tagline">Real-time collaborative coding for technical interviews and pair programming</p>
<divclass="cta-buttons">
<ahref="app.html" class="btn btn-primary">
<span>🚀</span>
<span>Launch App</span>
</a>
<ahref="https://github.com/humancto/CollabCode" class="btn btn-secondary">
<span>⭐</span>
<span>Star on GitHub</span>
</a>
</div>
</header>
<divclass="features">
<divclass="feature-card">
<divclass="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>
<divclass="feature-card">
<divclass="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>
<divclass="feature-card">
<divclass="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>
<divclass="feature-card">
<divclass="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>
<divclass="feature-card">
<divclass="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>
<divclass="feature-card">
<divclass="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>
<divclass="demo-section">
<divclass="demo-header">
<h2>See It In Action</h2>
<pstyle="color: #666;">Experience the smooth, real-time collaboration</p>
</div>
<!-- Screenshot Gallery -->
<divstyle="margin: 30px 0;">
<divstyle="display: grid; grid-template-columns: 1fr; gap: 30px;">
<!-- Landing Page Screenshot -->
<divstyle="text-align: center;">
<h3style="color: #667eea; margin-bottom: 15px;">🏠 Beautiful Landing Page</h3>
<imgsrc="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);">
<pstyle="color: #666; margin-top: 10px; font-size: 14px;">Clean, modern interface with animated code particles</p>
</div>
<!-- Login Screenshot -->
<divstyle="text-align: center; margin-top: 20px;">
<h3style="color: #667eea; margin-bottom: 15px;">🔐 Secure Interviewer Login</h3>
<imgsrc="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);">
<pstyle="color: #666; margin-top: 10px; font-size: 14px;">JWT-based authentication for secure access</p>
</div>
<!-- Admin Dashboard Screenshot -->
<divstyle="text-align: center; margin-top: 20px;">
<h3style="color: #667eea; margin-bottom: 15px;">📊 Admin Dashboard</h3>
<imgsrc="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);">
<pstyle="color: #666; margin-top: 10px; font-size: 14px;">Manage all interview sessions from one place</p>
</div>
<!-- Coding Session Screenshot -->
<divstyle="text-align: center; margin-top: 20px;">
<h3style="color: #667eea; margin-bottom: 15px;">💻 Live Coding Session</h3>
<imgsrc="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);">
<pstyle="color: #666; margin-top: 10px; font-size: 14px;">Real-time collaborative coding with syntax highlighting</p>
</div>
</div>
</div>
<divclass="code-preview" style="margin-top: 40px;">
<divclass="code-header">
<spanclass="code-dot dot-red"></span>
<spanclass="code-dot dot-yellow"></span>
<spanclass="code-dot dot-green"></span>
</div>
<pre><code><spanclass="code-comment">// Real-time collaborative coding example</span>
<spanclass="code-keyword">function</span><spanclass="code-function">fibonacci</span>(n) {
<spanclass="code-keyword">if</span> (n <= 1) <spanclass="code-keyword">return</span> n;
<spanclass="code-keyword">const</span> cache = [0, 1];
<spanclass="code-keyword">for</span> (<spanclass="code-keyword">let</span> i = 2; i <= n; i++) {
cache[i] = cache[i - 1] + cache[i - 2];
}
<spanclass="code-keyword">return</span> cache[n];
}
<spanclass="code-comment">// Test the function</span>
console.log(<spanclass="code-string">'Fibonacci(10):'</span>, fibonacci(10));
<spanclass="code-comment">// Output: 55</span></code></pre>
</div>
</div>
<divclass="tech-stack">
<spanclass="tech-badge">Node.js</span>
<spanclass="tech-badge">Firebase</span>
<spanclass="tech-badge">WebSockets</span>
<spanclass="tech-badge">ACE Editor</span>
<spanclass="tech-badge">JWT Auth</span>
<spanclass="tech-badge">Vercel</span>
</div>
<footer>
<pstyle="margin-bottom: 20px;">Open source and free forever ❤️</p>
<pstyle="margin-bottom: 20px;">Made with ❤️ by <ahref="https://www.humancto.com" style="color: white; text-decoration: underline;">HumanCTO</a></p>
<divstyle="margin-bottom: 20px;">
<ahref="https://github.com/humancto/CollabCode">GitHub</a>
<ahref="https://github.com/humancto/CollabCode/wiki">Documentation</a>
<ahref="https://github.com/humancto/CollabCode/issues">Support</a>
<ahref="LICENSE">MIT License</a>
</div>
<div>
<ahref="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>