-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_jan28a1.html
1114 lines (944 loc) · 55.4 KB
/
index_jan28a1.html
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>ApproVideo - DIY Solutions Portal</title>
<script src="https://cdn.tailwindcss.com" defer></script>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link href="stylenew.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js" defer></script>
<script type="module" src="index.js"></script>
</head>
<body class="theme-transition">
<div class="bg-gradient-to-r from-green-600 to-blue-600 text-white py-2 px-4 text-center text-sm banner-message">💧 Clean water, safe shelter, better lives</div>
<div class="border-b border-gray-700">
<div class="container mx-auto px-4">
<div class="flex justify-center space-x-8 py-4">🌿A P P R O V I D E O 🌱🌳🌱 </div>
<!-- Hero Section with Mondrian Overlay -->
<div class="relative">
<div class="relative h-screen bg-blue-900 overflow-hidden">
<!-- Carousel Container -->
<div class="carousel-container h-full">
<!-- Slide 1: Water Solutions -->
<div class="absolute inset-0 transition-opacity duration-700 flex flex-col md:flex-row items-center justify-center p-4 md:p-8 bg-gradient-to-br from-blue-600 to-cyan-500" style="opacity: 0;">
<!-- Mobile-friendly stacked layout -->
<div class="w-full md:w-1/2 flex flex-col items-center mb-8 md:mb-0">
<!-- Mandala -->
<svg class="w-48 md:w-96 h-48 md:h-96 text-white opacity-30" viewBox="0 0 400 400">
<!-- 9-Sided Mandala with Water Theme -->
<g transform="translate(200,200)">
<!-- Base Circles -->
<circle r="180" fill="none" stroke="currentColor" stroke-width="1"></circle>
<circle r="150" fill="none" stroke="currentColor" stroke-width="1"></circle>
{Array.from({length: 9}).map((_, i) => `
<g transform="rotate(${i * 40})">
<path d="M0,-180 L30,-150 L-30,-150 Z" fill="none" stroke="currentColor" stroke-width="1"></path>
<path d="M0,-150 Q30,-120 0,-90" fill="none" stroke="currentColor" stroke-width="1"></path>
</g>
`).join('')}
</g>
</svg>
</div>
<div class="w-full md:w-1/2 flex flex-col items-center md:items-start space-y-6">
<!-- Character -->
<svg class="w-32 h-32 text-white" viewBox="0 0 200 200">
<circle cx="100" cy="100" r="70" fill="none" stroke="currentColor" stroke-width="3"></circle>
<path d="M70,110 Q100,140 130,110" fill="none" stroke="currentColor" stroke-width="3"></path>
<path d="M70,85 Q75,80 80,85" stroke="currentColor" stroke-width="3" fill="none"></path>
<path d="M120,85 Q125,80 130,85" stroke="currentColor" stroke-width="3" fill="none"></path>
<!-- Sparkle -->
<g>
<circle cx="140" cy="75" r="3" fill="currentColor">
<animate attributeName="opacity" values="1;0;1" dur="1.5s" repeatCount="indefinite"></animate>
</circle>
</g>
</svg>
<!-- Info Panels -->
<div class="flex flex-col space-y-4 text-white w-full max-w-md">
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Clean Water Solutions</h3>
<p class="text-sm">Learn sustainable water management</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Get NFT Certified</h3>
<p class="text-sm">Earn while mastering water systems</p>
</div>
<button class="bg-white text-blue-600 px-6 py-3 rounded-lg font-bold hover:bg-opacity-90 w-full">
Start Learning
</button>
</div>
</div>
</div>
<!-- Slide 2: Sanitation -->
<div class="absolute inset-0 transition-opacity duration-700 opacity-0 flex flex-col md:flex-row items-center justify-center p-4 md:p-8 bg-gradient-to-br from-green-600 to-emerald-500" style="opacity: 1;">
<div class="w-full md:w-1/2 flex flex-col items-center mb-8 md:mb-0">
<!-- Sanitation-themed Mandala -->
<svg class="w-48 md:w-96 h-48 md:h-96 text-white opacity-30" viewBox="0 0 400 400">
<g transform="translate(200,200)">
<circle r="180" fill="none" stroke="currentColor" stroke-width="1"></circle>
<circle r="150" fill="none" stroke="currentColor" stroke-width="1"></circle>
{Array.from({length: 9}).map((_, i) => `
<g transform="rotate(${i * 40})">
<path d="M0,-180 L30,-150 L-30,-150 Z" fill="none" stroke="currentColor" stroke-width="1"></path>
<path d="M0,-150 Q30,-120 0,-90" fill="none" stroke="currentColor" stroke-width="1"></path>
</g>
`).join('')}
</g>
</svg>
</div>
<div class="w-full md:w-1/2 flex flex-col items-center md:items-start space-y-6">
<!-- Collaborative Character Scene -->
<svg class="w-64 h-64 text-white" viewBox="0 0 400 300">
<!-- First Character - Teacher -->
<g class="character-1">
<circle cx="150" cy="150" r="50" fill="none" stroke="currentColor" stroke-width="3"></circle>
<!-- Animated Teaching Expression -->
<path d="M130,150 Q150,170 170,150" fill="none" stroke="currentColor" stroke-width="3">
<animate attributeName="d" values="M130,150 Q150,170 170,150;M130,160 Q150,180 170,160;M130,150 Q150,170 170,150" dur="3s" repeatCount="indefinite"></animate>
</path>
<!-- Enthusiastic Eyes -->
<path d="M135,135 L145,135" stroke="currentColor" stroke-width="3">
<animate attributeName="d" values="M135,135 L145,135;M135,135 Q140,130 145,135;M135,135 L145,135" dur="4s" repeatCount="indefinite"></animate>
</path>
<path d="M155,135 L165,135" stroke="currentColor" stroke-width="3"></path>
<!-- Teaching Gesture -->
<path d="M200,150 Q220,140 240,150" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="4 4">
<animate attributeName="d" values="M200,150 Q220,140 240,150;M200,150 Q220,160 240,150;M200,150 Q220,140 240,150" dur="2s" repeatCount="indefinite"></animate>
</path>
</g>
<!-- Second Character - Learner -->
<g class="character-2">
<defs>
<!-- Head Gradient -->
<linearGradient id="headGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#6c3"></stop>
<stop offset="100%" stop-color="#3c6"></stop>
</linearGradient>
<!-- Body Pattern (optional) -->
<pattern id="bodyPattern" x="0" y="0" width="8" height="8" patternUnits="userSpaceOnUse">
<circle cx="2" cy="2" r="2" fill="currentColor"></circle>
</pattern>
</defs>
<!-- Second Character - Learner with improvements -->
<g class="character-2">
<!-- Head with gradient fill -->
<circle cx="250" cy="150" r="50" fill="url(#headGradient)" stroke="currentColor" stroke-width="3"></circle>
<!-- Mouth: oscillates to show curiosity/thinking -->
<path d="M230,150 Q250,170 270,150" fill="none" stroke="currentColor" stroke-width="3">
<animate attributeName="d" values="M230,150 Q250,170 270,150;
M230,160 Q250,180 270,160;
M230,150 Q250,170 270,150" dur="3s" repeatCount="indefinite" begin="0.5s"></animate>
</path>
<!-- Eyes: subtle blinking effect -->
<circle cx="235" cy="135" r="5" fill="currentColor">
<animate attributeName="r" values="5;5;5;1;5" <!--="" short="" “blink”="" to="" r="1" --="">
keyTimes="0;0.8;0.85;0.9;1"
dur="3s"
repeatCount="indefinite"
/>
</animate></circle>
<circle cx="265" cy="135" r="5" fill="currentColor">
<animate attributeName="r" values="5;5;5;1;5" keyTimes="0;0.8;0.85;0.9;1" dur="3s" repeatCount="indefinite" begin="0.3s" <!--="" slight="" delay="" for="" staggered="" blinking="" --="">
/>
</animate></circle>
<!-- Simple torso/shoulders to hint at a full figure -->
<rect x="220" y="200" width="60" height="80" fill="url(#bodyPattern)" stroke="currentColor" stroke-width="2" rx="10" ry="10" <!--="" rounded="" corners="" --="">
/>
<!-- OPTIONAL: Add small floating icons or orbits to represent sustainability themes -->
<!-- Example: A small leaf icon near the head -->
<circle cx="215" cy="110" r="5" fill="#3c6" opacity="0.8">
<animateTransform attributeName="transform" type="translate" values="0,0; 0,-5; 0,0" dur="2s" repeatCount="indefinite"></animateTransform>
</circle>
</rect></g>
<!-- Shared Learning Symbols -->
<g class="learning-symbols">
<!-- Knowledge Flow -->
<path d="M175,120 Q200,100 225,120" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="4 4">
<animate attributeName="d" values="M175,120 Q200,100 225,120;M175,120 Q200,140 225,120;M175,120 Q200,100 225,120" dur="4s" repeatCount="indefinite"></animate>
</path>
<!-- Idea Sparks -->
<circle cx="200" cy="100" r="3" fill="currentColor">
<animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite"></animate>
</circle>
<circle cx="220" cy="90" r="2" fill="currentColor">
<animate attributeName="opacity" values="0;1;0" dur="2s" repeatCount="indefinite" begin="0.5s"></animate>
</circle>
</g>
</g></svg>
<!-- Dynamic Text Panels -->
<div class="flex flex-col md:flex-row space-y-4 md:space-y-0 md:space-x-4 text-white max-w-4xl" style="background-image:images/9_sm.jpg">
<div class="bg-white bg-opacity-10 p-4 rounded-lg transform hover:scale-105 transition-transform duration-300">
<h3 class="font-bold mb-2">Learn Together</h3>
<p class="text-sm">Join a community of knowledge sharing</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg transform hover:scale-105 transition-transform duration-300 md:mt-8">
<h3 class="font-bold mb-2">Teach Others</h3>
<p class="text-sm">Share your expertise and grow</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg transform hover:scale-105 transition-transform duration-300 md:mt-16">
<h3 class="font-bold mb-2">Build Community</h3>
<p class="text-sm">Create lasting local impact</p>
</div>
</div>
<!-- Sanitation Info Panels -->
<div class="flex flex-col space-y-4 text-white w-full max-w-md">
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Sanitation Excellence</h3>
<p class="text-sm">Master sustainable waste management systems</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Earn Certification</h3>
<p class="text-sm">Become a certified sanitation specialist</p>
</div>
<button class="bg-white text-green-600 px-6 py-3 rounded-lg font-bold hover:bg-opacity-90 w-full">
Join Sanitation Program
</button>
</div>
</div>
</div>
<!-- Slide 3: Renewable Energy -->
<div class="absolute inset-0 transition-opacity duration-700 opacity-0 flex flex-col md:flex-row items-center justify-center p-4 md:p-8 bg-gradient-to-br from-yellow-500 to-orange-500" style="opacity: 0;">
<div class="w-full md:w-1/2 flex flex-col items-center mb-8 md:mb-0">
<!-- Energy-themed Mandala -->
<svg class="w-48 md:w-96 h-48 md:h-96 text-white opacity-30" viewBox="0 0 400 400">
<!-- Similar mandala structure with energy motifs -->
</svg>
</div>
<div class="w-full md:w-1/2 flex flex-col items-center md:items-start space-y-6">
<!-- Theme Icons -->
<div class="absolute top-4 right-4 flex space-x-2">
<!-- Water Icon -->
<svg class="w-8 h-8 text-white opacity-70" viewBox="0 0 40 40">
<path d="M20,5 Q30,20 30,30 A10,10 0 1,1 10,30 Q10,20 20,5" fill="none" stroke="currentColor" stroke-width="2">
<animate attributeName="stroke-dasharray" values="0,100;100,100" dur="2s" fill="freeze"></animate>
</path>
</svg>
<!-- Energy Icon -->
<svg class="w-8 h-8 text-white opacity-70" viewBox="0 0 40 40">
<path d="M20,5 L25,20 L35,20 L15,35 L20,20 L10,20 Z" fill="none" stroke="currentColor" stroke-width="2">
<animate attributeName="stroke-dasharray" values="0,100;100,100" dur="2s" fill="freeze"></animate>
</path>
</svg>
<!-- Food Icon -->
<svg class="w-8 h-8 text-white opacity-70" viewBox="0 0 40 40">
<path d="M20,10 Q30,20 20,30 Q10,20 20,10" fill="none" stroke="currentColor" stroke-width="2">
<animate attributeName="stroke-dasharray" values="0,100;100,100" dur="2s" fill="freeze"></animate>
</path>
</svg>
</div>
<!-- Energy Info Panels -->
<div class="flex flex-col space-y-4 text-white w-full max-w-md">
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Renewable Energy Mastery</h3>
<p class="text-sm">Learn to implement solar and sustainable power</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Energy Innovation</h3>
<p class="text-sm">Design and maintain renewable systems</p>
</div>
<button class="bg-white text-yellow-600 px-6 py-3 rounded-lg font-bold hover:bg-opacity-90 w-full">
Start Energy Training
</button>
</div>
</div>
</div>
<!-- Slide 4: Local Food Systems -->
<div class="absolute inset-0 transition-opacity duration-700 opacity-0 flex flex-col md:flex-row items-center justify-center p-4 md:p-8 bg-gradient-to-br from-green-500 to-lime-500" style="opacity: 0;">
<div class="w-full md:w-1/2 flex flex-col items-center mb-8 md:mb-0">
<!-- Food-themed Mandala -->
<svg class="w-48 md:w-96 h-48 md:h-96 text-white opacity-30" viewBox="0 0 400 400">
<!-- Similar mandala structure with food/plant motifs -->
</svg>
</div>
<div class="w-full md:w-1/2 flex flex-col items-center md:items-start space-y-6">
<!-- Character -->
<svg class="w-32 h-32 text-white" viewBox="0 0 200 200">
<!-- Same happy character -->
</svg>
<!-- Food Systems Info Panels -->
<div class="flex flex-col space-y-4 text-white w-full max-w-md">
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Sustainable Agriculture</h3>
<p class="text-sm">Create thriving local food systems</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Food Security</h3>
<p class="text-sm">Build community gardens and food networks</p>
</div>
<button class="bg-white text-green-600 px-6 py-3 rounded-lg font-bold hover:bg-opacity-90 w-full">
Learn Food Systems
</button>
</div>
</div>
</div>
<!-- Slide 5: Community Health -->
<div class="absolute inset-0 transition-opacity duration-700 opacity-0 flex flex-col md:flex-row items-center justify-center p-4 md:p-8 bg-gradient-to-br from-red-500 to-pink-500" style="opacity: 0;">
<div class="w-full md:w-1/2 flex flex-col items-center mb-8 md:mb-0">
<!-- Health-themed Mandala -->
<svg class="w-48 md:w-96 h-48 md:h-96 text-white opacity-30" viewBox="0 0 400 400">
<!-- Similar mandala structure with health motifs -->
</svg>
</div>
<div class="w-full md:w-1/2 flex flex-col items-center md:items-start space-y-6">
<!-- Character -->
<svg class="w-32 h-32 text-white" viewBox="0 0 200 200">
<!-- Same happy character -->
</svg>
<!-- Health Info Panels -->
<div class="flex flex-col space-y-4 text-white w-full max-w-md">
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Community Health</h3>
<p class="text-sm">Establish local health support systems</p>
</div>
<div class="bg-white bg-opacity-10 p-4 rounded-lg">
<h3 class="font-bold mb-2">Clinical Skills</h3>
<p class="text-sm">Learn essential community healthcare</p>
</div>
<button class="bg-white text-red-500 px-6 py-3 rounded-lg font-bold hover:bg-opacity-90 w-full">
Begin Health Training
</button>
</div>
</div>
</div>
</div>
<!-- Navigation Dots -->
<div class="absolute bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-2">
<button class="w-3 h-3 rounded-full bg-white focus:outline-none bg-opacity-50" onclick="goToSlide(0)"></button>
<button class="w-3 h-3 rounded-full bg-white focus:outline-none bg-opacity-100" onclick="goToSlide(1)"></button>
<button class="w-3 h-3 rounded-full bg-white focus:outline-none bg-opacity-50" onclick="goToSlide(2)"></button>
<button class="w-3 h-3 rounded-full bg-white focus:outline-none bg-opacity-50" onclick="goToSlide(3)"></button>
<button class="w-3 h-3 rounded-full bg-white focus:outline-none bg-opacity-50" onclick="goToSlide(4)"></button>
</div>
<!-- Dynamic Modal Template -->
<div id="dynamicModal" class="fixed inset-0 bg-black bg-opacity-50 hidden z-50">
<div class="fixed inset-x-0 bottom-0 transform transition-transform duration-300 translate-y-full">
<!-- Modal Content Container -->
<div class="bg-white rounded-t-xl shadow-xl max-h-[90vh] overflow-y-auto">
<!-- Modal Header -->
<div class="sticky top-0 bg-white border-b border-gray-200">
<div class="flex items-center justify-between p-4">
<h3 id="modalTitle" class="text-xl font-bold text-gray-900"></h3>
<button onclick="closeModal()" class="p-2 hover:bg-gray-100 rounded-full">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
</svg>
</button>
</div>
</div>
<!-- Modal Content -->
<div id="modalContent" class="p-4">
<!-- Dynamic content will be inserted here -->
</div>
<!-- Modal Action Buttons -->
<div class="sticky bottom-0 bg-white border-t border-gray-200 p-4 space-y-3">
<button id="primaryAction" class="w-full bg-blue-600 text-white py-3 px-4 rounded-lg font-medium hover:bg-blue-700 transition-colors">
Continue
</button>
<button onclick="closeModal()" class="w-full bg-gray-100 text-gray-700 py-3 px-4 rounded-lg font-medium hover:bg-gray-200 transition-colors">
Cancel
</button>
</div>
</div>
</div>
</div>
<script>
// Modal content configurations
const modalConfigs = {
'water-learning': {
title: 'Water Management Learning Path',
content: `
<div class="space-y-4">
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-semibold text-blue-800 mb-2">Course Overview</h4>
<div class="space-y-2">
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-blue-600">
<span>DIY Water Filtration Systems</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-blue-600">
<span>Rainwater Harvesting Techniques</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-blue-600">
<span>Water Conservation Methods</span>
</label>
</div>
</div>
<div class="bg-blue-50 p-4 rounded-lg">
<h4 class="font-semibold text-blue-800 mb-2">Learning Format</h4>
<div class="space-y-2">
<label class="flex items-center space-x-3">
<input type="radio" name="format" class="form-radio h-5 w-5 text-blue-600">
<span>Self-paced Online</span>
</label>
<label class="flex items-center space-x-3">
<input type="radio" name="format" class="form-radio h-5 w-5 text-blue-600">
<span>Live Virtual Sessions</span>
</label>
<label class="flex items-center space-x-3">
<input type="radio" name="format" class="form-radio h-5 w-5 text-blue-600">
<span>Hybrid Learning</span>
</label>
</div>
</div>
</div>
`,
primaryAction: 'Start Learning Path'
},
'certification': {
title: 'NFT Certification Program',
content: `
<div class="space-y-4">
<div class="bg-green-50 p-4 rounded-lg">
<h4 class="font-semibold text-green-800 mb-2">Certification Type</h4>
<div class="space-y-2">
<label class="flex items-center space-x-3">
<input type="radio" name="cert-type" class="form-radio h-5 w-5 text-green-600">
<span>Basic Certification</span>
</label>
<label class="flex items-center space-x-3">
<input type="radio" name="cert-type" class="form-radio h-5 w-5 text-green-600">
<span>Advanced Certification</span>
</label>
<label class="flex items-center space-x-3">
<input type="radio" name="cert-type" class="form-radio h-5 w-5 text-green-600">
<span>Expert Level</span>
</label>
</div>
</div>
<div class="bg-green-50 p-4 rounded-lg">
<h4 class="font-semibold text-green-800 mb-2">Additional Options</h4>
<div class="space-y-2">
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-green-600">
<span>Include Digital Badge</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-green-600">
<span>Join Expert Network</span>
</label>
</div>
</div>
</div>
`,
primaryAction: 'Begin Certification'
},
'sanitation': {
title: 'Sanitation Program',
content: `
<div class="space-y-4">
<div class="bg-emerald-50 p-4 rounded-lg">
<h4 class="font-semibold text-emerald-800 mb-2">Program Focus</h4>
<div class="space-y-2">
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-emerald-600">
<span>Waste Management Systems</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-emerald-600">
<span>Community Implementation</span>
</label>
<label class="flex items-center space-x-3">
<input type="checkbox" class="form-checkbox h-5 w-5 text-emerald-600">
<span>Sustainability Practices</span>
</label>
</div>
</div>
</div>
`,
primaryAction: 'Join Program'
}
};
// Modal functionality
function openModal(buttonType) {
const modal = document.getElementById('dynamicModal');
const modalContainer = modal.querySelector('.transform');
const config = modalConfigs[buttonType];
if (!config) return;
document.getElementById('modalTitle').textContent = config.title;
document.getElementById('modalContent').innerHTML = config.content;
document.getElementById('primaryAction').textContent = config.primaryAction;
modal.classList.remove('hidden');
// Trigger reflow
void modal.offsetWidth;
modalContainer.classList.remove('translate-y-full');
// Prevent body scroll
document.body.style.overflow = 'hidden';
}
// Navigation functions
function goToSlide(index) {
if (isAnimating || index === currentSlide) return;
currentSlide = index;
updateSlides();
}
function closeModal() {
const modal = document.getElementById('dynamicModal');
const modalContainer = modal.querySelector('.transform');
modalContainer.classList.add('translate-y-full');
// Wait for animation to complete before hiding
setTimeout(() => {
modal.classList.add('hidden');
document.body.style.overflow = '';
}, 300);
}
// Add click listeners to carousel buttons
// Initialize carousel state
let currentSlide = 0;
let isAnimating = false;
const slides = document.querySelectorAll('.carousel-container > div');
const dots = document.querySelectorAll('.bottom-4 button');
const totalSlides = slides.length;
// Update slides function
function updateSlides() {
if (isAnimating) return;
isAnimating = true;
slides.forEach((slide, index) => {
slide.style.opacity = index === currentSlide ? '1' : '0';
});
dots.forEach((dot, index) => {
dot.classList.toggle('bg-opacity-100', index === currentSlide);
dot.classList.toggle('bg-opacity-50', index !== currentSlide);
});
setTimeout(() => {
isAnimating = false;
}, 700);
}
// Navigation functions
function goToSlide(index) {
if (isAnimating || index === currentSlide) return;
currentSlide = index;
updateSlides();
}
function nextSlide() {
if (isAnimating) return;
currentSlide = (currentSlide + 1) % totalSlides;
updateSlides();
}
function previousSlide() {
if (isAnimating) return;
currentSlide = (currentSlide - 1 + totalSlides) % totalSlides;
updateSlides();
}
// Initialize carousel
updateSlides();
document.addEventListener('DOMContentLoaded', () => {
const buttons = document.querySelectorAll('.carousel-container button');
buttons.forEach(button => {
button.addEventListener('click', (e) => {
e.preventDefault();
const buttonText = button.textContent.trim().toLowerCase();
// Determine button type based on text content
let buttonType;
if (buttonText.includes('water')) buttonType = 'water-learning';
else if (buttonText.includes('certification')) buttonType = 'certification';
else if (buttonText.includes('sanitation')) buttonType = 'sanitation';
if (buttonType) openModal(buttonType);
});
});
});
</script>
<style>
/* Smooth modal animations */
.modal-enter {
animation: modal-in 300ms ease-out forwards;
}
.modal-leave {
animation: modal-out 300ms ease-in forwards;
}
@keyframes modal-in {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
@keyframes modal-out {
from { transform: translateY(0); }
to { transform: translateY(100%); }
}
</style>
</div>
<!-- Hero Content -->
<div class="flex justify-center space-x-8 py-4">
<div class="group">
<a href="#" class="flex items-center px-4 py-3 rounded-md hover:bg-opacity-20 hover:bg-white" data-category="Shelter">
<button class="icon-button relative group" data-category="diy">
<div class="bg-gradient-to-r from-red-600 to-zinc-400
text-white p-3 rounded-lg shadow-lg transform transition-all duration-200
hover:scale-105 hover:shadow-xl
float-1
flex items-center justify-center">
<i class="fas fa-2x fa-building"></i>
</div>
Shelter
</button>
</a>
<div class="drop-up-menu absolute hidden group-hover:block bg-white shadow-md rounded-md mt-2 py-2 z-10">
<a href="#"
class="drop-up-item bg-gradient-to-r from-blue-100 to-black-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="low-cost-construction"
data-text="Discover practical techniques for building durable structures affordably.">
Low-cost, Durable Construction Methods
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-blue-100 to-black-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="local-materials"
data-text="Explore how to use nearby resources to construct sustainable, efficient buildings.">
Locally Available Materials
</a>
</div>
</div>
<div class="group">
<a href="#" class="flex items-center px-3 py-2 rounded-md hover:bg-opacity-20 hover:bg-white" data-text="Water system information" data-category="Water">
<button class="icon-button relative group" data-category="drinking-water">
<div class="bg-gradient-to-r from-cyan-500 to-blue-600
text-white p-3 rounded-lg shadow-lg transform transition-all duration-200
hover:scale-105 hover:shadow-xl
float-2
flex items-center justify-center">
<i class="fas fa-2x fa-tint"></i>
</div>
Water
</button>
</a>
<div class="drop-up-menu">
<a href="#"
class="drop-up-item bg-gradient-to-r from-blue-100 to-black-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="waterpurification"
data-text="Learn how to purify water effectively and ensure a clean, safe supply.">
Purification
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-blue-100 to-black-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="desalination"
data-text="Explore methods to remove salt from seawater, making it usable for drinking and irrigation.">
Desalination
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-blue-100 to-black-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="waterdistribution"
data-text="Discover efficient ways to distribute water across urban and rural communities.">
Efficient Distribution
</a>
</div>
</div>
<div class="group">
<a href="#" class="flex items-center px-3 py-2 rounded-md hover:bg-opacity-20 hover:bg-white" data-category="Energy">
<button class="icon-button relative group" data-category="energy-systems">
<div class="bg-gradient-to-r from-yellow-500 to-amber-600
text-white p-3 rounded-lg shadow-lg transform transition-all duration-200
hover:scale-105 hover:shadow-xl
float-4
flex items-center justify-center">
<i class="fas fa-2x fa-bolt"></i>
</div>
Energy
</button>
</a>
<div class="drop-up-menu">
<a href="#" class="drop-up-item bg-gradient-to-r from-yellow-500 to-amber-100 text-white p-3 rounded-lg shadow-lg transform
transition-all border-3 border-blue m-2" data-category="diysolar">DIY Solar Energy</a>
<a href="#" class="drop-up-item bg-gradient-to-r from-yellow-500 to-amber-100 text-white p-3 rounded-lg shadow-lg transform
transition-all border-3 border-blue m-2" data-category="biogas">Biogas Generation</a>
<a href="#" class="drop-up-item bg-gradient-to-r from-yellow-500 to-amber-100 text-white p-3 rounded-lg shadow-lg transform
transition-all border-3 border-blue m-2" data-category="microgrids">Microgrids for Sustainable Power</a>
</div>
</div>
<div class="group">
<a href="#" class="flex items-center px-3 py-2 rounded-md hover:bg-opacity-20 hover:bg-white" data-category="Health">
<button class="icon-button relative group" data-category="health">
<div class="bg-gradient-to-r from-red-700 to-violet-600
text-white p-3 rounded-lg shadow-lg transform transition-all duration-200
hover:scale-105 hover:shadow-xl
float-4
flex items-center justify-center">
<i class="fas fa-2x fa-heartbeat"></i>
</div>
Health
</button>
</a>
<div class="drop-up-menu">
<a href="#"
class="drop-up-item bg-gradient-to-r from-cyan-500 to-violet-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="emtskills"
data-text="Gain the essential emergency medical skills to respond to urgent situations.">
EMT Skills
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-cyan-500 to-violet-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="telemedicine"
data-text="Discover how telemedicine bridges gaps in healthcare access and treatment.">
Telemedicine
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-cyan-400 to-violet-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="firstaid"
data-text="Learn essential first-aid techniques to address minor injuries and emergencies.">
First Aid
</a>
<a href="#"
class="drop-up-item bg-gradient-to-r from-cyan-400 to-violet-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2"
data-category="selfsufficienthealthcare"
data-text="Explore strategies for self-reliant healthcare in remote or resource-limited settings.">
Self-sufficient Healthcare
</a>
</div>
</div>
<div class="group">
<a href="#" class="flex items-center px-4 py-3 rounded-md hover:bg-opacity-20 hover:bg-white" data-category="Agronomy">
<button class="icon-button relative group" data-category="agriculure">
<div class="bg-gradient-to-r from-emerald-500 to-green-600
text-white p-3 rounded-lg shadow-lg transform transition-all duration-200
hover:scale-105 hover:shadow-xl
float-6
flex items-center justify-center">
<i class="fas fa-2x fa-seedling"></i>
</div>
Food
</button>
</a>
<div class="drop-up-menu">
<a href="#" class="drop-up-item bg-gradient-to-r from-emerald-500 to-green-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2" data-category="urbanfood">Urban Gardening</a>
<a href="#" class="drop-up-item bg-gradient-to-r from-emerald-500 to-green-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2" data-category="hydroponics">Hydroponics</a>
<a href="#" class="drop-up-item bg-gradient-to-r from-emerald-500 to-green-100 text-white p-3 rounded-lg shadow-lg transform transition-all border-3 border-blue m-2" data-category="sustainableag">Sustainable Agriculture Techniques</a>
</div>
</div>
</div>
</div>
<!-- Mondrian Overlay -->
<div id="mondrian-overlay" class="fixed inset-0 bg-black bg-opacity-75 hidden z-50">
<div class="absolute inset-0 p-8">
<div id="mondrian-grid" class="w-full h-full grid gap-4 opacity-0 transform scale-95 transition-all duration-300">
<!-- Subcategories will be dynamically inserted here -->
</div>
</div>
<button id="mondrian-close" class="absolute top-4 right-4 text-white text-2xl hover:text-gray-300">
<i class="fas fa-times"></i>
</button>
</div>
</div>
<div class="floating-icons">
<a href="#" class="flex items-center px-3 py-2 rounded-md hover:bg-opacity-20 hover:bg-white" data-category="Drinking Water"><i class="fas fa-tint fa-3x floating-icon" style="--i:1;"></i></a>
<i class="fas fa-recycle fa-3x floating-icon" style="--i:2;"></i>
<i class="fas fa-solar-panel fa-3x floating-icon" style="--i:3;"></i>
<i class="fas fa-heartbeat fa-3x floating-icon" style="--i:4;"></i>
</div>
<div class="header relative overflow-hidden">
<div class="container mx-auto flex justify-center space-x-8">
</div>
<div class="floating-icons">
<div class="floating-icons">
<i class="fas fa-tint fa-2x floating-icon" style="--i:1;"></i>
<i class="fas fa-recycle fa-2x floating-icon" style="--i:2;"></i>
<i class="fas fa-solar-panel fa-2x floating-icon" style="--i:3;"></i>
<i class="fas fa-heartbeat fa-2x floating-icon" style="--i:4;"></i>
<i class="fas fa-leaf fa-2x floating-icon" style="--i:5;"></i>
<i class="fas fa-seedling fa-2x floating-icon" style="--i:6;"></i>
<i class="fas fa-water fa-2x floating-icon" style="--i:7;"></i>
<i class="fas fa-wind fa-2x floating-icon" style="--i:8;"></i>
</div>
</div>
<div id="subheader" class="subheader"> Approvideo is a DIY learning network that supports hands on learning and community level collaboration. </div>
<div id="mondrian-box" class="relative left-0 right-0 dark:white-200 p-4 hidden">
<div id="subcategory-links" class="flex flex-wrap dark:bg-white-700 text-white-500 bg-black-200 justify-center"></div>
</div>
<div id="hero" class=" mb-1">
</div>
</div>
<div class="container mx-auto px-4">
<div id="categories" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"></div>
<!-- Search and Sort Controls -->
<div class="flex flex-col md:flex-row gap-4 mb-8">
<div class="flex-1">
<input
type="text"
id="searchInput"
placeholder="Search solutions..."
class="w-full px-4 py-3 rounded-lg border border-gray-200 focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200"
>
</div>
<div class="flex-shrink-0">
<select
id="sortSelect"
class="w-full md:w-auto px-4 py-3 bg-white border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200"
>
<option value="newest">Newest First</option>
<option value="popular">Most Popular</option>
<option value="az">A-Z</option>
</select>
</div>
</div>
<!-- Loading Skeleton -->
<div id="skeletonLoader" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Skeleton cards will be injected here -->
</div>
<!-- Video Grid -->
<div id="videoGrid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 hidden">
<!-- Videos will be dynamically inserted here -->
</div>
<!-- Infinite Scroll Trigger -->
<div id="infiniteScrollTrigger" class="h-20"></div>
</div>
<script>
// Add this at the start of your JavaScript section
const bannerMessages = [
"🎥 Sharing knowledge that changes lives - One video at a time",
"🌱 Building resilience through appropriate technology",
"💧 Clean water, safe shelter, better lives",
"🌟 Empowering communities with sustainable solutions",
"🤝 Technology that serves humanity",
"🏗️ Building bridges to a sustainable future",
"💪 Local solutions, global impact",
"🌍 Every community deserves access to vital knowledge"
];
// Add this to your DOMContentLoaded event listener
document.addEventListener('DOMContentLoaded', () => {
const banner = document.querySelector('.bg-gradient-to-r.from-green-600');
let currentMessageIndex = 0;
function updateBannerMessage() {
banner.textContent = bannerMessages[currentMessageIndex];
currentMessageIndex = (currentMessageIndex + 1) % bannerMessages.length;
}
// Initial message
updateBannerMessage();
// Rotate message every 5 seconds
setInterval(updateBannerMessage, 5000);
});
getRandomColor() {
// Using HSL color space for more vibrant colors
const hue = Math.random() * 360;
const saturation = Math.random() * 100;
const lightness = Math.random() * 100;
return `hsl(${hue}, ${saturation}%, ${lightness}%)`;
}
// Theme Toggle
const darkModeToggle = document.getElementById('darkModeToggle');
const html = document.documentElement;
function updateTheme(isDark) {
html.classList.toggle('dark', isDark);
localStorage.setItem('darkMode', isDark);
}
// Check saved preference
if (localStorage.getItem('darkMode') === 'true' ||
(!localStorage.getItem('darkMode') &&
window.matchMedia('(prefers-color-scheme: dark)').matches)) {
updateTheme(true);
}
darkModeToggle.addEventListener('click', () => {
updateTheme(!html.classList.contains('dark'));
});
// Profile Dropdown
const profileButton = document.getElementById('profileButton');
const profileDropdown = document.getElementById('profileDropdown');
profileButton.addEventListener('click', (e) => {
e.stopPropagation();
profileDropdown.classList.toggle('dropdown-active');
});
document.addEventListener('click', () => {
profileDropdown.classList.remove('dropdown-active');
});
</script>
<div class="container mx-auto px-4 mb-8">
<div class="rounded-lg border-4 border-indigo-500 bg-gradient-to-r from-indigo-900 via-indigo-800 to-indigo-700 p-6 text-white">
Approvideo provides a platform for educators and learners to discover and engage with educational YouTube videos.
We believe our use of thumbnails and curated collections falls within fair use principles, but we cannot guarantee
fair use in all cases. Users are responsible for their use of copyrighted materials and should comply with
YouTube's terms of service. We encourage transformative use, proper attribution, and respect for copyright.
</div>
</div>