-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
4540 lines (3927 loc) · 194 KB
/
index.html
File metadata and controls
4540 lines (3927 loc) · 194 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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Code Editor with Multi-Language Support</title>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.44.0/min/vs/loader.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<script type="module">
import { pipeline, env } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0/dist/transformers.min.js';
env.allowLocalModels = false;
env.remoteHost = 'https://huggingface.co';
window.transformers = { pipeline, env };
</script>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Karla:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=IBM Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<link href="https://db.onlinewebfonts.com/c/5aed06c88c643ae6f0d4d1027893350c?family=Elianto" rel="stylesheet">
<style>
.monaco-editor-container { height: 400px; border: 1px solid #374151; border-radius: 8px; }
.chat-message { animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.gradient-bg { background: black; }
.hero-text { font-family: 'Cormorant Garamond', serif; color: white; }
.features-section { font-family: 'Karla', sans-serif; }
.features-title { font-family: 'Spectral', serif; }
.ai-chat-section { font-family: 'IBM Plex Mono', monospace; }
.glass-effect { backdrop-filter: blur(10px); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.code-output { background: #1a1a1a; color: #00ff00; font-family: 'Courier New', monospace; white-space: pre-wrap; }
.typing-indicator { display: none; }
.typing-indicator.active { display: inline-block; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.feature-card {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 1px 8px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.feature-card::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s;
}
.feature-card:hover::before {
left: 100%;
}
.feature-card:hover {
transform: translateY(-12px) scale(1.02);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.2);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #374151; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #6b7280; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.loading-dots::after {
content: '';
animation: dots 1.5s steps(5, end) infinite;
}
@keyframes dots {
0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
40% { color: #00ff00; text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
60% { text-shadow: .25em 0 0 #00ff00, .5em 0 0 rgba(0,0,0,0); }
80%, 100% { text-shadow: .25em 0 0 #00ff00, .5em 0 0 #00ff00; }
}
.nav-link {
position: relative;
color: #fecaca;
padding: 0.5rem 1rem;
text-decoration: none;
transition: all 0.3s ease;
font-weight: 500;
font-size: 0.95rem;
letter-spacing: 0.5px;
}
.nav-link:hover {
color: #ffffff;
}
.nav-link::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: #ffffff;
transition: all 0.3s ease;
transform: translateX(-50%);
}
.nav-link:hover::after {
width: 80%;
}
.nav-link i {
margin-right: 0.5rem;
font-size: 0.9rem;
}
.sample-code-btn {
width: 100%;
text-align: left;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
background: rgba(55, 65, 81, 0.5);
border: 1px solid rgba(107, 114, 128, 0.3);
border-radius: 0.375rem;
color: #e5e7eb;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 0.5rem;
}
.sample-code-btn:hover {
background: rgba(75, 85, 99, 0.8);
border-color: rgba(156, 163, 175, 0.5);
color: #ffffff;
transform: translateX(4px);
}
.sample-code-btn i {
font-size: 0.75rem;
color: #9ca3af;
}
.brand-text {
font-family: 'Elianto', sans-serif;
font-weight: normal;
}
.hero-bg {
position: relative;
overflow: hidden;
}
.hero-bg::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
background-size: 50px 50px;
opacity: 0.5;
}
.floating-code {
position: absolute;
color: rgba(255, 255, 255, 0.1);
font-size: 2rem;
animation: float 20s infinite linear;
pointer-events: none;
z-index: 1;
}
@keyframes float {
0% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
100% { transform: translateY(0) rotate(360deg); }
}
.code-mockup {
background: rgba(0, 0, 0, 0.4);
border-radius: 12px;
padding: 1.5rem;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
font-family: 'IBM Plex Mono', monospace;
}
.code-header {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.code-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.code-content {
font-size: 0.9rem;
line-height: 1.6;
}
.typing-cursor {
display: inline-block;
width: 2px;
height: 1.2em;
background: #fff;
animation: blink 1s infinite;
margin-left: 2px;
}
@keyframes blink {
0%, 50% { opacity: 1; }
51%, 100% { opacity: 0; }
}
.keyword { color: #ff79c6; }
.function { color: #50fa7b; }
.string { color: #f1fa8c; }
.comment { color: #6272a4; }
.tagline {
display: inline-block;
background: rgba(255, 255, 255, 0.15);
padding: 0.5rem 1.5rem;
border-radius: 50px;
font-size: 0.9rem;
letter-spacing: 1px;
margin-bottom: 1.5rem;
backdrop-filter: blur(10px);
}
/* Hero section optimization for desktop */
@media (min-width: 768px) {
.hero-section-optimized {
min-height: auto !important;
padding-top: 3rem;
padding-bottom: 3rem;
}
.hero-content-wrapper {
padding-top: 2rem;
padding-bottom: 2rem;
}
.hero-section-optimized h1 {
margin-bottom: 1rem !important;
font-size: 3rem !important;
line-height: 1.1;
}
.hero-section-optimized .text-xl {
font-size: 1.125rem !important;
margin-bottom: 0.75rem !important;
}
.hero-section-optimized .text-lg {
margin-bottom: 1.5rem !important;
}
.hero-section-optimized .tagline {
margin-bottom: 1rem !important;
font-size: 0.85rem !important;
padding: 0.4rem 1.2rem !important;
}
.hero-section-optimized .mt-6 {
margin-top: 1rem !important;
}
}
/* Tablet adjustments */
@media (min-width: 1024px) {
.hero-section-optimized h1 {
font-size: 3.5rem !important;
}
}
/* Mobile - keep full height for better aesthetics */
@media (max-width: 767px) {
.hero-section-optimized {
min-height: 100vh;
}
}
</style>
</head>
<body class="bg-gray-900 text-white">
<!-- Navigation -->
<nav class="shadow-lg sticky top-0 z-50" style="background: #b91c1c;">
<div class="container mx-auto px-4">
<div class="flex justify-between items-center py-4">
<div class="flex items-center space-x-2">
<h1 class="text-2xl font-bold text-white brand-text"><span style="font-size: 1.8rem;">🤝💯</span> Help Genie</h1>
</div>
<div class="flex space-x-2">
<a onclick="showSection('landing')" class="nav-link cursor-pointer">
<i class="fas fa-home"></i>Home
</a>
<a onclick="showSection('editor')" class="nav-link cursor-pointer">
<i class="fas fa-code"></i>Code Editor
</a>
<a onclick="showSection('chat')" class="nav-link cursor-pointer">
<i class="fas fa-comments"></i>AI Chat
</a>
</div>
</div>
</div>
</nav>
<!-- Landing Page Section -->
<section id="landing">
<!-- Hero Section -->
<div class="hero-section-optimized flex items-center justify-center hero-bg" style="background: #b91c1c;">
<!-- Floating Code Elements -->
<div class="floating-code" style="top: 10%; left: 10%;"></></div>
<div class="floating-code" style="top: 20%; right: 15%; animation-delay: -5s;">{ }</div>
<div class="floating-code" style="bottom: 15%; left: 20%; animation-delay: -10s;">[ ]</div>
<div class="floating-code" style="top: 60%; right: 10%; animation-delay: -7s;">( )</div>
<div class="floating-code" style="bottom: 30%; right: 25%; animation-delay: -3s;">=></div>
<div class="container mx-auto px-4 hero-content-wrapper" style="position: relative; z-index: 10;">
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-center max-w-7xl mx-auto">
<!-- Left Content -->
<div class="text-center md:text-left" style="position: relative; z-index: 10;">
<div class="tagline text-white">
🚀 THE AI-POWERED CODE EDITOR
</div>
<h1 class="text-5xl lg:text-6xl font-bold mb-6 hero-text">
Build Apps with AI
</h1>
<p class="text-xl hero-text mb-4">
Transform your ideas into working applications using natural language
</p>
<p class="text-lg hero-text mb-8 opacity-90">
Get instant coding help, explanations, and code suggestions with our AI-powered coding assistant.
</p>
<div class="flex flex-col sm:flex-row gap-4 justify-center md:justify-start">
<button onclick="showSection('editor')" class="px-8 py-4 bg-white text-red-700 rounded-lg font-semibold text-lg hover:bg-gray-100 transition-colors shadow-lg">
<i class="fas fa-rocket mr-2"></i>Start Coding
</button>
<button onclick="showSection('chat')" class="px-8 py-4 border-2 border-white text-white rounded-lg font-semibold text-lg hover:bg-white hover:text-red-700 transition-colors">
<i class="fas fa-comments mr-2"></i>Try AI Chat
</button>
</div>
<div class="mt-6 text-sm text-white opacity-75">
<i class="fas fa-check-circle mr-2"></i>21 Languages • AI-Powered • Free to Use
</div>
<!-- Programming Language Badges -->
<div class="mt-6 flex flex-wrap gap-2 justify-center md:justify-start">
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🐍 Python
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
⚡ JavaScript
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
☕ Java
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
⚙️ C++
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🔷 TypeScript
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🦀 Rust
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🐹 Go
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
💎 Ruby
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🐘 PHP
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🍎 Swift
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🤖 Kotlin
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
💻 C#
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🎯 Scala
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🗄️ SQL
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
📊 R
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🌐 HTML
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🎨 CSS
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🐪 Perl
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
🌙 Lua
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
💻 Bash
</span>
<span class="px-3 py-1.5 text-xs font-semibold rounded-full bg-white bg-opacity-20 text-white backdrop-blur-sm border border-white border-opacity-30 hover:bg-opacity-30 transition-all">
⚡ C
</span>
</div>
</div>
<!-- Right Content - Interactive Code Mockup -->
<div class="code-mockup">
<div class="code-header">
<div class="code-dot" style="background: #ff5f56;"></div>
<div class="code-dot" style="background: #ffbd2e;"></div>
<div class="code-dot" style="background: #27c93f;"></div>
<div style="margin-left: auto;">
<span id="languageBadge" class="text-xs px-3 py-1 rounded-full" style="background: rgba(255,255,255,0.1);">JavaScript</span>
</div>
</div>
<div id="codePreview" class="code-content text-left" style="transition: opacity 0.5s;">
<!-- Code will be dynamically inserted here -->
</div>
<div class="mt-4 pt-4" style="border-top: 1px solid rgba(255,255,255,0.1);">
<div class="text-xs text-gray-400 mb-2">OUTPUT:</div>
<div id="codeOutputDemo" class="text-green-400 text-sm">✨ Perfect Code!</div>
</div>
</div>
</div>
</div>
</div>
<!-- Powerful AI Development Features Section -->
<div class="py-20 features-section" style="background: #b91c1c;">
<div class="container mx-auto px-4">
<h2 class="text-center text-4xl font-bold mb-12 features-title text-white">Powerful AI Development Features</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-7xl mx-auto">
<!-- AI Code Generation -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-purple-400 text-5xl mb-5">
<i class="fas fa-magic"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">AI Code Generation</h3>
<p class="text-gray-300 text-base leading-relaxed">Get instant code suggestions and snippets with our AI-powered coding assistant. Describe your coding needs, and our AI generates relevant code suggestions to help you build faster and smarter.</p>
</div>
<!-- Multi-Language Support -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-blue-400 text-5xl mb-5">
<i class="fas fa-code"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">Multi-Language Support</h3>
<p class="text-gray-300 text-base leading-relaxed">Support for 15+ programming languages including Python, JavaScript, Java, C++, Go, Rust, and many more.</p>
</div>
<!-- Intelligent Chat -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-green-400 text-5xl mb-5">
<i class="fas fa-comments"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">Intelligent Chat</h3>
<p class="text-gray-300 text-base leading-relaxed">Chat with AI to explain code, debug issues, and get coding help in real-time with contextual understanding.</p>
</div>
<!-- Project Management -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-yellow-400 text-5xl mb-5">
<i class="fas fa-folder"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">Project Management</h3>
<p class="text-gray-300 text-base leading-relaxed">Organize your projects with file management, create folders, edit files, and maintain project structure.</p>
</div>
<!-- Code Execution -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-red-400 text-5xl mb-5">
<i class="fas fa-play"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">Code Execution</h3>
<p class="text-gray-300 text-base leading-relaxed">Run and test your code directly in the browser with real-time output and error handling.</p>
</div>
<!-- Export Projects -->
<div class="bg-gradient-to-br from-gray-800 to-gray-900 rounded-xl p-8 feature-card">
<div class="text-cyan-400 text-5xl mb-5">
<i class="fas fa-download"></i>
</div>
<h3 class="text-2xl font-bold mb-4 text-white features-title">Export Projects</h3>
<p class="text-gray-300 text-base leading-relaxed">Download your complete projects as ZIP files with all files and dependencies included.</p>
</div>
</div>
</div>
</div>
<!-- How It Works Section -->
<div class="py-20 features-section" style="background: #b91c1c;">
<div class="container mx-auto px-4">
<h2 class="text-center text-4xl font-bold mb-12 features-title text-white">How It Works</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto">
<!-- Step 1 -->
<div class="text-center">
<div class="w-16 h-16 bg-purple-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-6">1</div>
<h3 class="text-xl font-semibold mb-4 text-white features-title">Write Your Code</h3>
<p class="text-gray-300 leading-relaxed">Start coding in one of our 21 supported languages.</p>
</div>
<!-- Step 2 -->
<div class="text-center">
<div class="w-16 h-16 bg-blue-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-6">2</div>
<h3 class="text-xl font-semibold mb-4 text-white features-title">Get AI Assistance</h3>
<p class="text-gray-300 leading-relaxed">Our AI-powered assistant provides instant coding help, explanations, and suggestions.</p>
</div>
<!-- Step 3 -->
<div class="text-center">
<div class="w-16 h-16 bg-green-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-6">3</div>
<h3 class="text-xl font-semibold mb-4 text-white features-title">Run and Test</h3>
<p class="text-gray-300 leading-relaxed">Run your code in our live environment to see real-time output.</p>
</div>
<!-- Step 4 -->
<div class="text-center">
<div class="w-16 h-16 bg-yellow-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-6">4</div>
<h3 class="text-xl font-semibold mb-4 text-white features-title">Debug and Optimize</h3>
<p class="text-gray-300 leading-relaxed">Use our AI-powered debugging tools to identify and fix errors.</p>
</div>
<!-- Step 5 -->
<div class="text-center">
<div class="w-16 h-16 bg-cyan-600 rounded-full flex items-center justify-center text-white text-2xl font-bold mx-auto mb-6">5</div>
<h3 class="text-xl font-semibold mb-4 text-white features-title">Export Your Project</h3>
<p class="text-gray-300 leading-relaxed">Export your project with all files and dependencies included.</p>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 py-12 border-t border-gray-800">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-6xl mx-auto">
<!-- About Section -->
<div>
<div class="flex items-center space-x-2 mb-4">
<h3 class="text-xl font-bold text-white brand-text"><span style="font-size: 1.5rem;">🤝💯</span> Help Genie</h3>
</div>
<p class="text-gray-400 text-sm leading-relaxed">
Transform your ideas into working applications using natural language and AI-powered code generation.
</p>
</div>
<!-- Quick Links -->
<div>
<h4 class="text-lg font-semibold text-white mb-4">Quick Links</h4>
<ul class="space-y-2">
<li>
<a onclick="showSection('landing')" class="text-gray-400 hover:text-white transition-colors cursor-pointer flex items-center">
<i class="fas fa-home mr-2 text-sm"></i>Home
</a>
</li>
<li>
<a onclick="showSection('editor')" class="text-gray-400 hover:text-white transition-colors cursor-pointer flex items-center">
<i class="fas fa-code mr-2 text-sm"></i>Code Editor
</a>
</li>
<li>
<a onclick="showSection('chat')" class="text-gray-400 hover:text-white transition-colors cursor-pointer flex items-center">
<i class="fas fa-comments mr-2 text-sm"></i>AI Chat
</a>
</li>
</ul>
</div>
<!-- Developer Info -->
<div>
<h4 class="text-lg font-semibold text-white mb-4">Developer</h4>
<div class="space-y-3">
<div class="flex items-center text-gray-400">
<i class="fas fa-user mr-3 text-red-600"></i>
<span>Reaishma N</span>
</div>
<div class="flex items-center text-gray-400">
<i class="fas fa-envelope mr-3 text-red-600"></i>
<a href="mailto:vra.9618@gmail.com" class="hover:text-white transition-colors">vra.9618@gmail.com</a>
</div>
<div class="flex items-center text-gray-400">
<i class="fab fa-github mr-3 text-red-600"></i>
<a href="https://github.com/Reaishma" target="_blank" rel="noopener noreferrer" class="hover:text-white transition-colors">github.com/Reaishma</a>
</div>
</div>
</div>
</div>
<!-- Copyright -->
<div class="border-t border-gray-800 mt-8 pt-8 text-center">
<p class="text-gray-500 text-sm">
© 2025 <span class="brand-text">Help Genie</span>. Developed by Reaishma N.
</p>
</div>
</div>
</footer>
</section>
<!-- Code Editor Section -->
<section id="editor" class="hidden min-h-screen bg-gray-900 pt-20">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 lg:grid-cols-4 gap-6 h-full">
<!-- File Explorer -->
<div class="lg:col-span-1 bg-gray-800 rounded-lg p-4">
<div class="flex justify-between items-center mb-4">
<h3 class="text-lg font-semibold">Project Files</h3>
<div class="flex space-x-2">
<button onclick="createNewFile()" class="p-1 bg-blue-600 hover:bg-blue-700 rounded text-xs">
<i class="fas fa-plus"></i>
</button>
<button onclick="createNewFolder()" class="p-1 bg-green-600 hover:bg-green-700 rounded text-xs">
<i class="fas fa-folder-plus"></i>
</button>
</div>
</div>
<!-- Sample Codes Section -->
<div class="mb-4">
<h4 class="text-sm font-semibold mb-2 text-gray-400">Sample Codes</h4>
<div class="space-y-1 max-h-32 overflow-y-auto">
<button onclick="loadSampleCode('java')" class="sample-code-btn"><i class="fas fa-file-code"></i>Java</button>
<button onclick="loadSampleCode('cpp')" class="sample-code-btn"><i class="fas fa-file-code"></i>C++</button>
<button onclick="loadSampleCode('csharp')" class="sample-code-btn"><i class="fas fa-file-code"></i>C#</button>
<button onclick="loadSampleCode('go')" class="sample-code-btn"><i class="fas fa-file-code"></i>Go</button>
<button onclick="loadSampleCode('rust')" class="sample-code-btn"><i class="fas fa-file-code"></i>Rust</button>
<button onclick="loadSampleCode('php')" class="sample-code-btn"><i class="fas fa-file-code"></i>PHP</button>
<button onclick="loadSampleCode('ruby')" class="sample-code-btn"><i class="fas fa-file-code"></i>Ruby</button>
<button onclick="loadSampleCode('swift')" class="sample-code-btn"><i class="fas fa-file-code"></i>Swift</button>
<button onclick="loadSampleCode('kotlin')" class="sample-code-btn"><i class="fas fa-file-code"></i>Kotlin</button>
<button onclick="loadSampleCode('typescript')" class="sample-code-btn"><i class="fas fa-file-code"></i>TypeScript</button>
<button onclick="loadSampleCode('sql')" class="sample-code-btn"><i class="fas fa-database"></i>SQL</button>
<button onclick="loadSampleCode('r')" class="sample-code-btn"><i class="fas fa-chart-line"></i>R</button>
<button onclick="loadSampleCode('scala')" class="sample-code-btn"><i class="fas fa-file-code"></i>Scala</button>
<button onclick="loadSampleCode('perl')" class="sample-code-btn"><i class="fas fa-file-code"></i>Perl</button>
<button onclick="loadSampleCode('lua')" class="sample-code-btn"><i class="fas fa-file-code"></i>Lua</button>
<button onclick="loadSampleCode('bash')" class="sample-code-btn"><i class="fas fa-terminal"></i>Bash</button>
</div>
</div>
<div id="fileTree" class="file-tree">
<div class="file-item p-2 rounded flex items-center space-x-2 active bg-gray-700" onclick="selectFile('main.py')">
<i class="fas fa-file-code text-gray-400"></i>
<span>main.py</span>
</div>
<div class="file-item p-2 rounded flex items-center space-x-2 hover:bg-gray-700 cursor-pointer" onclick="selectFile('styles.css')">
<i class="fas fa-file-code text-gray-400"></i>
<span>styles.css</span>
</div>
<div class="file-item p-2 rounded flex items-center space-x-2 hover:bg-gray-700 cursor-pointer" onclick="selectFile('script.js')">
<i class="fas fa-file-code text-gray-400"></i>
<span>script.js</span>
</div>
</div>
</div>
<!-- Code Editor -->
<div class="lg:col-span-3">
<div class="bg-gray-800 rounded-lg">
<div class="flex justify-between items-center p-4 border-b border-gray-700">
<div class="flex items-center space-x-4">
<span id="currentFileName" class="font-semibold">main.py</span>
<select id="languageSelect" onchange="changeLanguage()" class="bg-gray-700 rounded px-3 py-1 text-sm">
<option value="python">Python 3.8.1</option>
<option value="javascript">JavaScript (Node.js)</option>
<option value="java">Java (OpenJDK 13)</option>
<option value="cpp">C++ (GCC 9.2.0)</option>
<option value="c">C (GCC 9.2.0)</option>
<option value="csharp">C# (Mono 6.6.0)</option>
<option value="go">Go (1.13.5)</option>
<option value="rust">Rust (1.40.0)</option>
<option value="php">PHP (7.4.1)</option>
<option value="ruby">Ruby (2.7.0)</option>
<option value="swift">Swift (5.2.3)</option>
<option value="kotlin">Kotlin (1.3.70)</option>
<option value="typescript">TypeScript (3.7.4)</option>
<option value="sql">SQL (SQLite 3.27.2)</option>
<option value="r">R (4.0.0)</option>
<option value="scala">Scala (2.13.2)</option>
<option value="perl">Perl (5.28.1)</option>
<option value="lua">Lua (5.3.5)</option>
<option value="bash">Bash (5.0.0)</option>
<option value="html">HTML (Preview)</option>
<option value="css">CSS (Preview)</option>
</select>
</div>
<div class="flex space-x-2">
<button onclick="runCode()" class="px-4 py-2 bg-green-600 hover:bg-green-700 rounded text-sm">
<i class="fas fa-play mr-1"></i>Run
</button>
<button onclick="triggerCompletion()" class="px-3 py-2 bg-indigo-600 hover:bg-indigo-700 rounded text-sm" title="AI Code Completion (Ctrl+Space)">
<i class="fas fa-magic mr-1"></i>Complete
</button>
<button onclick="aiDebug()" class="px-3 py-2 bg-red-600 hover:bg-red-700 rounded text-sm" title="AI Debug Analysis">
<i class="fas fa-bug mr-1"></i>Debug
</button>
<button onclick="aiSuggest()" class="px-3 py-2 bg-orange-600 hover:bg-orange-700 rounded text-sm" title="AI Suggestions">
<i class="fas fa-lightbulb mr-1"></i>Suggest
</button>
<button onclick="saveFile()" class="px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded text-sm">
<i class="fas fa-save mr-1"></i>Save
</button>
<button onclick="exportProject()" class="px-4 py-2 bg-purple-600 hover:bg-purple-700 rounded text-sm">
<i class="fas fa-download mr-1"></i>Export
</button>
</div>
</div>
<div id="monacoEditor" class="monaco-editor-container"></div>
</div>
<!-- AI Analysis Panel -->
<div class="mt-6 bg-gray-800 rounded-lg">
<div class="p-4 border-b border-gray-700">
<div class="flex justify-between items-center">
<h3 class="font-semibold">AI Analysis & Output</h3>
<div class="flex space-x-2">
<button onclick="showAnalysisTab('output')" id="outputTab" class="px-3 py-1 bg-green-600 rounded text-xs">Output</button>
<button onclick="showAnalysisTab('debug')" id="debugTab" class="px-3 py-1 bg-gray-600 rounded text-xs">Debug</button>
<button onclick="showAnalysisTab('suggestions')" id="suggestTab" class="px-3 py-1 bg-gray-600 rounded text-xs">Suggestions</button>
</div>
</div>
</div>
<!-- Output Tab -->
<div id="outputPanel" class="analysis-panel">
<div id="codeOutput" class="code-output p-4 h-32 overflow-y-auto">
<div class="text-gray-400">Code output will appear here...</div>
</div>
</div>
<!-- Debug Analysis Tab -->
<div id="debugPanel" class="analysis-panel hidden">
<div id="debugResults" class="p-4 h-32 overflow-y-auto">
<div class="text-gray-400">Click "Debug" to analyze your code for potential issues...</div>
</div>
</div>
<!-- Suggestions Tab -->
<div id="suggestionsPanel" class="analysis-panel hidden">
<div id="suggestionsResults" class="p-4 h-32 overflow-y-auto">
<div class="text-gray-400">Click "Suggest" to get AI-powered code improvement suggestions...</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- AI Chat Section -->
<section id="chat" class="hidden min-h-screen bg-gray-900 pt-20 ai-chat-section">
<div class="container mx-auto px-4 max-w-4xl">
<div class="bg-gray-800 rounded-lg h-screen max-h-[80vh] flex flex-col">
<div class="p-4 border-b border-gray-700">
<div class="flex justify-between items-start">
<div>
<h2 class="text-xl font-semibold">AI Coding Assistant</h2>
<div id="connectionStatus" class="text-sm text-yellow-400 mt-1">🔄 Loading AI model...</div>
</div>
</div>
</div>
<!-- Chat Messages -->
<div id="chatMessages" class="flex-1 overflow-y-auto p-4 space-y-4">
<div class="chat-message flex items-start space-x-3">
<div class="w-8 h-8 bg-purple-600 rounded-full flex items-center justify-center">
<i class="fas fa-robot text-sm"></i>
</div>
<div class="flex-1 bg-gray-700 rounded-lg p-3">
<p>👋 Hello! I'm your AI coding assistant. I can help you with:</p>
<ul class="list-disc list-inside mt-2 text-sm">
<li>Generate code in any language</li>
<li>Debug and fix errors</li>
<li>Explain how code works</li>
<li>Create HTML/CSS layouts</li>
<li>Algorithm help and best practices</li>
</ul>
<p class="mt-2">What would you like to work on?</p>
</div>
</div>
</div>
<!-- Chat Input -->
<div class="p-4 border-t border-gray-700">
<div class="flex space-x-4">
<input type="text" id="chatInput" placeholder="Ask me anything about coding..."
class="flex-1 bg-gray-700 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-purple-600"
onkeypress="handleChatKeyPress(event)">
<button onclick="sendMessage()" class="px-6 py-2 bg-purple-600 hover:bg-purple-700 rounded-lg">
<i class="fas fa-paper-plane"></i>
</button>
</div>
<div class="flex space-x-2 mt-2">
<button onclick="sendQuickMessage('Create a Python function')" class="text-xs bg-gray-700 hover:bg-gray-600 px-2 py-1 rounded">
Python Function
</button>
<button onclick="sendQuickMessage('Debug my code')" class="text-xs bg-gray-700 hover:bg-gray-600 px-2 py-1 rounded">
Debug Help
</button>
<button onclick="sendQuickMessage('Create HTML page')" class="text-xs bg-gray-700 hover:bg-gray-600 px-2 py-1 rounded">
HTML Page
</button>
</div>
</div>
</div>
</div>
</section>
<script>
let monacoEditor = null;
let currentProject = {
files: {
'main.py': '# Welcome to AI Coder!\n# Start coding or ask AI to generate code for you\n\nprint("Hello, World!")\n\n# Try running this code!\ndef greet(name):\n return f"Hello, {name}!"\n\nuser_name = "Developer"\nprint(greet(user_name))',
'styles.css': '/* CSS styles for your project */\nbody {\n font-family: Arial, sans-serif;\n margin: 0;\n padding: 20px;\n background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);\n color: white;\n}\n\n.container {\n max-width: 800px;\n margin: 0 auto;\n padding: 20px;\n background: rgba(255, 255, 255, 0.1);\n border-radius: 10px;\n backdrop-filter: blur(10px);\n}\n\n.btn {\n padding: 10px 20px;\n background: #007bff;\n color: white;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n transition: all 0.3s ease;\n}\n\n.btn:hover {\n background: #0056b3;\n transform: translateY(-2px);\n}',
'script.js': '// JavaScript code for your project\nconsole.log("Welcome to AI Coder!");\n\n// DOM manipulation example\ndocument.addEventListener("DOMContentLoaded", function() {\n console.log("Page loaded successfully!");\n \n // Add click event to buttons\n const buttons = document.querySelectorAll(".btn");\n buttons.forEach(button => {\n button.addEventListener("click", function() {\n console.log("Button clicked:", this.textContent);\n });\n });\n});\n\n// Example function\nfunction displayMessage(message) {\n const messageDiv = document.createElement("div");\n messageDiv.textContent = message;\n messageDiv.style.padding = "10px";\n messageDiv.style.margin = "5px 0";\n messageDiv.style.background = "#28a745";\n messageDiv.style.color = "white";\n messageDiv.style.borderRadius = "5px";\n document.body.appendChild(messageDiv);\n}\n\n// Call the function\ndisplayMessage("JavaScript is working!");\n\n// Modern async/await example\nasync function fetchData() {\n try {\n const response = await fetch("https://api.github.com/users/octocat");\n const data = await response.json();\n console.log("GitHub user data:", data);\n return data;\n } catch (error) {\n console.error("Error fetching data:", error);\n }\n}\n\n// Uncomment to test API call\n// fetchData();'
},
currentFile: 'main.py'
};
// Sample code templates
const SAMPLE_CODES = {
java: `// Java Sample - Object-Oriented Programming
public class HelloWorld {
private String message;
public HelloWorld(String message) {
this.message = message;
}
public void displayMessage() {
System.out.println(message);
}
public static void main(String[] args) {
HelloWorld hello = new HelloWorld("Hello, Java World!");
hello.displayMessage();
// Array example
int[] numbers = {1, 2, 3, 4, 5};
for (int num : numbers) {
System.out.println("Number: " + num);
}
// Object-oriented features
Calculator calc = new Calculator();
System.out.println("5 + 3 = " + calc.add(5, 3));
}
}
class Calculator {
public int add(int a, int b) {
return a + b;
}
public double multiply(double a, double b) {
return a * b;
}
}`,
cpp: `// C++ Sample - Modern C++ Features
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <memory>
class Calculator {
private:
std::string name;
public:
Calculator(const std::string& n) : name(n) {}
template<typename T>
T add(T a, T b) {
return a + b;
}
void displayInfo() {
std::cout << "Calculator: " << name << std::endl;
}
};
int main() {
Calculator calc("Scientific Calculator");
calc.displayInfo();
std::cout << "5 + 3 = " << calc.add(5, 3) << std::endl;
std::cout << "2.5 + 1.7 = " << calc.add(2.5, 1.7) << std::endl;
// Vector example with lambda
std::vector<int> numbers = {1, 2, 3, 4, 5};
std::for_each(numbers.begin(), numbers.end(), [](int n) {
std::cout << "Square of " << n << " is " << n * n << std::endl;
});
// Smart pointers
auto ptr = std::make_unique<Calculator>("Smart Calculator");
ptr->displayInfo();
return 0;
}`,
csharp: `// C# Sample - Modern C# Features
using System;
using System.Collections.Generic;
using System.Linq;
namespace HelloWorld
{
public class Person
{
public string Name { get; set; }
public int Age { get; set; }
public Person(string name, int age)
{
Name = name;
Age = age;
}
public void Introduce()
{
Console.WriteLine($"Hello, I'm {Name} and I'm {Age} years old.");
}
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("C# Sample Application");
var people = new List<Person>
{
new Person("Alice", 30),
new Person("Bob", 25),
new Person("Charlie", 35)
};
// LINQ example
var adults = people.Where(p => p.Age >= 18).OrderBy(p => p.Age);
foreach (var person in adults)
{
person.Introduce();
}
Console.WriteLine($"Average age: {people.Average(p => p.Age):F1}");
// Pattern matching (C# 7+)
foreach (var person in people)
{
var description = person.Age switch
{
< 30 => "Young adult",
>= 30 and < 60 => "Middle-aged",
_ => "Senior"
};
Console.WriteLine($"{person.Name} is {description}");
}
}
}
}`,
go: `// Go Sample - Concurrent Programming
package main
import (
"fmt"
"sync"
"time"
)
type Person struct {
Name string
Age int
}
func (p Person) Introduce() {
fmt.Printf("Hello, I'm %s and I'm %d years old.\\n", p.Name, p.Age)
}
func worker(id int, jobs <-chan int, results chan<- int, wg *sync.WaitGroup) {
defer wg.Done()
for j := range jobs {
fmt.Printf("Worker %d processing job %d\\n", id, j)
time.Sleep(time.Millisecond * 100)
results <- j * 2
}
}
func fibonacci(n int) int {
if n <= 1 {
return n
}
return fibonacci(n-1) + fibonacci(n-2)
}
func main() {
fmt.Println("Go Sample Application")
// Struct example
person := Person{Name: "Alice", Age: 30}
person.Introduce()
// Goroutines and channels example
const numJobs = 5
jobs := make(chan int, numJobs)
results := make(chan int, numJobs)
var wg sync.WaitGroup