-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
979 lines (920 loc) · 32.1 KB
/
index.html
File metadata and controls
979 lines (920 loc) · 32.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-D0ENCWPZL9"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-D0ENCWPZL9');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Learn HTML, CSS, JavaScript - LoOPCode</title>
<link rel="icon" type="image/png" sizes="32x32" href="logo.png">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9360644363281735"
crossorigin="anonymous"></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* --- Keyframes for Animations --- */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* --- Base Styles & Dark Mode --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
}
body {
font-family: 'Poppins', sans-serif;
background: #121212; /* DARK BACKGROUND */
color: #e0e0e0; /* Light default text */
position: relative;
overflow-x: hidden;
}
a {
text-decoration: none;
color: inherit;
transition: color 0.3s ease; /* Smooth transition for all links */
}
img {
max-width: 100%;
height: auto;
}
ul {
list-style: none;
}
/* --- Animated Elements Styling (Initially Hidden) --- */
.animate-on-scroll {
opacity: 0; /* Start hidden */
transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in {
/* Uses default opacity transition */
}
.animate-fade-in-up {
transform: translateY(20px); /* Start slightly lower */
}
.animate-scale-in {
transform: scale(0.95); /* Start slightly smaller */
}
/* Add 'visible' class when element is in view (JS) */
.animate-on-scroll.visible {
opacity: 1;
transform: translateY(0) scale(1);
}
/* --- Navbar (Glassmorphism Effect) --- */
nav {
/* Semi-transparent dark background with blur */
background: rgba(38, 38, 28, 0.5); /* Darker semi-transparent */
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px); /* Safari support */
border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
padding: 15px 30px;
display: flex;
justify-content: space-between;
align-items: center;
position: sticky;
top: 0;
z-index: 1000;
width: 100%;
transition: background-color 0.3s ease; /* Smooth transition if needed */
}
.nav-brand {
display: flex;
align-items: center;
}
.nav-brand img {
height: 40px;
margin-right: 10px;
}
.logo-epic {
display: flex;
justify-content: center;
gap: 6px;
perspective: 1200px;
}
.logo-epic span {
font-size: 42px;
font-weight: 800;
font-family: 'Orbitron', sans-serif;
background: linear-gradient(135deg, #ff00c8, #00f6ff, #00ff94, #ffeb3b);
background-size: 800%;
background-clip: text;
-webkit-background-clip: text;
color: transparent;
transform: scale(0) rotateX(720deg) translateX(300px);
opacity: 0;
animation: chaosDrop 2s ease-out forwards, plasmaShift 8s linear infinite;
animation-delay: calc(var(--i) * 0.2s);
display: inline-block;
filter: blur(8px);
}
.logo-epic span:nth-child(1) { --i: 0; }
.logo-epic span:nth-child(2) { --i: 1; }
.logo-epic span:nth-child(3) { --i: 2; }
.logo-epic span:nth-child(4) { --i: 3; }
.logo-epic span:nth-child(5) { --i: 4; }
.logo-epic span:nth-child(6) { --i: 5; }
.logo-epic span:nth-child(7) { --i: 6; }
.logo-epic span:nth-child(8) { --i: 7; }
@keyframes chaosDrop {
0% {
transform: scale(0) rotateX(720deg) translateX(300px);
opacity: 0;
filter: blur(10px);
}
50% {
transform: scale(1.2) rotateX(180deg) translateX(-50px);
opacity: 1;
filter: blur(4px);
}
80% {
transform: scale(0.95) translateX(10px);
filter: blur(1px);
}
100% {
transform: scale(1) translateX(0px) rotateX(0deg);
opacity: 1;
filter: blur(0);
}
}
@keyframes plasmaShift {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
/* Desktop Navigation Links */
.nav-links {
display: flex;
gap: 25px;
}
.nav-links li a {
font-weight: 500;
color: #e0e0e0; /* Light text color */
padding: 5px 0;
position: relative; /* For underline effect */
transition: color 0.3s ease;
}
.nav-links li a::after { /* Underline hover effect */
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -2px;
left: 0;
background-color: #00aeff;
transition: width 0.3s ease;
}
.nav-links li a:hover {
color: #00aeff; /* Highlight color */
}
.nav-links li a:hover::after {
width: 100%;
}
/* Hamburger Menu Toggle Button */
.menu-toggle {
display: none;
cursor: pointer;
background: none;
border: none;
font-size: 24px;
color: #e0e0e0; /* Light icon color */
transition: color 0.6s ease;
}
.menu-toggle:hover {
color: #00aeff;
}
/* --- Hero --- */
header {
min-height: 90vh;
/* Keep gradient, maybe adjust colors if needed */
background: linear-gradient(135deg, #007BFF, #0056b3); /* Slightly darker blue gradient */
color: #fff; /* White text stands out */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 20px;
position: relative; /* For potential pseudo-element effects */
}
header h1 {
font-size: 2.5rem;
margin-bottom: 15px;
font-weight: 600;
/* Animation for H1 */
animation: fadeIn 1s ease-out 0.2s both;
}
header p {
font-size: 1.1rem;
margin-bottom: 30px;
max-width: 600px;
color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
/* Animation for P */
animation: fadeInUp 1s ease-out 0.5s both;
}
.btn-primary {
padding: 12px 30px;
background: #00aeff; /* Brighter blue button */
color: #121212; /* Dark text on bright button */
border-radius: 30px;
font-weight: bold;
border: none;
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Added transform/shadow transition */
box-shadow: 0 4px 10px rgba(0, 174, 255, 0.2); /* Subtle glow */
/* Animation for Button */
animation: fadeInUp 1s ease-out 0.8s both;
}
.btn-primary:hover {
background: #fff; /* White background on hover */
color: #007BFF; /* Blue text on hover */
transform: translateY(-3px) scale(1.03); /* Lift effect */
box-shadow: 0 6px 15px rgba(0, 174, 255, 0.3); /* Enhanced glow */
}
/* --- Sections --- */
section {
padding: 80px 20px; /* Increased padding slightly */
max-width: 1200px;
margin: auto;
text-align: center;
}
.section-title {
font-size: 2rem; /* Increased size */
margin-bottom: 20px;
color: #00aeff; /* Brighter blue */
font-weight: 600;
}
.section-desc {
font-size: 1.1rem; /* Increased size */
color: #b0b0b0; /* Lighter grey text */
margin-bottom: 50px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
line-height: 1.7; /* Improve readability */
}
/* --- Flip Cards (Dark Mode) --- */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger min size */
gap: 35px; /* Increased gap */
margin-top: 40px;
}
.card {
perspective: 1200px; /* Increased perspective */
min-height: 320px; /* Increased height */
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
min-height: 320px;
transform-style: preserve-3d;
transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother, slightly longer flip */
}
.card:hover .card-inner {
transform: rotateY(180deg);
}
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 15px; /* More rounded corners */
padding: 35px 25px; /* Increased padding */
background: #1e1e1e; /* Darker card background */
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow for dark mode */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
transition: box-shadow 0.4s ease, transform 0.4s ease; /* Transition for hover effect */
}
.card-front:hover { /* Subtle lift/shadow increase on front hover (before flip) */
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}
.card-front i { /* Icon styling */
margin-bottom: 20px;
font-size: 3.5em; /* Larger icons */
transition: transform 0.4s ease;
}
.card-front:hover i {
transform: scale(1.1); /* Scale icon on hover */
}
.card-front h3 {
margin-bottom: 15px;
color: #00aeff;
font-size: 1.4rem;
}
.card-front p {
color: #b0b0b0;
line-height: 1.6;
}
.card-back {
background: linear-gradient(135deg, #00aeff, #007BFF); /* Vibrant gradient */
color: #1a1a1a; /* Dark text on light background */
transform: rotateY(180deg);
}
.card-back p {
font-weight: 500;
font-size: 1.05rem;
line-height: 1.7;
}
.card-back a {
color: #111;
font-weight: 600; /* Bolder link */
text-decoration: none;
position: relative;
padding-bottom: 3px;
}
.card-back a::after { /* Underline effect for link */
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 50%;
transform: translateX(-50%);
background-color: #111;
transition: width 0.3s ease;
}
.card-back a:hover::after {
width: 100%;
}
/* --- FAQ Accordion (Dark Mode) --- */
.faq {
text-align: left;
max-width: 750px; /* Slightly wider */
margin: 40px auto 0;
}
.faq-item {
background: #1e1e1e; /* Dark item background */
margin-bottom: 15px; /* More space */
border-radius: 10px; /* Smoother radius */
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
transition: background-color 0.3s ease; /* Transition for hover */
}
.faq-item:hover {
background-color: #2a2a2a; /* Slightly lighter on hover */
}
.faq-question {
padding: 20px 25px; /* More padding */
cursor: pointer;
font-weight: 600; /* Bolder question */
background: transparent; /* Use item background */
color: #e0e0e0; /* Light text */
display: flex;
justify-content: space-between;
align-items: center;
transition: color 0.3s ease;
}
.faq-item.active .faq-question {
color: #00aeff; /* Highlight active question */
}
.faq-question::after { /* + / - indicator */
content: '+';
font-size: 1.5em; /* Larger indicator */
font-weight: 300; /* Thinner plus sign */
color: #00aeff;
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth rotation */
}
.faq-item.active .faq-question::after {
transform: rotate(45deg);
}
.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; /* Smoother, longer transition */
padding: 0 25px;
background: #1e1e1e; /* Match item background */
}
.faq-answer p {
padding: 25px 0; /* More vertical padding */
line-height: 1.7;
color: #b0b0b0; /* Lighter grey text */
}
.faq-item.active .faq-answer {
max-height: 300px; /* Increased max-height */
padding: 0 25px;
}
/* --- Test Code Section (Dark Mode) --- */
#test-code {
background-color: #181818; /* Slightly different dark shade */
border-top: 1px solid rgba(255, 255, 255, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#test-code .btn-primary {
margin-top: 20px;
display: inline-block;
background-color: #00aeff;
color: #121212;
box-shadow: 0 4px 10px rgba(0, 174, 255, 0.2);
}
#test-code .btn-primary:hover {
background-color: #fff;
color: #007BFF;
transform: translateY(-3px) scale(1.03);
box-shadow: 0 6px 15px rgba(0, 174, 255, 0.3);
}
/* --- Newsletter (Dark Mode) --- */
#contact {
/* Optional: Add a subtle top border */
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.newsletter {
margin-top: 40px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.newsletter input[type="email"] {
padding: 14px 22px; /* Increased padding */
min-width: 300px;
border: 1px solid rgba(255, 255, 255, 0.2); /* Lighter border */
border-radius: 30px;
outline: none;
font-size: 1rem;
background: #2a2a2a; /* Dark input background */
color: #e0e0e0; /* Light text */
transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.newsletter input[type="email"]::placeholder { /* Style placeholder */
color: #777;
}
.newsletter input[type="email"]:focus {
border-color: #00aeff;
box-shadow: 0 0 0 3px rgba(0, 174, 255, 0.2); /* Focus ring */
}
.newsletter button {
padding: 14px 30px;
border: none;
background: #00aeff; /* Bright button */
color: #121212; /* Dark text */
border-radius: 30px;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 10px rgba(0, 174, 255, 0.2);
}
.newsletter button:hover {
background: #fff;
color: #007BFF;
transform: translateY(-3px) scale(1.03);
box-shadow: 0 6px 15px rgba(0, 174, 255, 0.3);
}
/* --- Footer (Dark Mode) --- */
footer {
background: #181818; /* Dark footer background */
color: #a0a0a0; /* Muted light grey text */
text-align: center;
padding: 40px 20px;
margin-top: 50px;
border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}
footer p {
margin-bottom: 12px;
line-height: 1.6;
}
footer a { /* Style links in footer */
color: #ccc; /* Brighter link color */
text-decoration: underline;
text-decoration-color: rgba(255, 255, 255, 0.3); /* Subtle underline */
transition: color 0.3s ease, text-decoration-color 0.3s ease;
}
footer a:hover {
color: #00aeff;
text-decoration-color: #00aeff;
}
.social-icons {
margin-top: 20px;
}
.social-icons a {
margin: 0 15px;
font-size: 24px;
color: #a0a0a0; /* Match footer text */
transition: color 0.3s ease, transform 0.3s ease;
display: inline-block;
}
.social-icons a:hover {
color: #00aeff; /* Highlight color */
transform: translateY(-3px) scale(1.1); /* Lift effect */
}
/* --- Responsive Styles (Dark Mode Adjustments) --- */
@media (max-width: 768px) {
nav {
padding: 15px 20px;
/* Glassmorphism stays */
}
.menu-toggle {
display: block;
color: #e0e0e0; /* Ensure icon is visible */
z-index: 1002;
position: relative;
}
/* Mobile Slide-in Menu (Glassmorphism) */
.nav-links {
position: fixed;
top: 0;
right: 100%; /* Start off-screen */
width: 50%; /* Slightly wider */
max-width: 320px;
height: 60vh;
/* Dark Glassmorphism for menu */
background: rgba(255, 248, 240, 0.6);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3); /* Darker shadow */
flex-direction: column;
align-items: center;
padding-top: 90px;
gap: 35px;
transition: Scroll 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* More bouncy transition */
z-index: 1001;
border-left: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}
.nav-links.active {
right: 0; /* Slide in */
}
.nav-links li a {
color: #e0e0e0; /* Light text */
font-size: 0.8rem; /* Larger tap target */
}
.nav-links li a:hover {
color: #00aeff; /* Highlight color */
}
.nav-links li a::after { /* Remove underline effect on mobile nav */
display: none;
}
header h1 {
font-size: 2rem;
}
header p {
font-size: 1rem;
}
.section-title {
font-size: 1.8rem;
}
.section-desc {
font-size: 1rem;
}
.cards {
grid-template-columns: 1fr; /* Stack cards */
gap: 30px;
}
.card {
min-height: auto; /* Let content define height on mobile */
}
.card-front, .card-back {
padding: 30px 20px;
}
.newsletter {
flex-direction: column;
align-items: stretch;
}
.newsletter input[type="email"] {
min-width: unset;
width: 100%;
margin-right: 0;
margin-bottom: 15px;
}
.newsletter button {
width: 100%;
}
/* Dim overlay adjustments */
body.menu-open::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); /* Darker overlay */
z-index: 1000;
opacity: 0;
transition: opacity 0.5s ease;
pointer-events: none;
}
body.menu-open.nav-active::before {
opacity: 1;
pointer-events: auto;
}
}
@media (max-width: 480px) {
header h1 { font-size: 1.8rem; }
header p { font-size: 0.9rem; }
.btn-primary { padding: 10px 25px; }
section { padding: 60px 15px; }
.section-title { font-size: 1.6rem; }
.section-desc { font-size: 0.95rem; }
.newsletter input[type="email"] { min-width: unset; }
footer { padding: 30px 15px;}
.social-icons a { margin: 0 10px; font-size: 22px; }
}
</style>
</head>
<body>
<nav>
<div class="nav-brand">
<img src="Logo.png" alt="Logo"> <div class="logo-epic">
<span>L</span><span>o</span><span>O</span><span>P</span>
<span>C</span><span>o</span><span>d</span><span>e</span>
</div>
</div>
<ul class="nav-links" id="nav-links">
<li><a href="#about" class="nav-link-item">About</a></li>
<li><a href="#courses" class="nav-link-item">Courses</a></li>
<li><a href="#faq" class="nav-link-item">FAQ</a></li>
<li><a href="#contact" class="nav-link-item">Contact</a></li>
<li><a href="#test-code" class="nav-link-item">Test Code</a></li>
</ul>
<button class="menu-toggle" id="menu-toggle" aria-label="Toggle navigation menu" aria-expanded="false">
<i class="fas fa-bars"></i>
</button>
</nav>
<header>
<h1 id="typing"></h1>
<p>Master web development with interactive, beginner-friendly lessons in a sleek dark theme.</p>
<a href="#courses" class="btn-primary">Get Started Now</a>
</header>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9360644363281735"
crossorigin="anonymous"></script>
<!-- Adaa -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9360644363281735"
data-ad-slot="8245607903"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<section id="about">
<h2 class="section-title animate-on-scroll animate-fade-in-up">Why Learn With Us?</h2>
<p class="section-desc animate-on-scroll animate-fade-in-up" style="transition-delay: 0.1s;">Our courses are crafted by industry experts, ensuring you get the practical knowledge needed to excel in modern web development.</p>
</section>
<section id="courses">
<h2 class="section-title animate-on-scroll animate-fade-in-up">Our Courses</h2>
<p class="section-desc animate-on-scroll animate-fade-in-up" style="transition-delay: 0.1s;">Explore our range of courses designed to take you from beginner to pro, step by step.</p>
<div class="cards">
<div class="card animate-on-scroll animate-scale-in">
<div class="card-inner">
<div class="card-front">
<i class="fab fa-html5" style="color: #E44D26;"></i>
<h3>HTML</h3>
<p>Learn the fundamental structure of all web pages.</p>
</div>
<div class="card-back">
<p><a href="Roadmap.html">Start with tags, forms, SEO basics and build complete pages. Click for Roadmap!</a></p>
</div>
</div>
</div>
<div class="card animate-on-scroll animate-scale-in" style="transition-delay: 0.15s;">
<div class="card-inner">
<div class="card-front">
<i class="fab fa-css3-alt" style="color: #1572B6;"></i>
<h3>CSS</h3>
<p>Style your sites to be beautiful and responsive.</p>
</div>
<div class="card-back">
<p><a href="Roadmapcss.html">Master Flexbox, Grid, Media Queries, Animations, and modern UI design principles.</a></p>
</div>
</div>
</div>
<div class="card animate-on-scroll animate-scale-in" style="transition-delay: 0.3s;">
<div class="card-inner">
<div class="card-front">
<i class="fab fa-js-square" style="color: #F7DF1E;"></i>
<h3>JavaScript</h3>
<p>Add interactivity and dynamic content to your websites.</p>
</div>
<div class="card-back">
<p>Learn DOM manipulation, Events, API interactions (fetch), and ES6+ modern syntax.</p>
</div>
</div>
</div>
<div class="card animate-on-scroll animate-scale-in" style="transition-delay: 0.45s;">
<div class="card-inner">
<div class="card-front">
<i class="fab fa-python" style="color: #3776AB;"></i>
<h3>Python</h3>
<p>Master programming with one of the most beginner-friendly languages.</p>
</div>
<div class="card-back">
<p><a href="Roadmappython.html">Explore variables, control flow, functions, OOP, and data structures. Click for Roadmap!</a></p>
</div>
</div>
</div>
</div>
</section>
<section id="test-code">
<h2 class="section-title animate-on-scroll animate-fade-in-up">Test Your Code Instantly!</h2>
<p class="section-desc animate-on-scroll animate-fade-in-up" style="transition-delay: 0.1s;">Need to quickly try out some HTML, CSS, or JavaScript? Use our integrated code editor.</p>
<a href="CodeEditor.html" class="btn-primary animate-on-scroll animate-fade-in-up" target="_blank" style="transition-delay: 0.2s;">Open LoOPCode Editor</a>
</section>
<section id="faq">
<h2 class="section-title animate-on-scroll animate-fade-in-up">Frequently Asked Questions</h2>
<div class="faq">
<div class="faq-item animate-on-scroll animate-fade-in-up">
<div class="faq-question">Is there any prerequisite to join?</div>
<div class="faq-answer">
<p>No prior coding experience is needed! Our courses start from the very basics, making them perfect for beginners.</p>
</div>
</div>
<div class="faq-item animate-on-scroll animate-fade-in-up" style="transition-delay: 0.1s;">
<div class="faq-question">Will I get a certificate?</div>
<div class="faq-answer">
<p>Yes! Upon successful completion of a course track, you will receive a verifiable certificate to showcase your skills.</p>
</div>
</div>
<div class="faq-item animate-on-scroll animate-fade-in-up" style="transition-delay: 0.2s;">
<div class="faq-question">Can I access content after the course ends?</div>
<div class="faq-answer">
<p>Absolutely! You get lifetime access to all course materials, including any future updates, once you enroll.</p>
</div>
</div>
<div class="faq-item animate-on-scroll animate-fade-in-up" style="transition-delay: 0.3s;">
<div class="faq-question">How long does it take to complete a course?</div>
<div class="faq-answer">
<p>Completion time varies based on your pace. Each course is broken down into modules, allowing you to learn flexibly around your schedule.</p>
</div>
</div>
</div>
</section>
<section id="contact">
<h2 class="section-title animate-on-scroll animate-fade-in-up">Stay Updated & Get In Touch</h2>
<p class="section-desc animate-on-scroll animate-fade-in-up" style="transition-delay: 0.1s;">Subscribe for web dev tips, course updates, and free resources. Feel free to reach out!</p>
<div class="newsletter animate-on-scroll animate-fade-in-up" style="transition-delay: 0.2s;">
<input type="email" id="email" placeholder="Enter your email address">
<button onclick="subscribe()">Subscribe</button>
</div>
</section>
<footer>
<p>© 2025 LoOPCode. All rights reserved.</p>
<p>
<a href="Term.html">Terms & Conditions</a> |
<a href="privacy-policy.html">Privacy Policy</a> |
<a href="about.html">About Us</a>
</p>
<div class="social-icons">
<a href="#" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
<a href="https://x.com/Dharman43360629?t=_NS7PC1Wueq_Sz8H2_Owyw&s=09" aria-label="Twitter" target="_blank" rel="noopener noreferrer"><i class="fab fa-twitter"></i></a>
<a href="https://www.instagram.com/dsh_pubg?igsh=MWI2czY5ZTk0eG5wMw==" aria-label="Instagram" target="_blank" rel="noopener noreferrer"><i class="fab fa-instagram"></i></a>
<a href="#" aria-label="LinkedIn"><i class="fab fa-linkedin-in"></i></a>
</div>
</footer>
<script>
// Typing Animation (Existing - slightly adjusted for dark theme visibility)
const typingElement = document.getElementById('typing');
if(typingElement) {
const text = "Learn HTML, CSS & JavaScript";
let idx = 0;
typingElement.style.visibility = 'hidden'; // Hide initially until JS runs
function type() {
if (typingElement) {
if (idx === 0) typingElement.style.visibility = 'visible'; // Make visible when typing starts
typingElement.textContent = text.slice(0, idx++);
if (idx <= text.length) {
setTimeout(type, 110); // Slightly slower typing
}
}
}
// Add a small delay before starting typing for smoother page load feel
setTimeout(type, 300);
}
// FAQ Toggle (Improved - closes others)
const faqItems = document.querySelectorAll('.faq-item');
faqItems.forEach(item => {
const question = item.querySelector('.faq-question');
question.addEventListener('click', () => {
const currentlyActive = document.querySelector('.faq-item.active');
// If we click an already active item, just close it
if (currentlyActive && currentlyActive === item) {
item.classList.remove('active');
} else {
// If there is an active item and it's not the one we clicked, close it
if (currentlyActive) {
currentlyActive.classList.remove('active');
}
// Open the clicked item
item.classList.add('active');
}
});
});
// Newsletter Subscribe (Existing - no change needed for dark mode)
function subscribe() {
const emailInput = document.getElementById('email');
const email = emailInput.value;
const emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
if (email.trim() === '' || !emailPattern.test(email)) {
alert('Please enter a valid email address!');
} else {
// You might want to replace alert with a less intrusive notification
alert(`Thank you for subscribing with ${email}!`);
emailInput.value = '';
}
}
// Mobile Navigation Toggle (Existing - works with new styles)
const menuToggle = document.getElementById('menu-toggle');
const navLinks = document.getElementById('nav-links');
const navLinkItems = document.querySelectorAll('.nav-link-item');
const bodyElement = document.body;
if (menuToggle && navLinks) {
menuToggle.addEventListener('click', () => {
const isActive = navLinks.classList.toggle('active');
bodyElement.classList.toggle('menu-open', isActive);
bodyElement.classList.toggle('nav-active', isActive);
menuToggle.setAttribute('aria-expanded', isActive);
const icon = menuToggle.querySelector('i');
if (isActive) {
icon.classList.remove('fa-bars');
icon.classList.add('fa-times');
} else {
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
}
});
navLinkItems.forEach(link => {
link.addEventListener('click', () => {
if (navLinks.classList.contains('active')) {
navLinks.classList.remove('active');
bodyElement.classList.remove('menu-open');
bodyElement.classList.remove('nav-active');
menuToggle.setAttribute('aria-expanded', 'false');
const icon = menuToggle.querySelector('i');
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
}
});
});
bodyElement.addEventListener('click', function(event) {
if (navLinks.classList.contains('active') && !navLinks.contains(event.target) && !menuToggle.contains(event.target)) {
navLinks.classList.remove('active');
bodyElement.classList.remove('menu-open');
bodyElement.classList.remove('nav-active');
menuToggle.setAttribute('aria-expanded', 'false');
const icon = menuToggle.querySelector('i');
icon.classList.remove('fa-times');
icon.classList.add('fa-bars');
}
});
} else {
console.error("Menu toggle button or navigation links element not found!");
}
// --- Intersection Observer for Scroll Animations ---
const animatedElements = document.querySelectorAll('.animate-on-scroll');
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
// When element comes into view (is intersecting)
if (entry.isIntersecting) {
entry.target.classList.add('visible');
// Optional: Stop observing the element after it has become visible once
// observer.unobserve(entry.target);
}
// Optional: If you want the animation to reverse when scrolling up
// else {
// entry.target.classList.remove('visible');
// }
});
}, {
rootMargin: '0px', // No margin
threshold: 0.1 // Trigger when 10% of the element is visible
});
// Observe each animated element
animatedElements.forEach(el => {
observer.observe(el);
});
</script>
</body>
</html>