-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1133 lines (1123 loc) · 42.8 KB
/
index.html
File metadata and controls
1133 lines (1123 loc) · 42.8 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" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TypeScript Pro - Advanced TypeScript Learning Platform</title>
<meta
name="description"
content="Master TypeScript with interactive examples, AI assistant, and comprehensive learning resources"
/>
<!-- CSS Style -->
<link rel="stylesheet" href="css/style.css" />
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- DaisyUI Component CDN -->
<link
href="https://cdn.jsdelivr.net/npm/daisyui@4.12.10/dist/full.min.css"
rel="stylesheet"
type="text/css"
/>
<!-- Ace Editor -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ace.js"
defer
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.14/ext-language_tools.min.js"
defer
></script>
<!-- TypeScript Services -->
<script
src="https://unpkg.com/typescript@latest/lib/typescriptServices.js"
defer
></script>
<!-- Highlight.js For Code Blocks -->
<script
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"
defer
></script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css"
/>
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<!-- Chart.js For Visualizations CDN -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body
class="min-h-screen antialiased transition-colors duration-300 bg-theme-primary text-theme-primary"
>
<!-- Theme -->
<div class="fixed top-16 right-4 z-50">
<div class="dropdown dropdown-end theme-dropdown" id="theme-dropdown">
<button
id="theme-toggle"
aria-haspopup="true"
aria-expanded="false"
class="btn btn-ghost btn-circle shadow-lg bg-theme-secondary backdrop-blur-sm"
>
<span class="sr-only">Open theme menu</span>
<i class="fas fa-palette text-lg" aria-hidden="true"></i>
</button>
<!-- Scrollable menu -->
<ul
id="theme-menu"
role="menu"
aria-label="Themes"
class="dropdown-content z-[60] menu p-2 shadow-2xl bg-theme-secondary rounded-box w-52 mt-2 max-h-80 overflow-y-auto theme-scroll space-y-1"
>
<li class="menu-title"><span>Themes</span></li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="light"
>
<span>Light</span>
<span class="flex items-center gap-2">
<i class="fas fa-sun text-amber-500" aria-hidden="true"></i>
<svg
class="w-4 h-4 check-icon invisible"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true"
>
<path
fill-rule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414L8.414 15 5 11.586a1 1 0 011.414-1.414L8.414 12.172l7.879-7.879a1 1 0 011.414 0z"
clip-rule="evenodd"
/>
</svg>
</span>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="dark"
>
<span>Dark</span>
<span class="flex items-center gap-2">
<i class="fas fa-moon text-indigo-500" aria-hidden="true"></i>
<svg
class="w-4 h-4 check-icon invisible"
viewBox="0 0 20 20"
fill="currentColor"
aria-hidden="true"
>
<path
fill-rule="evenodd"
d="M16.707 5.293a1 1 0 010 1.414L8.414 15 5 11.586a1 1 0 011.414-1.414L8.414 12.172l7.879-7.879a1 1 0 011.414 0z"
clip-rule="evenodd"
/>
</svg>
</span>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="cupcake"
>
<span>Cupcake</span
><i class="fas fa-cake text-pink-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="bumblebee"
>
<span>Bumblebee</span
><i class="fas fa-bee text-yellow-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="emerald"
>
<span>Emerald</span
><i class="fas fa-gem text-emerald-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="synthwave"
>
<span>Synthwave</span
><i class="fas fa-music text-purple-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="corporate"
>
<span>Corporate</span
><i class="fas fa-briefcase text-blue-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="forest"
>
<span>Forest</span
><i class="fas fa-tree text-green-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="cyberpunk"
>
<span>Cyberpunk</span
><i class="fas fa-robot text-pink-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="valentine"
>
<span>Valentine</span
><i class="fas fa-heart text-red-500" aria-hidden="true"></i>
</button>
</li>
<li role="none">
<button
role="menuitem"
class="theme-item flex justify-between w-full px-2 py-2 rounded hover:bg-base-200"
data-set-theme="halloween"
>
<span>Halloween</span
><i class="fas fa-ghost text-orange-500" aria-hidden="true"></i>
</button>
</li>
</ul>
</div>
</div>
<!-- Navigation -->
<nav
id="navbar"
class="bg-theme-secondary backdrop-blur-md shadow-lg fixed top-0 w-full z-50 transition-all duration-500 nav-visible border-b border-theme"
>
<div class="container mx-auto px-4">
<div class="flex justify-between items-center py-3">
<div class="flex items-center space-x-3">
<div
class="flex items-center justify-center w-10 h-10 rounded-xl bg-gradient-to-br from-sky-500 to-indigo-600 text-white shadow-lg transform hover:scale-105 transition-transform"
>
<i class="fas fa-code-branch text-lg"></i>
</div>
<div>
<div
class="text-xl font-bold bg-gradient-to-r from-sky-600 to-indigo-600 bg-clip-text text-transparent"
>
TypeScript Pro
</div>
<div class="text-xs text-theme-secondary -mt-1">
Advanced Learning Platform
</div>
</div>
</div>
<!-- Desktop Links -->
<div class="hidden lg:flex items-center space-x-6">
<a
href="#features"
class="text-theme-secondary hover:text-sky-600 transition-all duration-300 font-medium hover:scale-105"
>Features</a
>
<a
href="#examples"
class="text-theme-secondary hover:text-sky-600 transition-all duration-300 font-medium hover:scale-105"
>Examples</a
>
<a
href="#tryit"
class="text-theme-secondary hover:text-sky-600 transition-all duration-300 font-medium hover:scale-105"
>Playground</a
>
<a
href="#articles"
class="text-theme-secondary hover:text-sky-600 transition-all duration-300 font-medium hover:scale-105"
>Articles</a
>
<a
href="#resources"
class="text-theme-secondary hover:text-sky-600 transition-all duration-300 font-medium hover:scale-105"
>Resources</a
>
<button
id="chat-open-btn"
class="btn btn-primary btn-sm shadow-md transform hover:scale-105 transition-all"
>
<i class="fas fa-robot mr-2"></i>AI Assistant
</button>
</div>
<!-- Mobile Menu Button -->
<button
id="mobile-menu-button"
onclick="toggleMobileMenu()"
class="lg:hidden btn btn-ghost btn-sm"
aria-label="Open menu"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 text-theme-primary"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16M4 18h16"
/>
</svg>
</button>
</div>
</div>
</nav>
<!-- Mobile Menu -->
<div
id="mobile-menu"
class="lg:hidden fixed top-16 left-0 w-full bg-theme-secondary backdrop-blur-xl shadow-2xl z-40 transform -translate-y-full transition-transform duration-500"
aria-hidden="true"
>
<div class="flex flex-col p-6 space-y-4">
<a
href="#features"
class="text-theme-primary hover:text-sky-600 py-3 text-lg font-medium border-b border-theme"
onclick="toggleMobileMenu()"
>
<i class="fas fa-star mr-3 text-amber-500"></i>Features
</a>
<a
href="#examples"
class="text-theme-primary hover:text-sky-600 py-3 text-lg font-medium border-b border-theme"
onclick="toggleMobileMenu()"
>
<i class="fas fa-code mr-3 text-blue-500"></i>Examples
</a>
<a
href="#tryit"
class="text-theme-primary hover:text-sky-600 py-3 text-lg font-medium border-b border-theme"
onclick="toggleMobileMenu()"
>
<i class="fas fa-play-circle mr-3 text-green-500"></i>Playground
</a>
<a
href="#articles"
class="text-theme-primary hover:text-sky-600 py-3 text-lg font-medium border-b border-theme"
onclick="toggleMobileMenu()"
>
<i class="fas fa-newspaper mr-3 text-purple-500"></i>Articles
</a>
<a
href="#resources"
class="text-theme-primary hover:text-sky-600 py-3 text-lg font-medium border-b border-theme"
onclick="toggleMobileMenu()"
>
<i class="fas fa-book mr-3 text-red-500"></i>Resources
</a>
<button
id="chat-open-mobile"
class="btn btn-primary mt-4 w-full"
onclick="openChat()"
>
<i class="fas fa-robot mr-2"></i>AI Assistant
</button>
</div>
</div>
<!-- Hero Section -->
<section
class="pt-32 pb-20 bg-gradient-to-br from-sky-50 via-blue-50 to-indigo-100 dark:from-slate-900 dark:via-slate-800 dark:to-indigo-900/30 relative overflow-hidden"
>
<!-- Background Elements -->
<div
class="absolute top-0 left-0 w-full h-full overflow-hidden opacity-20"
>
<div
class="absolute -top-24 -right-24 w-72 h-72 bg-sky-300 dark:bg-sky-700 rounded-full blur-3xl"
></div>
<div
class="absolute -bottom-32 -left-32 w-96 h-96 bg-indigo-300 dark:bg-indigo-700 rounded-full blur-3xl"
></div>
</div>
<div class="container mx-auto px-4 text-center relative z-10">
<div
class="inline-flex items-center gap-2 bg-theme-secondary backdrop-blur-sm rounded-full px-4 py-2 mb-6 shadow-lg border border-theme"
>
<span class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></span>
<span class="text-sm font-medium text-theme-primary"
>Master TypeScript with Interactive Learning</span
>
</div>
<h1
class="hero-title text-5xl md:text-7xl font-extrabold text-slate-900 dark:text-white mb-6 leading-tight"
>
<span
class="bg-gradient-to-r from-sky-600 to-indigo-600 bg-clip-text text-transparent"
>TypeScript</span
>
<span class="block mt-2">Pro Platform</span>
</h1>
<p
class="text-xl md:text-2xl text-theme-secondary max-w-4xl mx-auto mb-8 leading-relaxed"
>
Advanced TypeScript learning with
<span class="font-semibold text-sky-600 dark:text-sky-400"
>50+ Features</span
>,
<span class="font-semibold text-indigo-600 dark:text-indigo-400"
>Interactive Playground</span
>
<span class="font-semibold text-indigo-800 dark:text-indigo-800"
>, and</span
>
<span class="font-semibold text-emerald-600 dark:text-emerald-400"
>AI-Powered Assistant</span
>
</p>
<div class="flex flex-col sm:flex-row justify-center gap-4 mb-12">
<a
href="#tryit"
class="btn btn-primary btn-lg shadow-xl transform hover:scale-105 transition-all duration-300 group"
>
<span>Start Coding Now</span>
<i
class="fas fa-arrow-right ml-2 group-hover:translate-x-1 transition-transform"
></i>
</a>
<a
href="#features"
class="btn btn-outline btn-lg shadow-lg transform hover:scale-105 transition-all duration-300"
>
<i class="fas fa-graduation-cap mr-2"></i>
Explore Features
</a>
</div>
<!-- Stats -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 max-w-2xl mx-auto">
<div
class="bg-theme-secondary backdrop-blur-sm rounded-2xl p-4 shadow-lg border border-theme"
>
<div class="text-2xl font-bold text-sky-600 dark:text-sky-400">
50+
</div>
<div class="text-sm text-theme-secondary">Features</div>
</div>
<div
class="bg-theme-secondary backdrop-blur-sm rounded-2xl p-4 shadow-lg border border-theme"
>
<div
class="text-2xl font-bold text-indigo-600 dark:text-indigo-400"
>
50
</div>
<div class="text-sm text-theme-secondary">Articles</div>
</div>
<div
class="bg-theme-secondary backdrop-blur-sm rounded-2xl p-4 shadow-lg border border-theme"
>
<div
class="text-2xl font-bold text-emerald-600 dark:text-emerald-400"
>
AI
</div>
<div class="text-sm text-theme-secondary">Assistant</div>
</div>
<div
class="bg-theme-secondary backdrop-blur-sm rounded-2xl p-4 shadow-lg border border-theme"
>
<div class="text-2xl font-bold text-amber-600 dark:text-amber-400">
Live
</div>
<div class="text-sm text-theme-secondary">Playground</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section
id="features"
class="py-20 bg-theme-primary relative overflow-hidden"
>
<div
class="absolute top-0 left-0 w-full h-20 bg-gradient-to-b from-sky-50/50 to-transparent dark:from-slate-900/50"
></div>
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-theme-primary mb-4">
Advanced
<span
class="bg-gradient-to-r from-sky-600 to-indigo-600 bg-clip-text text-transparent"
>TypeScript Features</span
>
</h2>
<p class="text-xl text-theme-secondary max-w-3xl mx-auto">
Explore 50+ powerful TypeScript features with interactive examples
and detailed explanations
</p>
</div>
<div
class="grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3"
id="features-container"
>
<!-- Features will be Loaded Here: -->
<!-- ------------------------------------------------------------------------ -->
</div>
</div>
</section>
<!-- Articles Section -->
<section id="articles" class="py-20 bg-theme-primary border-t border-theme">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-theme-primary mb-4">
Comprehensive
<span
class="bg-gradient-to-r from-purple-600 to-pink-600 bg-clip-text text-transparent"
>TypeScript Articles</span
>
</h2>
<p class="text-xl text-theme-secondary max-w-3xl mx-auto">
Deep dive into TypeScript concepts with 50 detailed articles and
practical examples
</p>
</div>
<div class="space-y-6 max-w-6xl mx-auto" id="articles-container">
<!-- Articles will be Loaded Here: -->
<!-- ------------------------------------------------------------------------ -->
</div>
</div>
</section>
<!-- Examples Section -->
<section id="examples" class="py-20 bg-theme-primary">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-theme-primary mb-4">
Interactive
<span
class="bg-gradient-to-r from-emerald-600 to-teal-600 bg-clip-text text-transparent"
>TypeScript Examples</span
>
</h2>
<p class="text-xl text-theme-secondary max-w-3xl mx-auto">
Try out TypeScript features with live code execution and instant
feedback
</p>
</div>
<div
class="bg-theme-secondary rounded-2xl shadow-2xl overflow-hidden max-w-6xl mx-auto border border-theme"
>
<div
class="p-6 border-b border-theme bg-gradient-to-r from-slate-50 to-blue-50 dark:from-slate-800 dark:to-slate-900"
>
<h3
class="text-2xl font-bold text-theme-primary"
id="example-title"
>
Union Types Example
</h3>
<p class="text-theme-secondary mt-2" id="example-description">
Function that accepts both string and number types and returns
different results based on the input type.
</p>
</div>
<div class="flex flex-col lg:flex-row">
<!-- Tabs Navigation -->
<div class="w-full lg:w-64 bg-theme-primary border-r border-theme">
<div
class="p-4 space-y-2 max-h-96 overflow-y-auto"
id="examples-tabs"
>
<!-- All Example tabs will be Loaded Here: -->
<!-- ------------------------------------------------------------------------ -->
</div>
</div>
<!-- Example Content -->
<div class="flex-1">
<div class="p-6 bg-slate-800 text-white min-h-64">
<pre
class="code-block"
><code class="language-typescript" id="example-code">// union example code appears here</code></pre>
</div>
<div class="p-6 border-t border-theme">
<div class="flex flex-col md:flex-row md:items-center gap-4">
<input
type="text"
placeholder="Enter a string or number"
class="input input-bordered flex-grow bg-theme-secondary text-theme-primary"
id="example-input"
/>
<button
class="btn btn-primary shadow-lg transform hover:scale-105 transition-all"
onclick="runExample()"
>
<i class="fas fa-play mr-2"></i>Run Example
</button>
</div>
<div
class="mt-6 p-4 bg-theme-primary rounded-lg border border-theme"
>
<p class="text-theme-secondary font-medium flex items-center">
<i class="fas fa-terminal mr-2 text-sky-500"></i>Output:
</p>
<p
id="example-output"
class="mt-2 text-theme-primary font-mono bg-theme-secondary p-3 rounded border"
>
// Results will appear here
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Playground Section -->
<section
id="tryit"
class="py-20 bg-gradient-to-br from-slate-50 to-blue-50 dark:from-slate-900 dark:to-slate-800"
>
<div class="container mx-auto px-4 max-w-7xl">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-theme-primary mb-4">
TypeScript
<span
class="bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent"
>Playground</span
>
</h2>
<p class="text-xl text-theme-secondary max-w-3xl mx-auto">
Write, compile, and execute TypeScript code in real-time with our
advanced editor
</p>
</div>
<div class="grid grid-cols-1 xl:grid-cols-3 gap-8">
<!-- Editor Panel -->
<div
class="xl:col-span-2 bg-theme-secondary rounded-2xl shadow-2xl overflow-hidden border border-theme flex flex-col"
>
<div
class="p-4 bg-gradient-to-r from-sky-500 to-indigo-600 text-white flex items-center justify-between"
>
<div class="font-semibold flex items-center">
<i class="fas fa-code mr-2"></i>TypeScript Editor
</div>
<div
class="text-xs opacity-90 bg-white/20 px-2 py-1 rounded-full"
>
Live Compilation
</div>
</div>
<div class="p-4 flex-1 min-h-[500px]">
<div
id="ace-editor"
class="rounded-lg border border-theme h-full"
></div>
</div>
<div
class="p-4 border-t border-theme bg-theme-primary flex flex-wrap gap-3"
>
<button
class="btn btn-primary shadow-lg transform hover:scale-105 transition-all"
onclick="runEditorCode()"
>
<i class="fas fa-play mr-2"></i>Run Code
</button>
<button
class="btn btn-outline border-theme text-theme-primary"
onclick="formatEditor()"
>
<i class="fas fa-indent mr-2"></i>Format
</button>
<button
class="btn btn-outline border-theme text-theme-primary"
onclick="clearEditor()"
>
<i class="fas fa-trash mr-2"></i>Clear
</button>
<div class="dropdown dropdown-top">
<div
tabindex="0"
role="button"
class="btn btn-outline border-theme text-theme-primary"
>
<i class="fas fa-plus mr-2"></i>Insert Example
</div>
<ul
tabindex="0"
class="dropdown-content z-[1] menu p-2 shadow-2xl bg-theme-secondary rounded-box w-64 max-h-80 overflow-y-auto"
></ul>
</div>
</div>
</div>
<!-- Output and Info Panel -->
<div class="space-y-8">
<!-- Output Panel -->
<div
class="bg-theme-secondary rounded-2xl shadow-2xl overflow-hidden border border-theme flex flex-col h-80"
>
<div
class="p-4 bg-theme-primary font-medium flex items-center justify-between"
>
<span class="flex items-center">
<i class="fas fa-terminal mr-2 text-sky-500"></i>Output
</span>
<button class="btn btn-ghost btn-xs" onclick="clearOutput()">
<i class="fas fa-trash"></i>
</button>
</div>
<div class="p-4 flex-1 overflow-auto bg-theme-primary">
<pre
id="output-code"
class="whitespace-pre-wrap text-sm text-theme-primary font-mono"
>
// Output will appear here</pre
>
</div>
</div>
<!-- Info Panel -->
<div
class="bg-theme-secondary rounded-2xl shadow-2xl overflow-hidden border border-theme"
>
<div
class="p-4 bg-gradient-to-r from-emerald-500 to-teal-600 text-white font-medium"
>
<i class="fas fa-info-circle mr-2"></i>Editor Information
</div>
<div class="p-4 space-y-4">
<div class="flex items-start gap-3">
<div
class="w-10 h-10 rounded-lg bg-amber-100 dark:bg-amber-900/30 flex items-center justify-center text-amber-600 dark:text-amber-400"
>
<i class="fas fa-bolt"></i>
</div>
<div>
<h4 class="font-semibold text-theme-primary">
Live Compilation
</h4>
<p class="text-sm text-theme-secondary">
TypeScript code is compiled to JavaScript in real-time
</p>
</div>
</div>
<div class="flex items-start gap-3">
<div
class="w-10 h-10 rounded-lg bg-sky-100 dark:bg-sky-900/30 flex items-center justify-center text-sky-600 dark:text-sky-400"
>
<i class="fas fa-code"></i>
</div>
<div>
<h4 class="font-semibold text-theme-primary">
Type Checking
</h4>
<p class="text-sm text-theme-secondary">
Get instant feedback on type errors and suggestions
</p>
</div>
</div>
<div class="flex items-start gap-3">
<div
class="w-10 h-10 rounded-lg bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-600 dark:text-green-400"
>
<i class="fas fa-shield-alt"></i>
</div>
<div>
<h4 class="font-semibold text-theme-primary">
Safe Execution
</h4>
<p class="text-sm text-theme-secondary">
Code runs in a secure sand boxed environment
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Resources Section -->
<section id="resources" class="py-20 bg-theme-primary">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl md:text-5xl font-bold text-theme-primary mb-4">
TypeScript
<span
class="bg-gradient-to-r from-red-600 to-pink-600 bg-clip-text text-transparent"
>Resources</span
>
</h2>
<p class="text-xl text-theme-secondary max-w-3xl mx-auto">
Essential tools, documentation, and learning materials for mastering
TypeScript
</p>
</div>
<div
class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 max-w-6xl mx-auto"
>
<!-- Resource Cards -->
<div
class="bg-theme-primary rounded-2xl p-6 shadow-lg border border-theme hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"
>
<div
class="w-12 h-12 rounded-xl bg-red-100 dark:bg-red-900/30 flex items-center justify-center text-red-600 dark:text-red-400 mb-4"
>
<i class="fas fa-book text-xl"></i>
</div>
<h3 class="text-xl font-bold text-theme-primary mb-2">
Official Documentation
</h3>
<p class="text-theme-secondary mb-4">
Comprehensive TypeScript documentation and handbook
</p>
<a
href="https://www.typescriptlang.org/docs/"
class="text-red-600 dark:text-red-400 font-medium hover:underline flex items-center"
>
Explore Docs <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div
class="bg-theme-primary rounded-2xl p-6 shadow-lg border border-theme hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"
>
<div
class="w-12 h-12 rounded-xl bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center text-blue-600 dark:text-blue-400 mb-4"
>
<i class="fas fa-play-circle text-xl"></i>
</div>
<h3 class="text-xl font-bold text-theme-primary mb-2">
TypeScript Playground
</h3>
<p class="text-theme-secondary mb-4">
Official TypeScript playground for experimentation
</p>
<a
href="https://www.typescriptlang.org/play"
class="text-blue-600 dark:text-blue-400 font-medium hover:underline flex items-center"
>
Try Playground <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
<div
class="bg-theme-primary rounded-2xl p-6 shadow-lg border border-theme hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1"
>
<div
class="w-12 h-12 rounded-xl bg-green-100 dark:bg-green-900/30 flex items-center justify-center text-green-600 dark:text-green-400 mb-4"
>
<i class="fab fa-github text-xl"></i>
</div>
<h3 class="text-xl font-bold text-theme-primary mb-2">
GitHub Repository
</h3>
<p class="text-theme-secondary mb-4">
Source code and contribution guidelines for this project
</p>
<a
href="https://github.com/md-abu-kayser/"
class="text-green-600 dark:text-green-400 font-medium hover:underline flex items-center"
>
View on GitHub <i class="fas fa-arrow-right ml-2"></i>
</a>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-slate-900 text-white py-16 mt-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div>
<div class="flex items-center space-x-3 mb-4">
<div
class="flex items-center justify-center w-10 h-10 rounded-lg bg-gradient-to-br from-sky-500 to-indigo-600 text-white"
>
<i class="fas fa-code-branch"></i>
</div>
<div>
<div class="text-lg font-bold">TypeScript Pro</div>
<div class="text-xs text-slate-400">
Advanced Learning Platform
</div>
</div>
</div>
<p class="text-slate-400 text-sm mb-4">
Master TypeScript with interactive examples, AI Assistance and
comprehensive learning resources.
</p>
<div class="flex space-x-3">
<a
href="#"
class="w-8 h-8 rounded-full bg-slate-800 flex items-center justify-center hover:bg-sky-600 transition-colors"
>
<i class="fab fa-twitter text-xs"></i>
</a>
<a
href="#"
class="w-8 h-8 rounded-full bg-slate-800 flex items-center justify-center hover:bg-blue-800 transition-colors"
>
<i class="fab fa-linkedin-in text-xs"></i>
</a>
<a
href="https://github.com/md-abu-kayser/"
class="w-8 h-8 rounded-full bg-slate-800 flex items-center justify-center hover:bg-slate-700 transition-colors"
>
<i class="fab fa-github text-xs"></i>
</a>
</div>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Quick Links</h4>
<ul class="text-slate-400 text-sm space-y-2">
<li>
<a href="#features" class="hover:text-white transition-colors"
>Features</a
>
</li>
<li>
<a href="#examples" class="hover:text-white transition-colors"
>Examples</a
>
</li>
<li>
<a href="#tryit" class="hover:text-white transition-colors"
>Playground</a
>
</li>
<li>
<a href="#articles" class="hover:text-white transition-colors"
>Articles</a
>
</li>
<li>
<a href="#resources" class="hover:text-white transition-colors"
>Resources</a
>
</li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">TypeScript Resources</h4>
<ul class="text-slate-400 text-sm space-y-2">
<li>
<a
href="https://www.typescriptlang.org/"
class="hover:text-white transition-colors"
>Official Website</a
>
</li>
<li>
<a
href="https://www.typescriptlang.org/docs/"
class="hover:text-white transition-colors"
>Documentation</a
>
</li>
<li>
<a
href="https://www.typescriptlang.org/play"
class="hover:text-white transition-colors"
>Playground</a
>
</li>
<li>
<a
href="https://md-abu-kayser.github.io/professional-typescript-showcase/"
class="hover:text-white transition-colors"
>GitHub Repo</a
>
</li>
<li>
<a
href="https://www.typescriptlang.org/community"
class="hover:text-white transition-colors"
>Community</a
>
</li>
</ul>
</div>
<div>
<h4 class="text-lg font-semibold mb-4">Project Info</h4>
<ul class="text-slate-400 text-sm space-y-2">
<li>
<a href="#" class="hover:text-white transition-colors">About</a>
</li>
<li>
<a href="#" class="hover:text-white transition-colors"
>Contribute</a
>
</li>
<li>
<a href="#" class="hover:text-white transition-colors"
>License</a
>
</li>
<li>
<a href="#" class="hover:text-white transition-colors"
>Changelog</a
>
</li>
<li>
<a href="#" class="hover:text-white transition-colors"
>Feedback</a
>
</li>
</ul>
</div>
</div>
<div
class="mt-12 pt-8 border-t border-slate-800 text-center text-slate-400 text-sm"