ItsMpilo commited on
Commit
cbe204b
·
verified ·
1 Parent(s): 62d7b4a

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. assets/css/styles.css +783 -0
  2. assets/js/main.js +296 -0
  3. index.html +435 -19
assets/css/styles.css ADDED
@@ -0,0 +1,783 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ :root {
8
+ --primary: #667eea;
9
+ --primary-dark: #5a67d8;
10
+ --secondary: #764ba2;
11
+ --text: #2d3748;
12
+ --text-light: #718096;
13
+ --bg: #f7fafc;
14
+ --white: #ffffff;
15
+ --border: #e2e8f0;
16
+ --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
17
+ --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
18
+ }
19
+
20
+ body {
21
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
22
+ line-height: 1.6;
23
+ color: var(--text);
24
+ background: var(--bg);
25
+ }
26
+
27
+ .container {
28
+ max-width: 1200px;
29
+ margin: 0 auto;
30
+ padding: 0 20px;
31
+ }
32
+
33
+ /* Header */
34
+ .header {
35
+ background: var(--white);
36
+ border-bottom: 1px solid var(--border);
37
+ position: fixed;
38
+ width: 100%;
39
+ top: 0;
40
+ z-index: 1000;
41
+ }
42
+
43
+ .header-content {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: space-between;
47
+ padding: 1rem 0;
48
+ }
49
+
50
+ .logo {
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 0.5rem;
54
+ font-weight: 600;
55
+ font-size: 1.25rem;
56
+ }
57
+
58
+ .nav {
59
+ display: flex;
60
+ gap: 2rem;
61
+ }
62
+
63
+ .nav a {
64
+ text-decoration: none;
65
+ color: var(--text);
66
+ font-weight: 500;
67
+ transition: color 0.3s;
68
+ }
69
+
70
+ .nav a:hover {
71
+ color: var(--primary);
72
+ }
73
+
74
+ .built-with {
75
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
76
+ color: white;
77
+ padding: 0.5rem 1rem;
78
+ border-radius: 20px;
79
+ text-decoration: none;
80
+ font-size: 0.875rem;
81
+ font-weight: 500;
82
+ transition: transform 0.3s;
83
+ }
84
+
85
+ .built-with:hover {
86
+ transform: translateY(-2px);
87
+ }
88
+
89
+ /* Hero Section */
90
+ .hero {
91
+ margin-top: 80px;
92
+ padding: 4rem 0;
93
+ background: linear-gradient(135deg, #667eea15, #764ba215);
94
+ }
95
+
96
+ .hero-content {
97
+ display: grid;
98
+ grid-template-columns: 1fr 1fr;
99
+ gap: 4rem;
100
+ align-items: center;
101
+ }
102
+
103
+ .hero-title {
104
+ font-size: 3.5rem;
105
+ font-weight: 700;
106
+ line-height: 1.2;
107
+ margin-bottom: 1rem;
108
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
109
+ -webkit-background-clip: text;
110
+ -webkit-text-fill-color: transparent;
111
+ }
112
+
113
+ .hero-subtitle {
114
+ font-size: 1.25rem;
115
+ color: var(--text-light);
116
+ margin-bottom: 2rem;
117
+ }
118
+
119
+ .hero-stats {
120
+ display: flex;
121
+ gap: 2rem;
122
+ margin-bottom: 2rem;
123
+ }
124
+
125
+ .stat {
126
+ text-align: center;
127
+ }
128
+
129
+ .stat-number {
130
+ display: block;
131
+ font-size: 2rem;
132
+ font-weight: 700;
133
+ color: var(--primary);
134
+ }
135
+
136
+ .stat-label {
137
+ font-size: 0.875rem;
138
+ color: var(--text-light);
139
+ }
140
+
141
+ .cta-button {
142
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
143
+ color: white;
144
+ border: none;
145
+ padding: 1rem 2rem;
146
+ font-size: 1.125rem;
147
+ font-weight: 600;
148
+ border-radius: 8px;
149
+ cursor: pointer;
150
+ transition: transform 0.3s, box-shadow 0.3s;
151
+ }
152
+
153
+ .cta-button:hover {
154
+ transform: translateY(-2px);
155
+ box-shadow: var(--shadow);
156
+ }
157
+
158
+ .hero-visual {
159
+ display: flex;
160
+ justify-content: center;
161
+ }
162
+
163
+ .video-preview {
164
+ background: var(--white);
165
+ border-radius: 16px;
166
+ padding: 2rem;
167
+ box-shadow: var(--shadow);
168
+ width: 100%;
169
+ max-width: 400px;
170
+ }
171
+
172
+ .preview-avatars {
173
+ display: flex;
174
+ justify-content: space-around;
175
+ margin-bottom: 2rem;
176
+ }
177
+
178
+ .avatar {
179
+ width: 80px;
180
+ height: 80px;
181
+ border-radius: 50%;
182
+ background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
183
+ position: relative;
184
+ transition: transform 0.3s;
185
+ }
186
+
187
+ .avatar.speaking {
188
+ animation: speak 0.5s ease-in-out infinite;
189
+ }
190
+
191
+ .avatar-face {
192
+ position: absolute;
193
+ top: 50%;
194
+ left: 50%;
195
+ transform: translate(-50%, -50%);
196
+ width: 60px;
197
+ height: 60px;
198
+ background: #9ca3af;
199
+ border-radius: 50%;
200
+ }
201
+
202
+ @keyframes speak {
203
+ 0%, 100% { transform: scale(1); }
204
+ 50% { transform: scale(1.05); }
205
+ }
206
+
207
+ .waveform {
208
+ display: flex;
209
+ justify-content: center;
210
+ align-items: center;
211
+ gap: 4px;
212
+ height: 40px;
213
+ }
214
+
215
+ .wave-bar {
216
+ width: 4px;
217
+ background: linear-gradient(to top, var(--primary), var(--secondary));
218
+ border-radius: 2px;
219
+ animation: wave 1s ease-in-out infinite;
220
+ }
221
+
222
+ .wave-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
223
+ .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 30px; }
224
+ .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
225
+ .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 35px; }
226
+ .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 28px; }
227
+
228
+ @keyframes wave {
229
+ 0%, 100% { transform: scaleY(0.5); }
230
+ 50% { transform: scaleY(1); }
231
+ }
232
+
233
+ /* Generator Section */
234
+ .generator-section {
235
+ padding: 4rem 0;
236
+ background: var(--white);
237
+ }
238
+
239
+ .section-title {
240
+ font-size: 2.5rem;
241
+ font-weight: 700;
242
+ text-align: center;
243
+ margin-bottom: 3rem;
244
+ }
245
+
246
+ .generator-container {
247
+ display: grid;
248
+ grid-template-columns: 200px 1fr;
249
+ gap: 2rem;
250
+ max-width: 1000px;
251
+ margin: 0 auto;
252
+ }
253
+
254
+ .generator-sidebar {
255
+ background: var(--bg);
256
+ border-radius: 12px;
257
+ padding: 1.5rem;
258
+ height: fit-content;
259
+ }
260
+
261
+ .step {
262
+ display: flex;
263
+ align-items: center;
264
+ gap: 1rem;
265
+ padding: 1rem;
266
+ margin-bottom: 0.5rem;
267
+ border-radius: 8px;
268
+ cursor: pointer;
269
+ transition: all 0.3s;
270
+ }
271
+
272
+ .step.active {
273
+ background: var(--primary);
274
+ color: white;
275
+ }
276
+
277
+ .step:hover:not(.active) {
278
+ background: var(--white);
279
+ }
280
+
281
+ .step-number {
282
+ width: 32px;
283
+ height: 32px;
284
+ border-radius: 50%;
285
+ background: var(--white);
286
+ color: var(--text);
287
+ display: flex;
288
+ align-items: center;
289
+ justify-content: center;
290
+ font-weight: 600;
291
+ }
292
+
293
+ .step.active .step-number {
294
+ background: rgba(255, 255, 255, 0.2);
295
+ color: white;
296
+ }
297
+
298
+ .step-label {
299
+ font-weight: 500;
300
+ }
301
+
302
+ .generator-content {
303
+ background: var(--white);
304
+ border-radius: 12px;
305
+ padding: 2rem;
306
+ box-shadow: var(--shadow-sm);
307
+ }
308
+
309
+ .step-panel {
310
+ display: none;
311
+ }
312
+
313
+ .step-panel.active {
314
+ display: block;
315
+ }
316
+
317
+ .step-panel h3 {
318
+ font-size: 1.5rem;
319
+ margin-bottom: 1.5rem;
320
+ }
321
+
322
+ .config-grid {
323
+ display: grid;
324
+ grid-template-columns: 1fr 1fr;
325
+ gap: 1.5rem;
326
+ margin-bottom: 2rem;
327
+ }
328
+
329
+ .form-group {
330
+ display: flex;
331
+ flex-direction: column;
332
+ }
333
+
334
+ .form-group label {
335
+ font-weight: 500;
336
+ margin-bottom: 0.5rem;
337
+ color: var(--text);
338
+ }
339
+
340
+ .form-group input,
341
+ .form-group select {
342
+ padding: 0.75rem;
343
+ border: 1px solid var(--border);
344
+ border-radius: 6px;
345
+ font-size: 1rem;
346
+ transition: border-color 0.3s;
347
+ }
348
+
349
+ .form-group input:focus,
350
+ .form-group select:focus {
351
+ outline: none;
352
+ border-color: var(--primary);
353
+ }
354
+
355
+ .next-btn, .prev-btn, .generate-btn {
356
+ padding: 0.75rem 1.5rem;
357
+ border: none;
358
+ border-radius: 6px;
359
+ font-weight: 600;
360
+ cursor: pointer;
361
+ transition: all 0.3s;
362
+ }
363
+
364
+ .next-btn, .generate-btn {
365
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
366
+ color: white;
367
+ }
368
+
369
+ .next-btn:hover, .generate-btn:hover {
370
+ transform: translateY(-2px);
371
+ box-shadow: var(--shadow-sm);
372
+ }
373
+
374
+ .prev-btn {
375
+ background: var(--bg);
376
+ color: var(--text);
377
+ margin-right: 1rem;
378
+ }
379
+
380
+ .prev-btn:hover {
381
+ background: var(--border);
382
+ }
383
+
384
+ .step-buttons {
385
+ display: flex;
386
+ justify-content: space-between;
387
+ margin-top: 2rem;
388
+ }
389
+
390
+ .generate-btn {
391
+ width: 100%;
392
+ font-size: 1.125rem;
393
+ padding: 1rem;
394
+ margin-top: 2rem;
395
+ }
396
+
397
+ .btn-loader {
398
+ display: inline-block;
399
+ width: 20px;
400
+ height: 20px;
401
+ border: 3px solid rgba(255, 255, 255, 0.3);
402
+ border-radius: 50%;
403
+ border-top-color: white;
404
+ animation: spin 1s ease-in-out infinite;
405
+ }
406
+
407
+ @keyframes spin {
408
+ to { transform: rotate(360deg); }
409
+ }
410
+
411
+ /* Audio Upload */
412
+ .audio-upload-container {
413
+ display: flex;
414
+ flex-direction: column;
415
+ gap: 2rem;
416
+ }
417
+
418
+ .audio-upload-item {
419
+ border: 1px solid var(--border);
420
+ border-radius: 8px;
421
+ padding: 1.5rem;
422
+ }
423
+
424
+ .audio-upload-item label {
425
+ display: block;
426
+ font-weight: 600;
427
+ margin-bottom: 1rem;
428
+ }
429
+
430
+ .upload-zone {
431
+ border: 2px dashed var(--border);
432
+ border-radius: 8px;
433
+ padding: 2rem;
434
+ text-align: center;
435
+ cursor: pointer;
436
+ transition: all 0.3s;
437
+ }
438
+
439
+ .upload-zone:hover {
440
+ border-color: var(--primary);
441
+ background: var(--bg);
442
+ }
443
+
444
+ .upload-zone svg {
445
+ color: var(--text-light);
446
+ margin-bottom: 1rem;
447
+ }
448
+
449
+ .upload-zone span {
450
+ display: block;
451
+ color: var(--text);
452
+ font-weight: 500;
453
+ margin-bottom: 0.5rem;
454
+ }
455
+
456
+ .upload-zone small {
457
+ color: var(--text-light);
458
+ }
459
+
460
+ .audio-preview {
461
+ margin-top: 1rem;
462
+ padding: 1rem;
463
+ background: var(--bg);
464
+ border-radius: 6px;
465
+ }
466
+
467
+ /* Avatar Selection */
468
+ .avatar-options {
469
+ display: grid;
470
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
471
+ gap: 1rem;
472
+ margin-bottom: 2rem;
473
+ }
474
+
475
+ .avatar-option {
476
+ text-align: center;
477
+ padding: 1rem;
478
+ border: 2px solid var(--border);
479
+ border-radius: 8px;
480
+ cursor: pointer;
481
+ transition: all 0.3s;
482
+ }
483
+
484
+ .avatar-option:hover {
485
+ border-color: var(--primary);
486
+ }
487
+
488
+ .avatar-option.selected {
489
+ border-color: var(--primary);
490
+ background: var(--bg);
491
+ }
492
+
493
+ .avatar-preview {
494
+ width: 80px;
495
+ height: 80px;
496
+ border-radius: 50%;
497
+ margin: 0 auto 0.5rem;
498
+ position: relative;
499
+ overflow: hidden;
500
+ }
501
+
502
+ .avatar-preview::after {
503
+ content: '';
504
+ position: absolute;
505
+ bottom: 0;
506
+ left: 0;
507
+ right: 0;
508
+ height: 30px;
509
+ background: #4a5568;
510
+ }
511
+
512
+ .business-man { background: linear-gradient(135deg, #cbd5e0, #a0aec0); }
513
+ .business-woman { background: linear-gradient(135deg, #fed7e2, #fbb6ce); }
514
+ .casual-man { background: linear-gradient(135deg, #bee3f8, #90cdf4); }
515
+ .casual-woman { background: linear-gradient(135deg, #c6f6d5, #9ae6b4); }
516
+ .professor { background: linear-gradient(135deg, #e9d8fd, #d6bcfa); }
517
+ .student { background: linear-gradient(135deg, #feebc8, #fbd38d); }
518
+
519
+ .avatar-option span {
520
+ font-size: 0.875rem;
521
+ font-weight: 500;
522
+ }
523
+
524
+ /* Generation Summary */
525
+ .generation-summary {
526
+ background: var(--bg);
527
+ border-radius: 8px;
528
+ padding: 1.5rem;
529
+ margin-bottom: 2rem;
530
+ }
531
+
532
+ .summary-item {
533
+ display: flex;
534
+ justify-content: space-between;
535
+ margin-bottom: 0.75rem;
536
+ }
537
+
538
+ .summary-item:last-child {
539
+ margin-bottom: 0;
540
+ }
541
+
542
+ .summary-item label {
543
+ font-weight: 600;
544
+ color: var(--text-light);
545
+ }
546
+
547
+ /* Preview Section */
548
+ .preview-section {
549
+ padding: 4rem 0;
550
+ background: var(--bg);
551
+ }
552
+
553
+ .video-player {
554
+ background: var(--white);
555
+ border-radius: 12px;
556
+ overflow: hidden;
557
+ box-shadow: var(--shadow);
558
+ margin-bottom: 2rem;
559
+ }
560
+
561
+ .video-player video {
562
+ width: 100%;
563
+ height: auto;
564
+ }
565
+
566
+ .video-actions {
567
+ display: flex;
568
+ justify-content: center;
569
+ gap: 1rem;
570
+ }
571
+
572
+ .action-btn {
573
+ display: flex;
574
+ align-items: center;
575
+ gap: 0.5rem;
576
+ padding: 0.75rem 1.5rem;
577
+ border: none;
578
+ border-radius: 6px;
579
+ font-weight: 600;
580
+ cursor: pointer;
581
+ transition: all 0.3s;
582
+ }
583
+
584
+ .download-btn {
585
+ background: linear-gradient(135deg, #48bb78, #38a169);
586
+ color: white;
587
+ }
588
+
589
+ .share-btn {
590
+ background: linear-gradient(135deg, #4299e1, #3182ce);
591
+ color: white;
592
+ }
593
+
594
+ .edit-btn {
595
+ background: linear-gradient(135deg, #ed8936, #dd6b20);
596
+ color: white;
597
+ }
598
+
599
+ .action-btn:hover {
600
+ transform: translateY(-2px);
601
+ box-shadow: var(--shadow-sm);
602
+ }
603
+
604
+ /* Features Section */
605
+ .features {
606
+ padding: 4rem 0;
607
+ background: var(--white);
608
+ }
609
+
610
+ .features-grid {
611
+ display: grid;
612
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
613
+ gap: 2rem;
614
+ margin-top: 3rem;
615
+ }
616
+
617
+ .feature-card {
618
+ background: var(--bg);
619
+ border-radius: 12px;
620
+ padding: 2rem;
621
+ text-align: center;
622
+ transition: transform 0.3s, box-shadow 0.3s;
623
+ }
624
+
625
+ .feature-card:hover {
626
+ transform: translateY(-5px);
627
+ box-shadow: var(--shadow);
628
+ }
629
+
630
+ .feature-icon {
631
+ display: inline-flex;
632
+ align-items: center;
633
+ justify-content: center;
634
+ width: 80px;
635
+ height: 80px;
636
+ background: linear-gradient(135deg, var(--primary), var(--secondary));
637
+ color: white;
638
+ border-radius: 50%;
639
+ margin-bottom: 1.5rem;
640
+ }
641
+
642
+ .feature-card h3 {
643
+ font-size: 1.25rem;
644
+ margin-bottom: 1rem;
645
+ }
646
+
647
+ .feature-card p {
648
+ color: var(--text-light);
649
+ line-height: 1.6;
650
+ }
651
+
652
+ /* Footer */
653
+ .footer {
654
+ background: var(--text);
655
+ color: white;
656
+ padding: 3rem 0 1rem;
657
+ }
658
+
659
+ .footer-content {
660
+ display: grid;
661
+ grid-template-columns: 1fr 2fr;
662
+ gap: 3rem;
663
+ margin-bottom: 2rem;
664
+ }
665
+
666
+ .footer-brand p {
667
+ color: #a0aec0;
668
+ margin-top: 1rem;
669
+ }
670
+
671
+ .footer-links {
672
+ display: grid;
673
+ grid-template-columns: repeat(3, 1fr);
674
+ gap: 2rem;
675
+ }
676
+
677
+ .footer-links h4 {
678
+ margin-bottom: 1rem;
679
+ color: white;
680
+ }
681
+
682
+ .footer-links a {
683
+ display: block;
684
+ color: #a0aec0;
685
+ text-decoration: none;
686
+ margin-bottom: 0.5rem;
687
+ transition: color 0.3s;
688
+ }
689
+
690
+ .footer-links a:hover {
691
+ color: white;
692
+ }
693
+
694
+ .footer-bottom {
695
+ border-top: 1px solid #4a5568;
696
+ padding-top: 1rem;
697
+ text-align: center;
698
+ color: #a0aec0;
699
+ }
700
+
701
+ /* Responsive Design */
702
+ @media (max-width: 768px) {
703
+ .hero-content {
704
+ grid-template-columns: 1fr;
705
+ gap: 2rem;
706
+ }
707
+
708
+ .hero-title {
709
+ font-size: 2.5rem;
710
+ }
711
+
712
+ .hero-stats {
713
+ justify-content: center;
714
+ }
715
+
716
+ .generator-container {
717
+ grid-template-columns: 1fr;
718
+ }
719
+
720
+ .generator-sidebar {
721
+ display: flex;
722
+ overflow-x: auto;
723
+ padding: 1rem;
724
+ gap: 1rem;
725
+ }
726
+
727
+ .step {
728
+ min-width: 120px;
729
+ }
730
+
731
+ .config-grid {
732
+ grid-template-columns: 1fr;
733
+ }
734
+
735
+ .avatar-options {
736
+ grid-template-columns: repeat(2, 1fr);
737
+ }
738
+
739
+ .footer-content {
740
+ grid-template-columns: 1fr;
741
+ gap: 2rem;
742
+ }
743
+
744
+ .footer-links {
745
+ grid-template-columns: 1fr;
746
+ gap: 1rem;
747
+ }
748
+
749
+ .nav {
750
+ display: none;
751
+ }
752
+ }
753
+
754
+ /* Toast Notification */
755
+ .toast {
756
+ position: fixed;
757
+ bottom: 20px;
758
+ right: 20px;
759
+ background: var(--text);
760
+ color: white;
761
+ padding: 1rem 1.5rem;
762
+ border-radius: 8px;
763
+ box-shadow: var(--shadow);
764
+ z-index: 9999;
765
+ transform: translateX(400px);
766
+ transition: transform 0.3s;
767
+ }
768
+
769
+ .toast.show {
770
+ transform: translateX(0);
771
+ }
772
+
773
+ .toast.success {
774
+ background: linear-gradient(135deg, #48bb78, #38a169);
775
+ }
776
+
777
+ .toast.error {
778
+ background: linear-gradient(135deg, #f56565, #e53e3e);
779
+ }
780
+
781
+ .toast.info {
782
+ background: linear-gradient(135deg, #4299e1, #3182ce);
783
+ }
assets/js/main.js ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ let currentStep = 1;
2
+ let audioFiles = {};
3
+ let selectedAvatars = [];
4
+
5
+ function nextStep() {
6
+ if (validateCurrentStep()) {
7
+ if (currentStep < 4) {
8
+ document.querySelector(`.step[data-step="${currentStep}"]`).classList.remove('active');
9
+ document.getElementById(`step${currentStep}`).classList.remove('active');
10
+ currentStep++;
11
+ document.querySelector(`.step[data-step="${currentStep}"]`).classList.add('active');
12
+ document.getElementById(`step${currentStep}`).classList.add('active');
13
+
14
+ if (currentStep === 4) {
15
+ updateGenerationSummary();
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ function prevStep() {
22
+ if (currentStep > 1) {
23
+ document.querySelector(`.step[data-step="${currentStep}"]`).classList.remove('active');
24
+ document.getElementById(`step${currentStep}`).classList.remove('active');
25
+ currentStep--;
26
+ document.querySelector(`.step[data-step="${currentStep}"]`).classList.add('active');
27
+ document.getElementById(`step${currentStep}`).classList.add('active');
28
+ }
29
+ }
30
+
31
+ function validateCurrentStep() {
32
+ if (currentStep === 1) {
33
+ const title = document.getElementById('videoTitle').value;
34
+ if (!title) {
35
+ showToast('Please enter a video title', 'error');
36
+ return false;
37
+ }
38
+ } else if (currentStep === 2) {
39
+ const numSpeakers = parseInt(document.getElementById('numSpeakers').value);
40
+ for (let i = 1; i <= numSpeakers; i++) {
41
+ if (!audioFiles[i]) {
42
+ showToast(`Please upload audio for Speaker ${i}`, 'error');
43
+ return false;
44
+ }
45
+ }
46
+ } else if (currentStep === 3) {
47
+ const numSpeakers = parseInt(document.getElementById('numSpeakers').value);
48
+ const selectedOptions = document.querySelectorAll('.avatar-option.selected');
49
+ if (selectedOptions.length !== numSpeakers) {
50
+ showToast(`Please select ${numSpeakers} avatars`, 'error');
51
+ return false;
52
+ }
53
+ }
54
+ return true;
55
+ }
56
+
57
+ function updateSpeakerCount() {
58
+ const numSpeakers = parseInt(document.getElementById('numSpeakers').value);
59
+ const container = document.getElementById('audioUploadContainer');
60
+
61
+ if (currentStep === 1 || currentStep === 2) {
62
+ container.innerHTML = '';
63
+ for (let i = 1; i <= numSpeakers; i++) {
64
+ const audioItem = document.createElement('div');
65
+ audioItem.className = 'audio-upload-item';
66
+ audioItem.setAttribute('data-speaker', i);
67
+ audioItem.innerHTML = `
68
+ <label>Speaker ${i} Audio</label>
69
+ <div class="upload-zone" onclick="document.getElementById('audio${i}').click()">
70
+ <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
71
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
72
+ <polyline points="17 8 12 3 7 8"></polyline>
73
+ <line x1="12" y1="3" x2="12" y2="15"></line>
74
+ </svg>
75
+ <span>Click to upload or drag & drop</span>
76
+ <small>MP3, WAV, M4A (Max 120MB)</small>
77
+ </div>
78
+ <input type="file" id="audio${i}" accept="audio/*" style="display: none;" onchange="handleAudioUpload(this, ${i})">
79
+ <div class="audio-preview" style="display: none;">
80
+ <div class="audio-info"></div>
81
+ </div>
82
+ `;
83
+ container.appendChild(audioItem);
84
+ }
85
+ }
86
+ }
87
+
88
+ function handleAudioUpload(input, speakerId) {
89
+ const file = input.files[0];
90
+ if (file) {
91
+ audioFiles[speakerId] = file;
92
+ const preview = input.parentElement.querySelector('.audio-preview');
93
+ const uploadZone = input.parentElement.querySelector('.upload-zone');
94
+ const audioInfo = preview.querySelector('.audio-info');
95
+
96
+ preview.style.display = 'block';
97
+ uploadZone.style.display = 'none';
98
+ audioInfo.innerHTML = `
99
+ <strong>${file.name}</strong><br>
100
+ Size: ${(file.size / 1024 / 1024).toFixed(2)} MB<br>
101
+ Type: ${file.type}
102
+ `;
103
+
104
+ showToast(`Audio for Speaker ${speakerId} uploaded successfully`, 'success');
105
+ }
106
+ }
107
+
108
+ // Avatar selection
109
+ document.addEventListener('DOMContentLoaded', function() {
110
+ const avatarOptions = document.querySelectorAll('.avatar-option');
111
+ avatarOptions.forEach(option => {
112
+ option.addEventListener('click', function() {
113
+ const numSpeakers = parseInt(document.getElementById('numSpeakers').value);
114
+ const selectedOptions = document.querySelectorAll('.avatar-option.selected');
115
+
116
+ if (selectedOptions.length >= numSpeakers && !this.classList.contains('selected')) {
117
+ showToast(`You can only select ${numSpeakers} avatars`, 'info');
118
+ return;
119
+ }
120
+
121
+ this.classList.toggle('selected');
122
+ updateSelectedAvatars();
123
+ });
124
+ });
125
+
126
+ // Update speaker count on change
127
+ document.getElementById('numSpeakers').addEventListener('change', updateSpeakerCount);
128
+
129
+ // Initialize drag and drop
130
+ initDragAndDrop();
131
+ });
132
+
133
+ function updateSelectedAvatars() {
134
+ selectedAvatars = [];
135
+ document.querySelectorAll('.avatar-option.selected').forEach(option => {
136
+ selectedAvatars.push(option.dataset.avatar);
137
+ });
138
+ }
139
+
140
+ function updateGenerationSummary() {
141
+ const duration = document.getElementById('duration').options[document.getElementById('duration').selectedIndex].text;
142
+ const numSpeakers = document.getElementById('numSpeakers').value;
143
+ const background = document.getElementById('background').options[document.getElementById('background').selectedIndex].text;
144
+
145
+ document.getElementById('summaryDuration').textContent = duration;
146
+ document.getElementById('summarySpeakers').textContent = numSpeakers;
147
+ document.getElementById('summaryBackground').textContent = background;
148
+ }
149
+
150
+ function startGeneration() {
151
+ const btn = event.target;
152
+ const btnText = btn.querySelector('.btn-text');
153
+ const btnLoader = btn.querySelector('.btn-loader');
154
+
155
+ btnText.style.display = 'none';
156
+ btnLoader.style.display = 'inline-block';
157
+ btn.disabled = true;
158
+
159
+ // Simulate generation process
160
+ setTimeout(() => {
161
+ btnText.style.display = 'inline';
162
+ btnLoader.style.display = 'none';
163
+ btn.disabled = false;
164
+
165
+ // Show preview section
166
+ document.querySelector('.generator-section').style.display = 'none';
167
+ document.getElementById('previewSection').style.display = 'block';
168
+
169
+ // Simulate video URL
170
+ const video = document.getElementById('generatedVideo');
171
+ video.src = 'https://www.w3schools.com/html/mov_bbb.mp4';
172
+
173
+ showToast('Video generated successfully!', 'success');
174
+
175
+ // Scroll to preview
176
+ document.getElementById('previewSection').scrollIntoView({ behavior: 'smooth' });
177
+ }, 3000);
178
+ }
179
+
180
+ function downloadVideo() {
181
+ showToast('Preparing download...', 'info');
182
+ setTimeout(() => {
183
+ showToast('Download started!', 'success');
184
+ }, 1500);
185
+ }
186
+
187
+ function shareVideo() {
188
+ if (navigator.share) {
189
+ navigator.share({
190
+ title: 'Generated Conversational Video',
191
+ text: 'Check out this AI-generated conversational video!',
192
+ url: window.location.href
193
+ });
194
+ } else {
195
+ showToast('Share link copied to clipboard!', 'success');
196
+ }
197
+ }
198
+
199
+ function resetGenerator() {
200
+ currentStep = 1;
201
+ audioFiles = {};
202
+ selectedAvatars = [];
203
+
204
+ // Reset form
205
+ document.getElementById('videoTitle').value = '';
206
+ document.getElementById('duration').selectedIndex = 0;
207
+ document.getElementById('numSpeakers').selectedIndex = 0;
208
+ document.getElementById('background').selectedIndex = 0;
209
+
210
+ // Reset steps
211
+ document.querySelectorAll('.step').forEach(step => step.classList.remove('active'));
212
+ document.querySelectorAll('.step-panel').forEach(panel => panel.classList.remove('active'));
213
+ document.querySelector('.step[data-step="1"]').classList.add('active');
214
+ document.getElementById('step1').classList.add('active');
215
+
216
+ // Reset avatar selection
217
+ document.querySelectorAll('.avatar-option').forEach(option => option.classList.remove('selected'));
218
+
219
+ // Hide preview, show generator
220
+ document.getElementById('previewSection').style.display = 'none';
221
+ document.querySelector('.generator-section').style.display = 'block';
222
+
223
+ // Scroll to generator
224
+ document.getElementById('generator').scrollIntoView({ behavior: 'smooth' });
225
+ }
226
+
227
+ function scrollToGenerator() {
228
+ document.getElementById('generator').scrollIntoView({ behavior: 'smooth' });
229
+ }
230
+
231
+ function showToast(message, type = 'info') {
232
+ const toast = document.createElement('div');
233
+ toast.className = `toast ${type}`;
234
+ toast.textContent = message;
235
+ document.body.appendChild(toast);
236
+
237
+ setTimeout(() => toast.classList.add('show'), 100);
238
+ setTimeout(() => {
239
+ toast.classList.remove('show');
240
+ setTimeout(() => toast.remove(), 300);
241
+ }, 3000);
242
+ }
243
+
244
+ function initDragAndDrop() {
245
+ document.addEventListener('dragover', (e) => {
246
+ if (e.target.classList.contains('upload-zone')) {
247
+ e.preventDefault();
248
+ e.target.style.borderColor = 'var(--primary)';
249
+ e.target.style.background = 'var(--bg)';
250
+ }
251
+ });
252
+
253
+ document.addEventListener('dragleave', (e) => {
254
+ if (e.target.classList.contains('upload-zone')) {
255
+ e.target.style.borderColor = 'var(--border)';
256
+ e.target.style.background = 'transparent';
257
+ }
258
+ });
259
+
260
+ document.addEventListener('drop', (e) => {
261
+ if (e.target.classList.contains('upload-zone')) {
262
+ e.preventDefault();
263
+ e.target.style.borderColor = 'var(--border)';
264
+ e.target.style.background = 'transparent';
265
+
266
+ const files = e.dataTransfer.files;
267
+ if (files.length > 0) {
268
+ const speakerId = e.target.parentElement.dataset.speaker;
269
+ const input = e.target.parentElement.querySelector('input[type="file"]');
270
+ input.files = files;
271
+ handleAudioUpload(input, speakerId);
272
+ }
273
+ }
274
+ });
275
+ }
276
+
277
+ // Smooth scroll for navigation
278
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
279
+ anchor.addEventListener('click', function (e) {
280
+ e.preventDefault();
281
+ const target = document.querySelector(this.getAttribute('href'));
282
+ if (target) {
283
+ target.scrollIntoView({ behavior: 'smooth', block: 'start' });
284
+ }
285
+ });
286
+ });
287
+
288
+ // Header scroll effect
289
+ window.addEventListener('scroll', () => {
290
+ const header = document.querySelector('.header');
291
+ if (window.scrollY > 100) {
292
+ header.style.boxShadow = '0 2px 20px rgba(0,0,0,0.1)';
293
+ } else {
294
+ header.style.boxShadow = 'none';
295
+ }
296
+ });
index.html CHANGED
@@ -1,19 +1,435 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Conversational AI Video Generator | Multi-Person Audio-Driven Videos</title>
7
+ <meta name="description" content="Generate realistic multi-person conversational videos from audio inputs. Support up to 2 minutes with AI-powered animation and lip-sync.">
8
+ <meta name="keywords" content="AI video generation, conversational video, audio to video, multi-person animation">
9
+ <meta property="og:title" content="Audio-Driven Multi-Person Conversational Video Generator">
10
+ <meta property="og:description" content="Create professional conversational videos with AI-powered animation and lip-sync">
11
+ <meta property="og:type" content="website">
12
+ <meta name="twitter:card" content="summary_large_image">
13
+ <link rel="preconnect" href="https://fonts.googleapis.com">
14
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
16
+ <link rel="stylesheet" href="assets/css/styles.css">
17
+ </head>
18
+ <body>
19
+ <header class="header">
20
+ <div class="container">
21
+ <div class="header-content">
22
+ <div class="logo">
23
+ <svg width="40" height="40" viewBox="0 0 40 40" fill="none">
24
+ <rect width="40" height="40" rx="8" fill="url(#gradient)"/>
25
+ <path d="M20 10C14.48 10 10 14.48 10 20C10 25.52 14.48 30 20 30C25.52 30 30 25.52 30 20C30 14.48 25.52 10 20 10ZM20 15C21.66 15 23 16.34 23 18C23 19.66 21.66 21 20 21C18.34 21 17 19.66 17 18C17 16.34 18.34 15 20 15ZM20 28C17.33 28 15.02 26.67 13.58 24.59C13.62 22.48 18 21.31 20 21.31C21.99 21.31 26.38 22.48 26.42 24.59C24.98 26.67 22.67 28 20 28Z" fill="white"/>
26
+ <defs>
27
+ <linearGradient id="gradient" x1="0" y1="0" x2="40" y2="40">
28
+ <stop offset="0%" stop-color="#667eea"/>
29
+ <stop offset="100%" stop-color="#764ba2"/>
30
+ </linearGradient>
31
+ </defs>
32
+ </svg>
33
+ <span>ConversationalAI</span>
34
+ </div>
35
+ <nav class="nav">
36
+ <a href="#features">Features</a>
37
+ <a href="#demo">Demo</a>
38
+ <a href="#pricing">Pricing</a>
39
+ <a href="#docs">Docs</a>
40
+ </nav>
41
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" class="built-with" target="_blank">Built with anycoder</a>
42
+ </div>
43
+ </div>
44
+ </header>
45
+
46
+ <main>
47
+ <section class="hero">
48
+ <div class="container">
49
+ <div class="hero-content">
50
+ <h1 class="hero-title">Generate Conversational Videos with AI</h1>
51
+ <p class="hero-subtitle">Transform audio inputs into realistic multi-person conversational videos with perfect lip-sync and natural animations</p>
52
+ <div class="hero-stats">
53
+ <div class="stat">
54
+ <span class="stat-number">2</span>
55
+ <span class="stat-label">Minutes Max</span>
56
+ </div>
57
+ <div class="stat">
58
+ <span class="stat-number">10+</span>
59
+ <span class="stat-label">AI Avatars</span>
60
+ </div>
61
+ <div class="stat">
62
+ <span class="stat-number">95%</span>
63
+ <span class="stat-label">Accuracy</span>
64
+ </div>
65
+ </div>
66
+ <button class="cta-button" onclick="scrollToGenerator()">Start Creating</button>
67
+ </div>
68
+ <div class="hero-visual">
69
+ <div class="video-preview">
70
+ <div class="preview-avatars">
71
+ <div class="avatar avatar-1 speaking">
72
+ <div class="avatar-face"></div>
73
+ </div>
74
+ <div class="avatar avatar-2">
75
+ <div class="avatar-face"></div>
76
+ </div>
77
+ </div>
78
+ <div class="waveform">
79
+ <div class="wave-bar"></div>
80
+ <div class="wave-bar"></div>
81
+ <div class="wave-bar"></div>
82
+ <div class="wave-bar"></div>
83
+ <div class="wave-bar"></div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </section>
89
+
90
+ <section class="generator-section" id="generator">
91
+ <div class="container">
92
+ <h2 class="section-title">Create Your Video</h2>
93
+ <div class="generator-container">
94
+ <div class="generator-sidebar">
95
+ <div class="step active" data-step="1">
96
+ <div class="step-number">1</div>
97
+ <div class="step-label">Setup</div>
98
+ </div>
99
+ <div class="step" data-step="2">
100
+ <div class="step-number">2</div>
101
+ <div class="step-label">Audio</div>
102
+ </div>
103
+ <div class="step" data-step="3">
104
+ <div class="step-number">3</div>
105
+ <div class="step-label">Avatars</div>
106
+ </div>
107
+ <div class="step" data-step="4">
108
+ <div class="step-number">4</div>
109
+ <div class="step-label">Generate</div>
110
+ </div>
111
+ </div>
112
+
113
+ <div class="generator-content">
114
+ <div class="step-panel active" id="step1">
115
+ <h3>Video Configuration</h3>
116
+ <div class="config-grid">
117
+ <div class="form-group">
118
+ <label>Video Title</label>
119
+ <input type="text" id="videoTitle" placeholder="Enter video title">
120
+ </div>
121
+ <div class="form-group">
122
+ <label>Duration</label>
123
+ <select id="duration">
124
+ <option value="30">30 seconds</option>
125
+ <option value="60">1 minute</option>
126
+ <option value="90">1.5 minutes</option>
127
+ <option value="120">2 minutes</option>
128
+ </select>
129
+ </div>
130
+ <div class="form-group">
131
+ <label>Number of Speakers</label>
132
+ <select id="numSpeakers">
133
+ <option value="2">2 Speakers</option>
134
+ <option value="3">3 Speakers</option>
135
+ <option value="4">4 Speakers</option>
136
+ </select>
137
+ </div>
138
+ <div class="form-group">
139
+ <label>Background</label>
140
+ <select id="background">
141
+ <option value="office">Office</option>
142
+ <option value="studio">Studio</option>
143
+ <option value="outdoor">Outdoor</option>
144
+ <option value="cafe">Cafe</option>
145
+ </select>
146
+ </div>
147
+ </div>
148
+ <button class="next-btn" onclick="nextStep()">Next →</button>
149
+ </div>
150
+
151
+ <div class="step-panel" id="step2">
152
+ <h3>Upload Audio Files</h3>
153
+ <div class="audio-upload-container" id="audioUploadContainer">
154
+ <div class="audio-upload-item" data-speaker="1">
155
+ <label>Speaker 1 Audio</label>
156
+ <div class="upload-zone" onclick="document.getElementById('audio1').click()">
157
+ <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
158
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
159
+ <polyline points="17 8 12 3 7 8"></polyline>
160
+ <line x1="12" y1="3" x2="12" y2="15"></line>
161
+ </svg>
162
+ <span>Click to upload or drag & drop</span>
163
+ <small>MP3, WAV, M4A (Max 120MB)</small>
164
+ </div>
165
+ <input type="file" id="audio1" accept="audio/*" style="display: none;" onchange="handleAudioUpload(this, 1)">
166
+ <div class="audio-preview" style="display: none;">
167
+ <div class="audio-info"></div>
168
+ </div>
169
+ </div>
170
+ <div class="audio-upload-item" data-speaker="2">
171
+ <label>Speaker 2 Audio</label>
172
+ <div class="upload-zone" onclick="document.getElementById('audio2').click()">
173
+ <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
174
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
175
+ <polyline points="17 8 12 3 7 8"></polyline>
176
+ <line x1="12" y1="3" x2="12" y2="15"></line>
177
+ </svg>
178
+ <span>Click to upload or drag & drop</span>
179
+ <small>MP3, WAV, M4A (Max 120MB)</small>
180
+ </div>
181
+ <input type="file" id="audio2" accept="audio/*" style="display: none;" onchange="handleAudioUpload(this, 2)">
182
+ <div class="audio-preview" style="display: none;">
183
+ <div class="audio-info"></div>
184
+ </div>
185
+ </div>
186
+ </div>
187
+ <div class="step-buttons">
188
+ <button class="prev-btn" onclick="prevStep()">← Previous</button>
189
+ <button class="next-btn" onclick="nextStep()">Next →</button>
190
+ </div>
191
+ </div>
192
+
193
+ <div class="step-panel" id="step3">
194
+ <h3>Select Avatars</h3>
195
+ <div class="avatar-selection">
196
+ <div class="avatar-options" id="avatarOptions">
197
+ <div class="avatar-option selected" data-avatar="business-man">
198
+ <div class="avatar-preview business-man"></div>
199
+ <span>Business Man</span>
200
+ </div>
201
+ <div class="avatar-option" data-avatar="business-woman">
202
+ <div class="avatar-preview business-woman"></div>
203
+ <span>Business Woman</span>
204
+ </div>
205
+ <div class="avatar-option" data-avatar="casual-man">
206
+ <div class="avatar-preview casual-man"></div>
207
+ <span>Casual Man</span>
208
+ </div>
209
+ <div class="avatar-option" data-avatar="casual-woman">
210
+ <div class="avatar-preview casual-woman"></div>
211
+ <span>Casual Woman</span>
212
+ </div>
213
+ <div class="avatar-option" data-avatar="professor">
214
+ <div class="avatar-preview professor"></div>
215
+ <span>Professor</span>
216
+ </div>
217
+ <div class="avatar-option" data-avatar="student">
218
+ <div class="avatar-preview student"></div>
219
+ <span>Student</span>
220
+ </div>
221
+ </div>
222
+ </div>
223
+ <div class="step-buttons">
224
+ <button class="prev-btn" onclick="prevStep()">← Previous</button>
225
+ <button class="next-btn" onclick="nextStep()">Next →</button>
226
+ </div>
227
+ </div>
228
+
229
+ <div class="step-panel" id="step4">
230
+ <h3>Generate Video</h3>
231
+ <div class="generation-summary" id="generationSummary">
232
+ <div class="summary-item">
233
+ <label>Duration:</label>
234
+ <span id="summaryDuration">1 minute</span>
235
+ </div>
236
+ <div class="summary-item">
237
+ <label>Speakers:</label>
238
+ <span id="summarySpeakers">2</span>
239
+ </div>
240
+ <div class="summary-item">
241
+ <label>Background:</label>
242
+ <span id="summaryBackground">Office</span>
243
+ </div>
244
+ </div>
245
+ <div class="generation-controls">
246
+ <div class="form-group">
247
+ <label>Quality</label>
248
+ <select id="quality">
249
+ <option value="standard">Standard (720p)</option>
250
+ <option value="high" selected>High (1080p)</option>
251
+ <option value="premium">Premium (4K)</option>
252
+ </select>
253
+ </div>
254
+ <div class="form-group">
255
+ <label>Output Format</label>
256
+ <select id="format">
257
+ <option value="mp4">MP4</option>
258
+ <option value="webm">WebM</option>
259
+ <option value="mov">MOV</option>
260
+ </select>
261
+ </div>
262
+ </div>
263
+ <button class="generate-btn" onclick="startGeneration()">
264
+ <span class="btn-text">Generate Video</span>
265
+ <span class="btn-loader" style="display: none;"></span>
266
+ </button>
267
+ <div class="step-buttons">
268
+ <button class="prev-btn" onclick="prevStep()">← Previous</button>
269
+ </div>
270
+ </div>
271
+ </div>
272
+ </div>
273
+ </div>
274
+ </section>
275
+
276
+ <section class="preview-section" id="previewSection" style="display: none;">
277
+ <div class="container">
278
+ <h2 class="section-title">Your Generated Video</h2>
279
+ <div class="video-player">
280
+ <video id="generatedVideo" controls width="100%">
281
+ <source src="" type="video/mp4">
282
+ Your browser does not support the video tag.
283
+ </video>
284
+ </div>
285
+ <div class="video-actions">
286
+ <button class="action-btn download-btn" onclick="downloadVideo()">
287
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
288
+ <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
289
+ <polyline points="7 10 12 15 17 10"></polyline>
290
+ <line x1="12" y1="15" x2="12" y2="3"></line>
291
+ </svg>
292
+ Download
293
+ </button>
294
+ <button class="action-btn share-btn" onclick="shareVideo()">
295
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
296
+ <circle cx="18" cy="5" r="3"></circle>
297
+ <circle cx="6" cy="12" r="3"></circle>
298
+ <circle cx="18" cy="19" r="3"></circle>
299
+ <line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line>
300
+ <line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>
301
+ </svg>
302
+ Share
303
+ </button>
304
+ <button class="action-btn edit-btn" onclick="resetGenerator()">
305
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
306
+ <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
307
+ <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
308
+ </svg>
309
+ Create New
310
+ </button>
311
+ </div>
312
+ </div>
313
+ </section>
314
+
315
+ <section class="features" id="features">
316
+ <div class="container">
317
+ <h2 class="section-title">Powerful Features</h2>
318
+ <div class="features-grid">
319
+ <div class="feature-card">
320
+ <div class="feature-icon">
321
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
322
+ <polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
323
+ </svg>
324
+ </div>
325
+ <h3>Perfect Lip-Sync</h3>
326
+ <p>Industry-leading lip-sync technology with 95% accuracy for natural speech animation</p>
327
+ </div>
328
+ <div class="feature-card">
329
+ <div class="feature-icon">
330
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
331
+ <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
332
+ <circle cx="9" cy="7" r="4"></circle>
333
+ <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
334
+ <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
335
+ </svg>
336
+ </div>
337
+ <h3>Multi-Person Support</h3>
338
+ <p>Generate videos with up to 4 speakers in natural conversation dynamics</p>
339
+ </div>
340
+ <div class="feature-card">
341
+ <div class="feature-icon">
342
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
343
+ <rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect>
344
+ <path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>
345
+ </svg>
346
+ </div>
347
+ <h3>Multiple Environments</h3>
348
+ <p>Choose from various backgrounds including office, studio, outdoor, and cafe settings</p>
349
+ </div>
350
+ <div class="feature-card">
351
+ <div class="feature-icon">
352
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
353
+ <circle cx="12" cy="12" r="10"></circle>
354
+ <polyline points="12 6 12 12 16 14"></polyline>
355
+ </svg>
356
+ </div>
357
+ <h3>Fast Processing</h3>
358
+ <p>Generate 2-minute videos in under 5 minutes with our optimized AI pipeline</p>
359
+ </div>
360
+ <div class="feature-card">
361
+ <div class="feature-icon">
362
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
363
+ <path d="M12 2L2 7v10c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V7l-10-5z"></path>
364
+ </svg>
365
+ </div>
366
+ <h3>Privacy First</h3>
367
+ <p>All audio and video processing is encrypted and automatically deleted after 24 hours</p>
368
+ </div>
369
+ <div class="feature-card">
370
+ <div class="feature-icon">
371
+ <svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
372
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
373
+ <polyline points="14 2 14 8 20 8"></polyline>
374
+ <line x1="16" y1="13" x2="8" y2="13"></line>
375
+ <line x1="16" y1="17" x2="8" y2="17"></line>
376
+ <polyline points="10 9 9 9 8 9"></polyline>
377
+ </svg>
378
+ </div>
379
+ <h3>Export Options</h3>
380
+ <p>Download in MP4, WebM, or MOV formats with quality up to 4K resolution</p>
381
+ </div>
382
+ </div>
383
+ </div>
384
+ </section>
385
+ </main>
386
+
387
+ <footer class="footer">
388
+ <div class="container">
389
+ <div class="footer-content">
390
+ <div class="footer-brand">
391
+ <div class="logo">
392
+ <svg width="32" height="32" viewBox="0 0 40 40" fill="none">
393
+ <rect width="40" height="40" rx="8" fill="url(#gradient)"/>
394
+ <path d="M20 10C14.48 10 10 14.48 10 20C10 25.52 14.48 30 20 30C25.52 30 30 25.52 30 20C30 14.48 25.52 10 20 10ZM20 15C21.66 15 23 16.34 23 18C23 19.66 21.66 21 20 21C18.34 21 17 19.66 17 18C17 16.34 18.34 15 20 15ZM20 28C17.33 28 15.02 26.67 13.58 24.59C13.62 22.48 18 21.31 20 21.31C21.99 21.31 26.38 22.48 26.42 24.59C24.98 26.67 22.67 28 20 28Z" fill="white"/>
395
+ <defs>
396
+ <linearGradient id="gradient" x1="0" y1="0" x2="40" y2="40">
397
+ <stop offset="0%" stop-color="#667eea"/>
398
+ <stop offset="100%" stop-color="#764ba2"/>
399
+ </linearGradient>
400
+ </defs>
401
+ </svg>
402
+ <span>ConversationalAI</span>
403
+ </div>
404
+ <p>Transform audio into engaging conversational videos with AI</p>
405
+ </div>
406
+ <div class="footer-links">
407
+ <div>
408
+ <h4>Product</h4>
409
+ <a href="#features">Features</a>
410
+ <a href="#pricing">Pricing</a>
411
+ <a href="#api">API</a>
412
+ </div>
413
+ <div>
414
+ <h4>Resources</h4>
415
+ <a href="#docs">Documentation</a>
416
+ <a href="#tutorials">Tutorials</a>
417
+ <a href="#blog">Blog</a>
418
+ </div>
419
+ <div>
420
+ <h4>Company</h4>
421
+ <a href="#about">About</a>
422
+ <a href="#contact">Contact</a>
423
+ <a href="#privacy">Privacy</a>
424
+ </div>
425
+ </div>
426
+ </div>
427
+ <div class="footer-bottom">
428
+ <p>&copy; 2024 ConversationalAI. All rights reserved.</p>
429
+ </div>
430
+ </div>
431
+ </footer>
432
+
433
+ <script src="assets/js/main.js"></script>
434
+ </body>
435
+ </html>