-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
988 lines (836 loc) ยท 22.5 KB
/
index.html
File metadata and controls
988 lines (836 loc) ยท 22.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GreenFarm - Gamified Sustainable Farming Education Platform</title>
<link rel="stylesheet" href="style.css">
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}
body{
background:#e3efe7;
overflow-x: hidden;
}
/* ---------- NAVBAR ---------- */
.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 80px;
background:#fff;
position:fixed;
width:100%;
top:0;
z-index:1000;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
transition:0.3s;
}
.navbar.scrolled{
padding:15px 80px;
box-shadow:0 4px 20px rgba(0,0,0,0.1);
}
.logo{
font-weight:bold;
font-size:26px;
color:#1f3d2b;
display:flex;
align-items:center;
gap:8px;
}
.nav-links{
display:flex;
gap:35px;
align-items:center;
}
.nav-links a{
text-decoration:none;
color:#000000;
font-weight:500;
font-size:15px;
transition:0.3s;
position:relative;
}
.nav-links a:not(.join-btn):hover{
color:#2f8f57;
}
.nav-links a:not(.join-btn)::after{
content:'';
position:absolute;
bottom:-5px;
left:0;
width:0;
height:2px;
background:#2f8f57;
transition:0.3s;
}
.nav-links a:not(.join-btn):hover::after{
width:100%;
}
.join-btn{
background:#2f8f57;
color:white;
padding:12px 24px;
border-radius:25px;
font-weight:600;
transition:0.3s;
border:2px solid #2f8f57;
}
.join-btn:hover{
background:#1f6b42;
border-color:#1f6b42;
transform:translateY(-2px);
box-shadow:0 5px 15px rgba(47,143,87,0.3);
}
.join-btn.outline{
background:transparent;
color:#2f8f57;
border:2px solid #2f8f57;
}
.join-btn.outline:hover{
background:#2f8f57;
color:white;
}
/* ---------- HERO ---------- */
.hero{
display:flex;
justify-content:space-between;
align-items:center;
padding:140px 80px 80px;
gap:60px;
background:linear-gradient(135deg, #e3efe7 0%, #d9e7df 100%);
}
.hero-left{
max-width:580px;
animation:fadeInLeft 1s ease;
}
@keyframes fadeInLeft{
from{opacity:0; transform:translateX(-30px);}
to{opacity:1; transform:translateX(0);}
}
.badge{
background:#d7efe1;
padding:10px 20px;
border-radius:25px;
display:inline-flex;
align-items:center;
gap:8px;
color:#2f8f57;
font-weight:600;
margin-bottom:25px;
font-size:14px;
border:1px solid #c9dbd0;
}
.hero h1{
font-size:56px;
line-height:1.15;
color:#1a2e23;
margin-bottom:20px;
font-weight:700;
}
.hero h1 span{
color:#2f8f57;
position:relative;
display:inline-block;
}
.hero h1 span::after{
content:'';
position:absolute;
bottom:5px;
left:0;
width:100%;
height:8px;
background:#d7efe1;
z-index:-1;
}
.hero p{
font-size:18px;
line-height:1.7;
color:#5a7b69;
margin-bottom:35px;
}
.buttons{
display:flex;
gap:18px;
margin-bottom:40px;
}
.primary-btn{
background:#2f8f57;
color:white;
padding:16px 32px;
border-radius:30px;
text-decoration:none;
font-weight:600;
font-size:16px;
transition:0.3s;
display:inline-flex;
align-items:center;
gap:8px;
box-shadow:0 4px 15px rgba(47,143,87,0.3);
}
.primary-btn:hover{
background:#1f6b42;
transform:translateY(-3px);
box-shadow:0 6px 20px rgba(47,143,87,0.4);
}
.secondary-btn{
background:transparent;
padding:16px 32px;
border-radius:30px;
text-decoration:none;
color:#2f8f57;
font-weight:600;
font-size:16px;
transition:0.3s;
border:2px solid #2f8f57;
}
.secondary-btn:hover{
background:#2f8f57;
color:white;
transform:translateY(-3px);
}
/* ---------- STATS ---------- */
.stats{
display:flex;
gap:50px;
padding-top:20px;
border-top:1px solid #c9dbd0;
}
.stat{
font-size:32px;
color:#2f8f57;
font-weight:bold;
}
.stat span{
display:block;
font-size:14px;
color:#5a7b69;
font-weight:500;
margin-top:5px;
}
/* ---------- RIGHT CARD ---------- */
.hero-right{
position:relative;
animation:fadeInRight 1s ease;
margin-right:60px;
}
@keyframes fadeInRight{
from{opacity:0; transform:translateX(30px);}
to{opacity:1; transform:translateX(0);}
}
/* Decorative background shape */
.hero-right::before{
content:'';
position:absolute;
top:-20px;
right:-20px;
width:100%;
height:100%;
background:linear-gradient(135deg, #d7efe1, #bbf7d0);
border-radius:30px;
z-index:-1;
opacity:0.5;
}
.hero-right::after{
content:'';
position:absolute;
bottom:-30px;
left:-30px;
width:200px;
height:200px;
background:linear-gradient(135deg, #2f8f57, #1f6b42);
border-radius:50%;
z-index:-2;
opacity:0.1;
}
.hero-right img{
width:550px;
height:550px;
border-radius:30px;
object-fit:cover;
box-shadow:0 25px 70px rgba(47,143,87,0.2);
transition:0.4s;
border:3px solid #fff;
}
.hero-right img:hover{
transform:scale(1.03) rotate(1deg);
box-shadow:0 30px 80px rgba(47,143,87,0.25);
}
.xp-card{
position:absolute;
bottom:40px;
left:-40px;
background:white;
padding:20px 28px;
border-radius:18px;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
font-size:14px;
color:#1a2e23;
animation:slideUp 1.5s ease 0.5s both;
min-width:280px;
border:2px solid #f0f0f0;
backdrop-filter:blur(10px);
}
@keyframes slideUp{
from{opacity:0; transform:translateY(30px);}
to{opacity:1; transform:translateY(0);}
}
/* ---------- FEATURES SECTION ---------- */
.features{
padding:100px 80px;
text-align:center;
background:#fff;
}
.section-tag{
color:#2f8f57;
font-weight:700;
letter-spacing:3px;
font-size:13px;
margin-bottom:15px;
}
.features h2{
font-size:42px;
color:#1a2e23;
margin-bottom:15px;
}
.section-desc{
max-width:700px;
margin:0 auto 60px;
color:#5a7b69;
line-height:1.7;
font-size:17px;
}
.feature-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
}
.card{
background:#f8faf9;
padding:40px 30px;
border-radius:20px;
text-align:left;
border:1px solid #e8ede8;
transition:0.4s;
cursor:pointer;
}
.card:hover{
transform:translateY(-10px);
box-shadow:0 15px 40px rgba(0,0,0,0.1);
border-color:#2f8f57;
}
.card h3{
margin-top:20px;
color:#1a2e23;
font-size:20px;
}
.card p{
margin-top:12px;
color:#5a7b69;
line-height:1.6;
font-size:15px;
}
.icon{
width:60px;
height:60px;
display:flex;
align-items:center;
justify-content:center;
border-radius:15px;
font-size:26px;
transition:0.3s;
}
.card:hover .icon{
transform:scale(1.1);
}
/* icon colors */
.green{background:linear-gradient(135deg, #d7efe1, #bbf7d0);}
.orange{background:linear-gradient(135deg, #f4e2cc, #fcd9b8);}
.lightgreen{background:linear-gradient(135deg, #dff0df, #c8e6c9);}
.gold{background:linear-gradient(135deg, #f1e6d3, #e8d5b5);}
.blue{background:linear-gradient(135deg, #d6e8f4, #c5dfef);}
.brown{background:linear-gradient(135deg, #e6ded7, #d9cfc5);}
/* ================= HOW IT WORKS ================= */
.how{
padding:100px 80px;
background:linear-gradient(135deg, #e3efe7 0%, #dbe8df 100%);
text-align:center;
}
.steps{
margin-top:60px;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
}
.step{
background:white;
padding:40px 25px;
border-radius:20px;
transition:0.3s;
border:1px solid #e8ede8;
}
.step:hover{
transform:translateY(-8px);
box-shadow:0 15px 40px rgba(0,0,0,0.1);
}
.step-icon{
width:80px;
height:80px;
margin:auto;
border-radius:20px;
background:#2f8f57;
color:#fff;
font-size:32px;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 10px 25px rgba(47,143,87,0.3);
transition:0.3s;
}
.step:hover .step-icon{
transform:scale(1.1) rotate(5deg);
}
.step h3{
margin-top:25px;
color:#1a2e23;
font-size:20px;
}
.step p{
margin-top:10px;
color:#5a7b69;
font-size:15px;
line-height:1.6;
}
/* ================= WHO ================= */
.who{
padding:100px 80px;
text-align:center;
background:#fff;
}
.who-grid{
margin-top:60px;
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
}
.who-card{
background:#f8faf9;
padding:50px 35px;
border-radius:20px;
border:1px solid #e8ede8;
transition:0.4s;
cursor:pointer;
}
.who-card:hover{
transform:translateY(-10px);
box-shadow:0 15px 40px rgba(0,0,0,0.1);
border-color:#2f8f57;
}
.who-icon{
width:90px;
height:90px;
margin:auto;
border-radius:50%;
background:linear-gradient(135deg, #d7efe1, #bbf7d0);
font-size:36px;
display:flex;
align-items:center;
justify-content:center;
transition:0.3s;
}
.who-card:hover .who-icon{
transform:scale(1.15) rotate(10deg);
}
.who-card h3{
margin-top:25px;
color:#1a2e23;
font-size:22px;
}
.who-card p{
margin-top:12px;
color:#5a7b69;
line-height:1.6;
font-size:15px;
}
/* ================= CTA ================= */
.cta{
padding:120px 80px;
background:linear-gradient(135deg, #2f8f57 0%, #1f6b42 100%);
text-align:center;
color:white;
position:relative;
overflow:hidden;
}
.cta::before{
content:'';
position:absolute;
top:-50%;
right:-50%;
width:100%;
height:100%;
background:radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
animation:pulse 3s ease-in-out infinite;
}
@keyframes pulse{
0%, 100%{transform:scale(1);}
50%{transform:scale(1.1);}
}
.cta-icon{
font-size:48px;
margin-bottom:20px;
}
.cta h2{
font-size:42px;
margin-bottom:15px;
font-weight:700;
}
.cta p{
margin:20px auto 40px;
max-width:650px;
opacity:0.95;
font-size:18px;
line-height:1.7;
}
.cta-btn{
display:inline-flex;
align-items:center;
gap:10px;
background:#f0a12b;
padding:18px 40px;
border-radius:40px;
color:white;
text-decoration:none;
font-weight:700;
font-size:17px;
transition:0.3s;
box-shadow:0 8px 25px rgba(240,161,43,0.4);
}
.cta-btn:hover{
background:#d88d1f;
transform:translateY(-3px);
box-shadow:0 12px 35px rgba(240,161,43,0.5);
}
/* ================= FOOTER ================= */
.footer{
background:#0e2a1c;
padding:50px 80px;
color:#d1ddd5;
text-align:center;
}
.footer h3{
font-size:24px;
margin-bottom:10px;
color:#2f8f57;
}
.footer p{
font-size:14px;
opacity:0.8;
}
/* ================= RESPONSIVE ================= */
@media(max-width:1024px){
.navbar{
padding:18px 40px;
}
.hero{
padding:120px 40px 60px;
flex-direction:column;
text-align:center;
}
.hero-left{
max-width:100%;
}
.hero h1{
font-size:42px;
}
.buttons{
justify-content:center;
}
.stats{
justify-content:center;
}
.hero-right{
margin-top:40px;
margin-right:0;
}
.hero-right img{
width:100%;
max-width:500px;
height:auto;
min-height:400px;
}
.xp-card{
left:20px;
right:20px;
min-width:auto;
}
.feature-grid{
grid-template-columns:repeat(2,1fr);
}
.steps{
grid-template-columns:repeat(2,1fr);
}
.who-grid{
grid-template-columns:1fr;
}
}
@media(max-width:768px){
.navbar{
padding:15px 20px;
}
.nav-links{
gap:15px;
}
.nav-links a{
font-size:13px;
}
.join-btn{
padding:10px 18px;
}
.hero{
padding:100px 20px 40px;
}
.hero h1{
font-size:32px;
}
.hero p{
font-size:16px;
}
.buttons{
flex-direction:column;
}
.stats{
gap:30px;
flex-wrap:wrap;
}
.hero-right img{
width:100%;
height:auto;
min-height:300px;
max-width:100%;
}
.xp-card{
position:relative;
left:0;
bottom:0;
margin-top:20px;
}
.feature-grid{
grid-template-columns:1fr;
}
.steps{
grid-template-columns:1fr;
}
.features, .how, .who, .cta{
padding:60px 20px;
}
}
</style>
</head>
<body>
<!-- NAVBAR -->
<div class="navbar" id="navbar">
<div class="logo">๐ฑ GreenFarm</div>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#how">How It Works</a>
<a href="#who">Who It's For</a>
<a class="join-btn" href="QuizzSelector.html">Start Quiz</a>
<a class="join-btn outline" href="signin.html">Sign In</a>
</div>
</div>
<!-- HERO SECTION -->
<section class="hero">
<div class="hero-left">
<div class="badge">๐ฑ Learn. Grow. Sustain.</div>
<h1>
Farm Smarter,<br><span>Save the Planet</span>
</h1>
<p>
Master sustainable farming through interactive quizzes, real-world challenges,
and expert guidance. Earn rewards while making agriculture greener and more profitable!
</p>
<div class="buttons">
<a href="signup.html" class="primary-btn">Start Learning Free โ</a>
<a href="#features" class="secondary-btn">Explore Features</a>
</div>
<div class="stats">
<div class="stat">10,000+<span>Active Learners</span></div>
<div class="stat">500+<span>Expert Quizzes</span></div>
<div class="stat">50+<span>Industry Experts</span></div>
</div>
</div>
<div class="hero-right">
<img src="hero-farming.jpeg" alt="Sustainable farming landscape" onerror="this.src='data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22500%22 height=%22500%22%3E%3Crect fill=%22%23d7efe1%22 width=%22500%22 height=%22500%22/%3E%3Ctext x=%2250%25%22 y=%2250%25%22 dominant-baseline=%22middle%22 text-anchor=%22middle%22 font-family=%22Arial%22 font-size=%2236%22 fill=%22%232f8f57%22%3E๐ฑ Farm Image%3C/text%3E%3C/svg%3E'">
<div class="xp-card">
<b style="color:#2f8f57; font-size:16px;">๐ฑ +50 XP Earned!</b><br>
<span style="color:#5a7b69; font-size:13px; margin-top:5px; display:block;">Completed Soil Health Quiz</span>
</div>
</div>
</section>
<!-- FEATURES SECTION -->
<section class="features" id="features">
<p class="section-tag">FEATURES</p>
<h2>Everything You Need to Grow</h2>
<p class="section-desc">
Our comprehensive platform combines education, gamification, and community support to make
sustainable farming accessible, engaging, and rewarding for everyone.
</p>
<div class="feature-grid">
<div class="card">
<a href="QuizzSelector.html" style="text-decoration: none;"><div class="icon green">๐ง </div>
<h3>Interactive Quizzes</h3>
<p>Test and expand your knowledge with expertly designed quizzes on eco-friendly farming techniques, soil management, and sustainable practices.</p></a>
</div>
<div class="card">
<a href="archives.html" style="text-decoration: none;"><div class="icon orange">๐๏ธ</div>
<h3>Official Archives</h3>
<p>Access verified documents and resources from trusted agricultural authorities to build comprehensive, evidence-based knowledge.</p></a>
</div>
<div class="card">
<div class="icon lightgreen">๐ฏ</div>
<h3>Real-World Challenges</h3>
<p>Apply your learning with practical, hands-on challenges designed to solve actual farming scenarios you'll encounter in the field.</p>
</div>
<div class="card">
<div class="icon gold">๐</div>
<h3>Rankings & Rewards</h3>
<p>Compete on global leaderboards, earn prestigious badges, and unlock achievements that showcase your agricultural expertise.</p>
</div>
<a href="certificates.html" style="text-decoration: none;"><div class="card">
<div class="icon blue">๐</div>
<h3>Certificates</h3>
<p>Get official certification from the industries leading Experts and Authorities. </p>
</div></a>
<a href="experts.html" style="text-decoration: none;"><div class="card">
<div class="icon brown">๐ฌ</div>
<h3>Expert Advisory</h3>
<p>Connect directly with certified agricultural experts and experienced farmers for personalized guidance and mentorship.</p>
</div></a>
</div>
</section>
<!-- HOW IT WORKS -->
<section class="how" id="how">
<p class="section-tag">HOW IT WORKS</p>
<h2>Your Journey to Sustainable Farming</h2>
<p class="section-desc">
Follow our proven four-step process to transform your farming knowledge and practices
</p>
<div class="steps">
<div class="step">
<div class="step-icon">๐</div>
<h3>Learn</h3>
<p>Explore comprehensive modules on sustainable farming practices, from basics to advanced techniques</p>
</div>
<div class="step">
<div class="step-icon">๐ฎ</div>
<h3>Play & Practice</h3>
<p>Engage with interactive quizzes and complete real-world challenges to reinforce your learning</p>
</div>
<div class="step">
<div class="step-icon">๐๏ธ</div>
<h3>Earn & Rank</h3>
<p>Gain XP points, unlock badges, and climb the global leaderboard as you progress</p>
</div>
<div class="step">
<div class="step-icon">๐ค</div>
<h3>Connect & Grow</h3>
<p>Network with industry experts, get noticed by employers, and advance your agricultural career</p>
</div>
</div>
</section>
<!-- WHO IS IT FOR -->
<section class="who" id="who">
<p class="section-tag">WHO IS IT FOR</p>
<h2>Built for Agricultural Change Makers</h2>
<p class="section-desc">
Whether you're just starting out or looking to enhance your existing practices,
GreenFarm provides the tools and knowledge you need to succeed
</p>
<div class="who-grid">
<div class="who-card">
<div class="who-icon">๐</div>
<h3>Emerging Farmers</h3>
<p>New and aspiring farmers looking to adopt sustainable, profitable practices from day one and build a successful agricultural career.</p>
</div>
<div class="who-card">
<div class="who-icon">๐</div>
<h3>Agriculture Students</h3>
<p>Students seeking to complement their academic knowledge with practical skills and build a competitive portfolio for future employers.</p>
</div>
<div class="who-card">
<div class="who-icon">๐ฟ</div>
<h3>Sustainability Advocates</h3>
<p>Eco-conscious individuals and professionals passionate about promoting green agriculture and environmental stewardship.</p>
</div>
</div>
</section>
<!-- CTA -->
<section class="cta">
<div class="cta-icon">๐ฑ</div>
<h2>Ready to Transform Your Farming Knowledge?</h2>
<p>
Join over 10,000 farmers and students who are mastering sustainable agriculture โ
one quiz at a time. Start your journey today, completely free!
</p>
<a href="signup.html" class="cta-btn">Get Started Free โ</a>
</section>
<!-- FOOTER -->
<footer class="footer">
<h3>๐ฑ GreenFarm</h3>
<p>ยฉ 2026 GreenFarm Education Platform. Building a sustainable future through gamified learning.</p>
<p style="margin-top:15px; font-size:12px;">
<a href="#" style="color:#2f8f57; text-decoration:none; margin:0 10px;">Privacy Policy</a> |
<a href="#" style="color:#2f8f57; text-decoration:none; margin:0 10px;">Terms of Service</a> |
<a href="#" style="color:#2f8f57; text-decoration:none; margin:0 10px;">Contact Us</a>
</p>
</footer>
<script>
// Navbar scroll effect
window.addEventListener('scroll', function() {
const navbar = document.getElementById('navbar');
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Intersection Observer for scroll animations
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver(function(entries) {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
// Observe all cards and sections
document.querySelectorAll('.card, .step, .who-card').forEach(el => {
el.style.opacity = '0';
el.style.transform = 'translateY(20px)';
el.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(el);
});
</script>
</body>
</html>