Great work.Update existing wioth thisbsolutely, Mostar. Let’s get to work crafting visuals, flows, and assets worthy of this mission. 🌍💪 Here's what I’ll sketch for the page: 🎨 Visual Assets & Strategic Mockups 1. User Experience Simplicity Toolkit - Mobile Onboarding Flow Diagram → Start: Phone Number → Avatar Customization → Task-Based FLB Reward → Dashboard Access - Simplified AfriThrive Dashboard Mockup → Four buttons: Earn, Spend, Learn, Ask → Token balance + Impact streak bar → Daily quests panel (e.g., “Verify wellness checkup”) 2. Trust Building Ecosystem - Transparency Wall Poster Design → Infographic of recent token flows (clinic redemptions, youth learning rewards) → Validator portraits with quotes like: “I witnessed the healing, I validated it.” → Local language translations + QR link to live data - Community Trust Circle Event Sketch → Layout: open seating, youth testimonies, elder Q&A, live FLB demo → Token rewards shown as real items: soap, school pencils, seed packs 3. Sustainable Token Value System - FLB Redemption Kit Poster → Visual catalog of items/services per token bundle → “Mama Wellness Pack” (4 HealthToks = clinic voucher + medicine + transport) → “School Starter” (6 FLBs = uniform, books, lunch pass) - FLB Lifecycle Flowchart Health Action → Validator → Mint FLB → DAO Proposal → Approval → Spend → Impact → Data → New Action 4. Learn & Earn: Ubuntu Quest System - Youth Skill Map Graphic → Learner → Advocate → Mentor → Strategist → Each tier unlocks: more FLB, DAO voting power, local visibility - Circle of Impact Infographic → Clan-based model: Youth groups earn Ubuntu Points collectively → Quests: Health Jam Hosting, Local History Upload, Elder Interviews - “Revive This Clinic” Quest Storyboard → Step 1: Youth upload challenge → Step 2: DAO vote initiated → Step 3: FLB donation triggered → Step 4: Clinic receives aid, posts photo → Youth circle earns bonus FLB Would you like me to start rendering these as graphics or keep refining the descriptions into deployment-ready assets? We can layer each into your page and prepare toolkits for validator training, youth outreach, and partner briefings. You’re not just designing a system—you’re coding a movement into culture. 🔥🧬 Let’s continue the build. - Initial Deployment
Browse files- README.md +7 -5
- index.html +1125 -19
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: ln
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: gray
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,1125 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Learn2Earn Africa - Blockchain TestNet Suite</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
body {
|
13 |
+
font-family: 'Poppins', sans-serif;
|
14 |
+
background-color: #f8f9fa;
|
15 |
+
}
|
16 |
+
|
17 |
+
.gradient-bg {
|
18 |
+
background: linear-gradient(135deg, #35D07F 0%, #2AA49A 100%);
|
19 |
+
}
|
20 |
+
|
21 |
+
.course-card:hover {
|
22 |
+
transform: translateY(-5px);
|
23 |
+
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
24 |
+
}
|
25 |
+
|
26 |
+
.offline-mode {
|
27 |
+
border-left: 4px solid #F59E0B;
|
28 |
+
}
|
29 |
+
|
30 |
+
@media (max-width: 640px) {
|
31 |
+
.mobile-stack {
|
32 |
+
flex-direction: column;
|
33 |
+
}
|
34 |
+
}
|
35 |
+
</style>
|
36 |
+
</head>
|
37 |
+
<body>
|
38 |
+
<!-- Navigation -->
|
39 |
+
<nav class="bg-white shadow-sm">
|
40 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
41 |
+
<div class="flex justify-between h-16">
|
42 |
+
<div class="flex items-center">
|
43 |
+
<div class="flex-shrink-0 flex items-center">
|
44 |
+
<img class="h-8 w-auto" src="https://via.placeholder.com/150x50?text=Learn2Earn" alt="Logo">
|
45 |
+
</div>
|
46 |
+
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
|
47 |
+
<a href="#" class="border-green-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
48 |
+
Home
|
49 |
+
</a>
|
50 |
+
<a href="#courses" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
51 |
+
Courses
|
52 |
+
</a>
|
53 |
+
<a href="#wallet" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
54 |
+
Wallet
|
55 |
+
</a>
|
56 |
+
<a href="#community" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
|
57 |
+
Community
|
58 |
+
</a>
|
59 |
+
</div>
|
60 |
+
</div>
|
61 |
+
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
62 |
+
<button id="connectWalletBtn" class="gradient-bg text-white px-4 py-2 rounded-md text-sm font-medium hover:opacity-90 transition">
|
63 |
+
Connect Wallet
|
64 |
+
</button>
|
65 |
+
<div id="walletInfo" class="hidden ml-4 flex items-center">
|
66 |
+
<span id="walletAddress" class="text-sm bg-gray-100 px-3 py-1 rounded-full"></span>
|
67 |
+
<span id="walletBalance" class="ml-2 text-sm font-medium">0 FLB</span>
|
68 |
+
</div>
|
69 |
+
</div>
|
70 |
+
<div class="-mr-2 flex items-center sm:hidden">
|
71 |
+
<button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-green-500" aria-controls="mobile-menu" aria-expanded="false">
|
72 |
+
<span class="sr-only">Open main menu</span>
|
73 |
+
<i class="fas fa-bars"></i>
|
74 |
+
</button>
|
75 |
+
</div>
|
76 |
+
</div>
|
77 |
+
</div>
|
78 |
+
</nav>
|
79 |
+
|
80 |
+
<!-- Hero Section -->
|
81 |
+
<div class="gradient-bg text-white">
|
82 |
+
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8 lg:py-24">
|
83 |
+
<div class="lg:grid lg:grid-cols-2 lg:gap-8 items-center">
|
84 |
+
<div class="mb-8 lg:mb-0">
|
85 |
+
<h1 class="text-4xl font-extrabold tracking-tight sm:text-5xl lg:text-6xl mb-4">
|
86 |
+
Learn. Earn. Heal Africa.
|
87 |
+
</h1>
|
88 |
+
<p class="text-xl mb-8">
|
89 |
+
Educate yourself on African addiction issues and earn FLB tokens to support real treatment centers across the continent.
|
90 |
+
</p>
|
91 |
+
<div class="flex flex-col sm:flex-row gap-4">
|
92 |
+
<a href="#courses" class="bg-white text-green-700 px-6 py-3 rounded-md text-lg font-semibold text-center hover:bg-gray-100 transition">
|
93 |
+
Start Learning
|
94 |
+
</a>
|
95 |
+
<a href="#how-it-works" class="border-2 border-white text-white px-6 py-3 rounded-md text-lg font-semibold text-center hover:bg-white hover:bg-opacity-10 transition">
|
96 |
+
How It Works
|
97 |
+
</a>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
<div class="relative">
|
101 |
+
<img src="https://via.placeholder.com/600x400?text=African+Community" alt="African Community" class="rounded-lg shadow-xl">
|
102 |
+
<div class="absolute -bottom-4 -right-4 bg-yellow-400 text-gray-900 px-4 py-2 rounded-lg shadow-lg">
|
103 |
+
<div class="flex items-center">
|
104 |
+
<i class="fas fa-mobile-alt mr-2"></i>
|
105 |
+
<span>Mobile Optimized</span>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
|
113 |
+
<!-- Dashboard Section -->
|
114 |
+
<div class="bg-white py-12">
|
115 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
116 |
+
<div class="text-center">
|
117 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
118 |
+
Your AfriThrive Dashboard
|
119 |
+
</h2>
|
120 |
+
<div class="mt-8 grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4">
|
121 |
+
<div class="bg-green-50 p-6 rounded-lg">
|
122 |
+
<div class="text-green-600 mb-4 text-4xl">
|
123 |
+
<i class="fas fa-coins"></i>
|
124 |
+
</div>
|
125 |
+
<h3 class="text-xl font-bold text-gray-900">Earn FLB</h3>
|
126 |
+
<p class="mt-2 text-gray-600">Complete quests and tasks</p>
|
127 |
+
</div>
|
128 |
+
<div class="bg-blue-50 p-6 rounded-lg">
|
129 |
+
<div class="text-blue-600 mb-4 text-4xl">
|
130 |
+
<i class="fas fa-hand-holding-usd"></i>
|
131 |
+
</div>
|
132 |
+
<h3 class="text-xl font-bold text-gray-900">Spend</h3>
|
133 |
+
<p class="mt-2 text-gray-600">Redeem for goods/services</p>
|
134 |
+
</div>
|
135 |
+
<div class="bg-purple-50 p-6 rounded-lg">
|
136 |
+
<div class="text-purple-600 mb-4 text-4xl">
|
137 |
+
<i class="fas fa-graduation-cap"></i>
|
138 |
+
</div>
|
139 |
+
<h3 class="text-xl font-bold text-gray-900">Learn</h3>
|
140 |
+
<p class="mt-2 text-gray-600">Grow your skills</p>
|
141 |
+
</div>
|
142 |
+
<div class="bg-yellow-50 p-6 rounded-lg">
|
143 |
+
<div class="text-yellow-600 mb-4 text-4xl">
|
144 |
+
<i class="fas fa-comments"></i>
|
145 |
+
</div>
|
146 |
+
<h3 class="text-xl font-bold text-gray-900">Ask</h3>
|
147 |
+
<p class="mt-2 text-gray-600">Community support</p>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
<div class="mt-8 bg-gray-50 p-6 rounded-lg">
|
151 |
+
<h3 class="text-lg font-medium text-gray-900">Daily Quests</h3>
|
152 |
+
<div class="mt-4 space-y-3">
|
153 |
+
<div class="flex items-center justify-between p-3 bg-white rounded-md shadow-sm">
|
154 |
+
<span>Verify wellness checkup</span>
|
155 |
+
<span class="text-green-600 font-medium">+5 FLB</span>
|
156 |
+
</div>
|
157 |
+
<div class="flex items-center justify-between p-3 bg-white rounded-md shadow-sm">
|
158 |
+
<span>Complete health education module</span>
|
159 |
+
<span class="text-green-600 font-medium">+10 FLB</span>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
</div>
|
164 |
+
</div>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
<!-- Stats Section -->
|
168 |
+
<div class="bg-white py-12">
|
169 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
170 |
+
<div class="lg:text-center">
|
171 |
+
<h2 class="text-base text-green-600 font-semibold tracking-wide uppercase">Impact</h2>
|
172 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
173 |
+
Making a difference across Africa
|
174 |
+
</p>
|
175 |
+
</div>
|
176 |
+
|
177 |
+
<div class="mt-10">
|
178 |
+
<div class="grid grid-cols-1 gap-8 sm:grid-cols-2 lg:grid-cols-4">
|
179 |
+
<div class="bg-gray-50 p-6 rounded-lg text-center">
|
180 |
+
<div class="text-green-600 mb-4">
|
181 |
+
<i class="fas fa-users text-4xl"></i>
|
182 |
+
</div>
|
183 |
+
<h3 class="text-3xl font-bold text-gray-900">1,200+</h3>
|
184 |
+
<p class="mt-2 text-gray-600">Learners Educated</p>
|
185 |
+
</div>
|
186 |
+
<div class="bg-gray-50 p-6 rounded-lg text-center">
|
187 |
+
<div class="text-green-600 mb-4">
|
188 |
+
<i class="fas fa-coins text-4xl"></i>
|
189 |
+
</div>
|
190 |
+
<h3 class="text-3xl font-bold text-gray-900">250K+</h3>
|
191 |
+
<p class="mt-2 text-gray-600">FLB Tokens Earned</p>
|
192 |
+
</div>
|
193 |
+
<div class="bg-gray-50 p-6 rounded-lg text-center">
|
194 |
+
<div class="text-green-600 mb-4">
|
195 |
+
<i class="fas fa-hospital text-4xl"></i>
|
196 |
+
</div>
|
197 |
+
<h3 class="text-3xl font-bold text-gray-900">15</h3>
|
198 |
+
<p class="mt-2 text-gray-600">Treatment Centers Supported</p>
|
199 |
+
</div>
|
200 |
+
<div class="bg-gray-50 p-6 rounded-lg text-center">
|
201 |
+
<div class="text-green-600 mb-4">
|
202 |
+
<i class="fas fa-globe-africa text-4xl"></i>
|
203 |
+
</div>
|
204 |
+
<h3 class="text-3xl font-bold text-gray-900">8</h3>
|
205 |
+
<p class="mt-2 text-gray-600">African Countries</p>
|
206 |
+
</div>
|
207 |
+
</div>
|
208 |
+
</div>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
|
212 |
+
<!-- How It Works -->
|
213 |
+
<div id="how-it-works" class="bg-gray-50 py-12">
|
214 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
215 |
+
<div class="lg:text-center">
|
216 |
+
<h2 class="text-base text-green-600 font-semibold tracking-wide uppercase">Process</h2>
|
217 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
218 |
+
How It Works
|
219 |
+
</p>
|
220 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 lg:mx-auto">
|
221 |
+
A simple three-step process to learn, earn, and make an impact.
|
222 |
+
</p>
|
223 |
+
</div>
|
224 |
+
|
225 |
+
<div class="mt-10">
|
226 |
+
<div class="space-y-10 md:space-y-0 md:grid md:grid-cols-3 md:gap-x-8 md:gap-y-10">
|
227 |
+
<div class="relative">
|
228 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-green-500 text-white">
|
229 |
+
<span class="text-xl font-bold">1</span>
|
230 |
+
</div>
|
231 |
+
<div class="ml-16">
|
232 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Connect Your Wallet</h3>
|
233 |
+
<p class="mt-2 text-base text-gray-500">
|
234 |
+
Set up a Celo-compatible wallet to receive your FLB token rewards. We support Valora, MetaMask, and more.
|
235 |
+
</p>
|
236 |
+
</div>
|
237 |
+
</div>
|
238 |
+
|
239 |
+
<div class="relative">
|
240 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-green-500 text-white">
|
241 |
+
<span class="text-xl font-bold">2</span>
|
242 |
+
</div>
|
243 |
+
<div class="ml-16">
|
244 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Complete Courses</h3>
|
245 |
+
<p class="mt-2 text-base text-gray-500">
|
246 |
+
Learn about addiction recovery in Africa through our culturally-relevant courses and quizzes.
|
247 |
+
</p>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
|
251 |
+
<div class="relative">
|
252 |
+
<div class="absolute flex items-center justify-center h-12 w-12 rounded-md bg-green-500 text-white">
|
253 |
+
<span class="text-xl font-bold">3</span>
|
254 |
+
</div>
|
255 |
+
<div class="ml-16">
|
256 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Earn & Donate</h3>
|
257 |
+
<p class="mt-2 text-base text-gray-500">
|
258 |
+
Earn FLB tokens for completing courses and donate them to support real treatment centers.
|
259 |
+
</p>
|
260 |
+
</div>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
|
267 |
+
<!-- Courses Section -->
|
268 |
+
<div id="courses" class="bg-white py-12">
|
269 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
270 |
+
<div class="lg:text-center">
|
271 |
+
<h2 class="text-base text-green-600 font-semibold tracking-wide uppercase">Education</h2>
|
272 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
273 |
+
Available Courses
|
274 |
+
</p>
|
275 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 lg:mx-auto">
|
276 |
+
Learn about addiction recovery and earn FLB tokens.
|
277 |
+
</p>
|
278 |
+
</div>
|
279 |
+
|
280 |
+
<div class="mt-10 grid gap-8 md:grid-cols-2 lg:grid-cols-3">
|
281 |
+
<!-- Course 1 -->
|
282 |
+
<div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
|
283 |
+
<div class="h-48 bg-gradient-to-r from-blue-500 to-blue-700 flex items-center justify-center">
|
284 |
+
<i class="fas fa-heartbeat text-white text-6xl"></i>
|
285 |
+
</div>
|
286 |
+
<div class="p-6">
|
287 |
+
<div class="flex items-center justify-between">
|
288 |
+
<span class="inline-block bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full uppercase font-semibold tracking-wide">Beginner</span>
|
289 |
+
<span class="text-gray-600 text-sm">5 Modules</span>
|
290 |
+
</div>
|
291 |
+
<h3 class="mt-2 text-xl font-semibold text-gray-900">Understanding Addiction in Africa</h3>
|
292 |
+
<p class="mt-2 text-gray-600">
|
293 |
+
Explore the cultural and social aspects of addiction across different African communities.
|
294 |
+
</p>
|
295 |
+
<div class="mt-4 flex items-center justify-between">
|
296 |
+
<span class="flex items-center text-yellow-500">
|
297 |
+
<i class="fas fa-star"></i>
|
298 |
+
<i class="fas fa-star"></i>
|
299 |
+
<i class="fas fa-star"></i>
|
300 |
+
<i class="fas fa-star"></i>
|
301 |
+
<i class="fas fa-star-half-alt"></i>
|
302 |
+
<span class="text-gray-600 ml-1">4.5</span>
|
303 |
+
</span>
|
304 |
+
<span class="flex items-center text-green-600 font-medium">
|
305 |
+
<i class="fas fa-coins mr-1"></i> 50 FLB
|
306 |
+
</span>
|
307 |
+
</div>
|
308 |
+
<button class="mt-4 w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
|
309 |
+
Start Course
|
310 |
+
</button>
|
311 |
+
</div>
|
312 |
+
</div>
|
313 |
+
|
314 |
+
<!-- Course 2 -->
|
315 |
+
<div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
|
316 |
+
<div class="h-48 bg-gradient-to-r from-purple-500 to-purple-700 flex items-center justify-center">
|
317 |
+
<i class="fas fa-hands-helping text-white text-6xl"></i>
|
318 |
+
</div>
|
319 |
+
<div class="p-6">
|
320 |
+
<div class="flex items-center justify-between">
|
321 |
+
<span class="inline-block bg-yellow-100 text-yellow-800 text-xs px-2 py-1 rounded-full uppercase font-semibold tracking-wide">Intermediate</span>
|
322 |
+
<span class="text-gray-600 text-sm">7 Modules</span>
|
323 |
+
</div>
|
324 |
+
<h3 class="mt-2 text-xl font-semibold text-gray-900">Community Prevention Strategies</h3>
|
325 |
+
<p class="mt-2 text-gray-600">
|
326 |
+
Learn effective prevention methods that work within African community structures.
|
327 |
+
</p>
|
328 |
+
<div class="mt-4 flex items-center justify-between">
|
329 |
+
<span class="flex items-center text-yellow-500">
|
330 |
+
<i class="fas fa-star"></i>
|
331 |
+
<i class="fas fa-star"></i>
|
332 |
+
<i class="fas fa-star"></i>
|
333 |
+
<i class="fas fa-star"></i>
|
334 |
+
<i class="far fa-star"></i>
|
335 |
+
<span class="text-gray-600 ml-1">4.0</span>
|
336 |
+
</span>
|
337 |
+
<span class="flex items-center text-green-600 font-medium">
|
338 |
+
<i class="fas fa-coins mr-1"></i> 75 FLB
|
339 |
+
</span>
|
340 |
+
</div>
|
341 |
+
<button class="mt-4 w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
|
342 |
+
Start Course
|
343 |
+
</button>
|
344 |
+
</div>
|
345 |
+
</div>
|
346 |
+
|
347 |
+
<!-- Course 3 -->
|
348 |
+
<div class="course-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300">
|
349 |
+
<div class="h-48 bg-gradient-to-r from-red-500 to-red-700 flex items-center justify-center">
|
350 |
+
<i class="fas fa-home text-white text-6xl"></i>
|
351 |
+
</div>
|
352 |
+
<div class="p-6">
|
353 |
+
<div class="flex items-center justify-between">
|
354 |
+
<span class="inline-block bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full uppercase font-semibold tracking-wide">Advanced</span>
|
355 |
+
<span class="text-gray-600 text-sm">10 Modules</span>
|
356 |
+
</div>
|
357 |
+
<h3 class="mt-2 text-xl font-semibold text-gray-900">Treatment Center Operations</h3>
|
358 |
+
<p class="mt-2 text-gray-600">
|
359 |
+
Understand how treatment centers operate in resource-limited settings across Africa.
|
360 |
+
</p>
|
361 |
+
<div class="mt-4 flex items-center justify-between">
|
362 |
+
<span class="flex items-center text-yellow-500">
|
363 |
+
<i class="fas fa-star"></i>
|
364 |
+
<i class="fas fa-star"></i>
|
365 |
+
<i class="fas fa-star"></i>
|
366 |
+
<i class="fas fa-star"></i>
|
367 |
+
<i class="fas fa-star"></i>
|
368 |
+
<span class="text-gray-600 ml-1">5.0</span>
|
369 |
+
</span>
|
370 |
+
<span class="flex items-center text-green-600 font-medium">
|
371 |
+
<i class="fas fa-coins mr-1"></i> 100 FLB
|
372 |
+
</span>
|
373 |
+
</div>
|
374 |
+
<button class="mt-4 w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
|
375 |
+
Start Course
|
376 |
+
</button>
|
377 |
+
</div>
|
378 |
+
</div>
|
379 |
+
</div>
|
380 |
+
|
381 |
+
<div class="mt-10 text-center">
|
382 |
+
<a href="#" class="text-green-600 hover:text-green-800 font-medium">
|
383 |
+
View All Courses <i class="fas fa-arrow-right ml-1"></i>
|
384 |
+
</a>
|
385 |
+
</div>
|
386 |
+
</div>
|
387 |
+
</div>
|
388 |
+
|
389 |
+
<!-- Wallet Section -->
|
390 |
+
<div id="wallet" class="bg-gray-50 py-12">
|
391 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
392 |
+
<div class="lg:grid lg:grid-cols-2 lg:gap-12 items-center">
|
393 |
+
<div class="mb-8 lg:mb-0">
|
394 |
+
<h2 class="text-base text-green-600 font-semibold tracking-wide uppercase">Blockchain</h2>
|
395 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
396 |
+
Your FLB Token Wallet
|
397 |
+
</p>
|
398 |
+
<p class="mt-4 text-lg text-gray-600">
|
399 |
+
Securely manage your FLB tokens earned from completing courses. Donate to treatment centers or transfer to other users.
|
400 |
+
</p>
|
401 |
+
|
402 |
+
<div id="walletNotConnected" class="mt-8 bg-white p-6 rounded-lg shadow-sm">
|
403 |
+
<div class="flex items-start">
|
404 |
+
<div class="flex-shrink-0">
|
405 |
+
<i class="fas fa-wallet text-green-500 text-2xl"></i>
|
406 |
+
</div>
|
407 |
+
<div class="ml-3">
|
408 |
+
<h3 class="text-lg font-medium text-gray-900">Wallet Not Connected</h3>
|
409 |
+
<div class="mt-2 text-sm text-gray-600">
|
410 |
+
<p>Connect your Celo-compatible wallet to view your FLB token balance and transaction history.</p>
|
411 |
+
</div>
|
412 |
+
<div class="mt-4">
|
413 |
+
<button id="connectWalletBtn2" class="gradient-bg text-white px-4 py-2 rounded-md text-sm font-medium hover:opacity-90 transition">
|
414 |
+
Connect Wallet
|
415 |
+
</button>
|
416 |
+
</div>
|
417 |
+
</div>
|
418 |
+
</div>
|
419 |
+
</div>
|
420 |
+
|
421 |
+
<div id="walletConnected" class="mt-8 bg-white p-6 rounded-lg shadow-sm hidden">
|
422 |
+
<div class="flex justify-between items-center border-b pb-4">
|
423 |
+
<h3 class="text-lg font-medium text-gray-900">Your Wallet</h3>
|
424 |
+
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
|
425 |
+
Connected
|
426 |
+
</span>
|
427 |
+
</div>
|
428 |
+
<div class="mt-4">
|
429 |
+
<div class="flex justify-between py-2">
|
430 |
+
<span class="text-gray-600">Address:</span>
|
431 |
+
<span id="walletAddress2" class="font-medium text-gray-900"></span>
|
432 |
+
</div>
|
433 |
+
<div class="flex justify-between py-2">
|
434 |
+
<span class="text-gray-600">Network:</span>
|
435 |
+
<span class="font-medium text-gray-900">Celo Alfajores Testnet</span>
|
436 |
+
</div>
|
437 |
+
<div class="flex justify-between py-2">
|
438 |
+
<span class="text-gray-600">FLB Balance:</span>
|
439 |
+
<span id="walletBalance2" class="font-medium text-green-600">0 FLB</span>
|
440 |
+
</div>
|
441 |
+
<div class="flex justify-between py-2">
|
442 |
+
<span class="text-gray-600">CELO Balance:</span>
|
443 |
+
<span id="celoBalance" class="font-medium text-yellow-600">0 CELO</span>
|
444 |
+
</div>
|
445 |
+
</div>
|
446 |
+
<div class="mt-6 grid grid-cols-2 gap-4">
|
447 |
+
<button class="bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
|
448 |
+
<i class="fas fa-donate mr-1"></i> Donate
|
449 |
+
</button>
|
450 |
+
<button class="bg-gray-200 hover:bg-gray-300 text-gray-800 py-2 px-4 rounded-md transition">
|
451 |
+
<i class="fas fa-exchange-alt mr-1"></i> Transfer
|
452 |
+
</button>
|
453 |
+
</div>
|
454 |
+
</div>
|
455 |
+
</div>
|
456 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
457 |
+
<h3 class="text-lg font-medium text-gray-900 mb-4">Recent Transactions</h3>
|
458 |
+
<div id="noTransactions" class="text-center py-8">
|
459 |
+
<i class="fas fa-exchange-alt text-gray-300 text-4xl mb-2"></i>
|
460 |
+
<p class="text-gray-500">No transactions yet</p>
|
461 |
+
<p class="text-sm text-gray-400 mt-1">Complete courses to earn FLB tokens</p>
|
462 |
+
</div>
|
463 |
+
<div id="transactionList" class="hidden">
|
464 |
+
<!-- Transactions will be added here dynamically -->
|
465 |
+
</div>
|
466 |
+
<div class="mt-4 text-center">
|
467 |
+
<a href="#" class="text-sm text-green-600 hover:text-green-800 font-medium">
|
468 |
+
View All Transactions
|
469 |
+
</a>
|
470 |
+
</div>
|
471 |
+
</div>
|
472 |
+
</div>
|
473 |
+
</div>
|
474 |
+
</div>
|
475 |
+
|
476 |
+
<!-- Offline Mode -->
|
477 |
+
<div class="bg-yellow-50 py-8 offline-mode">
|
478 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
479 |
+
<div class="flex items-center justify-between flex-wrap">
|
480 |
+
<div class="flex-1">
|
481 |
+
<div class="flex items-center">
|
482 |
+
<div class="flex-shrink-0">
|
483 |
+
<i class="fas fa-wifi-slash text-yellow-500 text-2xl"></i>
|
484 |
+
</div>
|
485 |
+
<div class="ml-3">
|
486 |
+
<h3 class="text-lg font-medium text-yellow-800">Offline Mode Available</h3>
|
487 |
+
<div class="mt-1 text-sm text-yellow-700">
|
488 |
+
<p>Download course materials for offline access. Your progress will sync when you're back online.</p>
|
489 |
+
</div>
|
490 |
+
</div>
|
491 |
+
</div>
|
492 |
+
</div>
|
493 |
+
<div class="mt-4 sm:mt-0">
|
494 |
+
<button class="flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-yellow-800 bg-yellow-100 hover:bg-yellow-200">
|
495 |
+
<i class="fas fa-download mr-2"></i> Enable Offline Mode
|
496 |
+
</button>
|
497 |
+
</div>
|
498 |
+
</div>
|
499 |
+
</div>
|
500 |
+
</div>
|
501 |
+
|
502 |
+
<!-- Ubuntu Quest System -->
|
503 |
+
<div class="bg-gray-50 py-12">
|
504 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
505 |
+
<div class="text-center">
|
506 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
507 |
+
Ubuntu Quest System
|
508 |
+
</h2>
|
509 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
510 |
+
Grow your impact through collective learning and action
|
511 |
+
</p>
|
512 |
+
</div>
|
513 |
+
|
514 |
+
<div class="mt-12 grid gap-8 md:grid-cols-3">
|
515 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
516 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">Youth Skill Path</h3>
|
517 |
+
<div class="space-y-4">
|
518 |
+
<div class="flex items-center">
|
519 |
+
<div class="flex-shrink-0 bg-green-100 text-green-800 rounded-full p-2">
|
520 |
+
<i class="fas fa-user-graduate"></i>
|
521 |
+
</div>
|
522 |
+
<div class="ml-3">
|
523 |
+
<p class="text-sm font-medium text-gray-900">Learner</p>
|
524 |
+
<p class="text-sm text-gray-500">Earn basic FLB</p>
|
525 |
+
</div>
|
526 |
+
</div>
|
527 |
+
<div class="flex items-center">
|
528 |
+
<div class="flex-shrink-0 bg-blue-100 text-blue-800 rounded-full p-2">
|
529 |
+
<i class="fas fa-bullhorn"></i>
|
530 |
+
</div>
|
531 |
+
<div class="ml-3">
|
532 |
+
<p class="text-sm font-medium text-gray-900">Advocate</p>
|
533 |
+
<p class="text-sm text-gray-500">Gain DAO voting</p>
|
534 |
+
</div>
|
535 |
+
</div>
|
536 |
+
<div class="flex items-center">
|
537 |
+
<div class="flex-shrink-0 bg-purple-100 text-purple-800 rounded-full p-2">
|
538 |
+
<i class="fas fa-hands-helping"></i>
|
539 |
+
</div>
|
540 |
+
<div class="ml-3">
|
541 |
+
<p class="text-sm font-medium text-gray-900">Mentor</p>
|
542 |
+
<p class="text-sm text-gray-500">Local visibility</p>
|
543 |
+
</div>
|
544 |
+
</div>
|
545 |
+
</div>
|
546 |
+
</div>
|
547 |
+
|
548 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
549 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">Circle of Impact</h3>
|
550 |
+
<div class="space-y-3">
|
551 |
+
<div class="flex items-start">
|
552 |
+
<div class="flex-shrink-0 bg-yellow-100 text-yellow-800 rounded-full p-2 mt-1">
|
553 |
+
<i class="fas fa-users"></i>
|
554 |
+
</div>
|
555 |
+
<div class="ml-3">
|
556 |
+
<p class="text-sm font-medium text-gray-900">Clan-based rewards</p>
|
557 |
+
<p class="text-sm text-gray-500">Earn Ubuntu Points collectively</p>
|
558 |
+
</div>
|
559 |
+
</div>
|
560 |
+
<div class="flex items-start">
|
561 |
+
<div class="flex-shrink-0 bg-red-100 text-red-800 rounded-full p-2 mt-1">
|
562 |
+
<i class="fas fa-tasks"></i>
|
563 |
+
</div>
|
564 |
+
<div class="ml-3">
|
565 |
+
<p class="text-sm font-medium text-gray-900">Community Quests</p>
|
566 |
+
<p class="text-sm text-gray-500">Health Jams, Elder Interviews</p>
|
567 |
+
</div>
|
568 |
+
</div>
|
569 |
+
</div>
|
570 |
+
</div>
|
571 |
+
|
572 |
+
<div class="bg-white p-6 rounded-lg shadow-md">
|
573 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">Revive a Clinic</h3>
|
574 |
+
<div class="space-y-4">
|
575 |
+
<div class="flex items-start">
|
576 |
+
<div class="flex-shrink-0 bg-green-100 text-green-800 rounded-full p-2 mt-1">
|
577 |
+
<span class="text-xs font-bold">1</span>
|
578 |
+
</div>
|
579 |
+
<div class="ml-3">
|
580 |
+
<p class="text-sm text-gray-700">Youth upload challenge</p>
|
581 |
+
</div>
|
582 |
+
</div>
|
583 |
+
<div class="flex items-start">
|
584 |
+
<div class="flex-shrink-0 bg-blue-100 text-blue-800 rounded-full p-2 mt-1">
|
585 |
+
<span class="text-xs font-bold">2</span>
|
586 |
+
</div>
|
587 |
+
<div class="ml-3">
|
588 |
+
<p class="text-sm text-gray-700">DAO vote initiated</p>
|
589 |
+
</div>
|
590 |
+
</div>
|
591 |
+
<div class="flex items-start">
|
592 |
+
<div class="flex-shrink-0 bg-purple-100 text-purple-800 rounded-full p-2 mt-1">
|
593 |
+
<span class="text-xs font-bold">3</span>
|
594 |
+
</div>
|
595 |
+
<div class="ml-3">
|
596 |
+
<p class="text-sm text-gray-700">FLB donation triggered</p>
|
597 |
+
</div>
|
598 |
+
</div>
|
599 |
+
</div>
|
600 |
+
</div>
|
601 |
+
</div>
|
602 |
+
</div>
|
603 |
+
</div>
|
604 |
+
|
605 |
+
<!-- Community Section -->
|
606 |
+
<div id="community" class="bg-white py-12">
|
607 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
608 |
+
<div class="lg:text-center">
|
609 |
+
<h2 class="text-base text-green-600 font-semibold tracking-wide uppercase">Support</h2>
|
610 |
+
<p class="mt-2 text-3xl leading-8 font-extrabold tracking-tight text-gray-900 sm:text-4xl">
|
611 |
+
Join Our Community
|
612 |
+
</p>
|
613 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 lg:mx-auto">
|
614 |
+
Connect with other learners, get support, and share your feedback.
|
615 |
+
</p>
|
616 |
+
</div>
|
617 |
+
|
618 |
+
<div class="mt-10 grid gap-8 md:grid-cols-3">
|
619 |
+
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
|
620 |
+
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-green-500 text-white mb-4">
|
621 |
+
<i class="fab fa-discord text-xl"></i>
|
622 |
+
</div>
|
623 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">Discord</h3>
|
624 |
+
<p class="text-gray-600 mb-4">
|
625 |
+
Join our active Discord community for real-time discussions and support.
|
626 |
+
</p>
|
627 |
+
<a href="#" class="text-green-600 hover:text-green-800 font-medium inline-flex items-center">
|
628 |
+
Join Now <i class="fas fa-arrow-right ml-1"></i>
|
629 |
+
</a>
|
630 |
+
</div>
|
631 |
+
|
632 |
+
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
|
633 |
+
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-blue-500 text-white mb-4">
|
634 |
+
<i class="fab fa-github text-xl"></i>
|
635 |
+
</div>
|
636 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">GitHub</h3>
|
637 |
+
<p class="text-gray-600 mb-4">
|
638 |
+
Contribute to our open-source project and report issues.
|
639 |
+
</p>
|
640 |
+
<a href="#" class="text-green-600 hover:text-green-800 font-medium inline-flex items-center">
|
641 |
+
View Repo <i class="fas fa-arrow-right ml-1"></i>
|
642 |
+
</a>
|
643 |
+
</div>
|
644 |
+
|
645 |
+
<div class="bg-white p-6 rounded-lg shadow-sm border border-gray-200">
|
646 |
+
<div class="flex items-center justify-center h-12 w-12 rounded-md bg-red-500 text-white mb-4">
|
647 |
+
<i class="fas fa-envelope text-xl"></i>
|
648 |
+
</div>
|
649 |
+
<h3 class="text-lg font-medium text-gray-900 mb-2">Email Support</h3>
|
650 |
+
<p class="text-gray-600 mb-4">
|
651 |
+
Need help? Our team responds to emails within 24 hours.
|
652 |
+
</p>
|
653 |
+
<a href="#" class="text-green-600 hover:text-green-800 font-medium inline-flex items-center">
|
654 |
+
Contact Us <i class="fas fa-arrow-right ml-1"></i>
|
655 |
+
</a>
|
656 |
+
</div>
|
657 |
+
</div>
|
658 |
+
</div>
|
659 |
+
</div>
|
660 |
+
|
661 |
+
<!-- FLB Redemption Section -->
|
662 |
+
<div class="bg-white py-12">
|
663 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
664 |
+
<div class="text-center">
|
665 |
+
<h2 class="text-3xl font-extrabold text-gray-900 sm:text-4xl">
|
666 |
+
FLB Redemption Kits
|
667 |
+
</h2>
|
668 |
+
<p class="mt-4 max-w-2xl text-xl text-gray-500 mx-auto">
|
669 |
+
Turn your tokens into real impact
|
670 |
+
</p>
|
671 |
+
</div>
|
672 |
+
|
673 |
+
<div class="mt-10 grid gap-8 md:grid-cols-2 lg:grid-cols-3">
|
674 |
+
<div class="bg-green-50 p-6 rounded-lg">
|
675 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">Mama Wellness Pack</h3>
|
676 |
+
<div class="flex items-center mb-2">
|
677 |
+
<span class="bg-green-100 text-green-800 text-xs font-semibold px-2.5 py-0.5 rounded">4 HealthToks</span>
|
678 |
+
</div>
|
679 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-600">
|
680 |
+
<li>Clinic voucher</li>
|
681 |
+
<li>Basic medicines</li>
|
682 |
+
<li>Transport allowance</li>
|
683 |
+
</ul>
|
684 |
+
</div>
|
685 |
+
|
686 |
+
<div class="bg-blue-50 p-6 rounded-lg">
|
687 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">School Starter</h3>
|
688 |
+
<div class="flex items-center mb-2">
|
689 |
+
<span class="bg-blue-100 text-blue-800 text-xs font-semibold px-2.5 py-0.5 rounded">6 FLB</span>
|
690 |
+
</div>
|
691 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-600">
|
692 |
+
<li>School uniform</li>
|
693 |
+
<li>Books and supplies</li>
|
694 |
+
<li>Lunch pass</li>
|
695 |
+
</ul>
|
696 |
+
</div>
|
697 |
+
|
698 |
+
<div class="bg-purple-50 p-6 rounded-lg">
|
699 |
+
<h3 class="text-xl font-bold text-gray-900 mb-4">Community Builder</h3>
|
700 |
+
<div class="flex items-center mb-2">
|
701 |
+
<span class="bg-purple-100 text-purple-800 text-xs font-semibold px-2.5 py-0.5 rounded">10 FLB</span>
|
702 |
+
</div>
|
703 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-600">
|
704 |
+
<li>Seed packs</li>
|
705 |
+
<li>Toolkit</li>
|
706 |
+
<li>Training session</li>
|
707 |
+
</ul>
|
708 |
+
</div>
|
709 |
+
</div>
|
710 |
+
</div>
|
711 |
+
</div>
|
712 |
+
|
713 |
+
<!-- Testnet Notice -->
|
714 |
+
<div class="bg-gray-800 text-white py-6">
|
715 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
716 |
+
<div class="flex flex-col md:flex-row items-center justify-between">
|
717 |
+
<div class="flex items-center mb-4 md:mb-0">
|
718 |
+
<i class="fas fa-flask text-yellow-400 text-2xl mr-3"></i>
|
719 |
+
<span class="text-lg font-medium">This is a TestNet environment</span>
|
720 |
+
</div>
|
721 |
+
<div class="flex items-center">
|
722 |
+
<span class="mr-4">FLB tokens have no real value</span>
|
723 |
+
<a href="#" class="text-yellow-400 hover:text-yellow-300 font-medium inline-flex items-center">
|
724 |
+
Learn More <i class="fas fa-arrow-right ml-1"></i>
|
725 |
+
</a>
|
726 |
+
</div>
|
727 |
+
</div>
|
728 |
+
</div>
|
729 |
+
</div>
|
730 |
+
|
731 |
+
<!-- Footer -->
|
732 |
+
<footer class="bg-gray-900 text-white">
|
733 |
+
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
|
734 |
+
<div class="grid grid-cols-2 md:grid-cols-4 gap-8">
|
735 |
+
<div>
|
736 |
+
<h3 class="text-sm font-semibold text-gray-400 tracking-wider uppercase">Learn2Earn</h3>
|
737 |
+
<ul class="mt-4 space-y-2">
|
738 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">About</a></li>
|
739 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Team</a></li>
|
740 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Partners</a></li>
|
741 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Careers</a></li>
|
742 |
+
</ul>
|
743 |
+
</div>
|
744 |
+
<div>
|
745 |
+
<h3 class="text-sm font-semibold text-gray-400 tracking-wider uppercase">Resources</h3>
|
746 |
+
<ul class="mt-4 space-y-2">
|
747 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Documentation</a></li>
|
748 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Whitepaper</a></li>
|
749 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">FAQ</a></li>
|
750 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Help Center</a></li>
|
751 |
+
</ul>
|
752 |
+
</div>
|
753 |
+
<div>
|
754 |
+
<h3 class="text-sm font-semibold text-gray-400 tracking-wider uppercase">Legal</h3>
|
755 |
+
<ul class="mt-4 space-y-2">
|
756 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Privacy</a></li>
|
757 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Terms</a></li>
|
758 |
+
<li><a href="#" class="text-base text-gray-300 hover:text-white">Cookie Policy</a></li>
|
759 |
+
</ul>
|
760 |
+
</div>
|
761 |
+
<div>
|
762 |
+
<h3 class="text-sm font-semibold text-gray-400 tracking-wider uppercase">Connect</h3>
|
763 |
+
<div class="mt-4 flex space-x-6">
|
764 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
765 |
+
<i class="fab fa-twitter text-xl"></i>
|
766 |
+
</a>
|
767 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
768 |
+
<i class="fab fa-facebook text-xl"></i>
|
769 |
+
</a>
|
770 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
771 |
+
<i class="fab fa-instagram text-xl"></i>
|
772 |
+
</a>
|
773 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
774 |
+
<i class="fab fa-linkedin text-xl"></i>
|
775 |
+
</a>
|
776 |
+
</div>
|
777 |
+
<div class="mt-6">
|
778 |
+
<p class="text-gray-400 text-sm">
|
779 |
+
Subscribe to our newsletter for updates
|
780 |
+
</p>
|
781 |
+
<div class="mt-2 flex">
|
782 |
+
<input type="email" placeholder="Your email" class="px-3 py-2 border border-gray-600 bg-gray-800 text-white rounded-l-md focus:outline-none focus:ring-1 focus:ring-green-500 w-full">
|
783 |
+
<button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-r-md">
|
784 |
+
<i class="fas fa-paper-plane"></i>
|
785 |
+
</button>
|
786 |
+
</div>
|
787 |
+
</div>
|
788 |
+
</div>
|
789 |
+
</div>
|
790 |
+
<div class="mt-12 border-t border-gray-800 pt-8 flex flex-col md:flex-row justify-between items-center">
|
791 |
+
<p class="text-gray-400 text-sm">
|
792 |
+
© 2023 Learn2Earn Africa. All rights reserved.
|
793 |
+
</p>
|
794 |
+
<div class="mt-4 md:mt-0">
|
795 |
+
<img src="https://via.placeholder.com/150x50?text=Celo+Powered" alt="Powered by Celo" class="h-8">
|
796 |
+
</div>
|
797 |
+
</div>
|
798 |
+
</div>
|
799 |
+
</footer>
|
800 |
+
|
801 |
+
<!-- Wallet Modal -->
|
802 |
+
<div id="walletModal" class="fixed z-10 inset-0 overflow-y-auto hidden">
|
803 |
+
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
804 |
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
805 |
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
806 |
+
</div>
|
807 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
808 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full">
|
809 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
810 |
+
<div class="sm:flex sm:items-start">
|
811 |
+
<div class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-green-100 sm:mx-0 sm:h-10 sm:w-10">
|
812 |
+
<i class="fas fa-wallet text-green-600"></i>
|
813 |
+
</div>
|
814 |
+
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
|
815 |
+
<h3 class="text-lg leading-6 font-medium text-gray-900">Connect Wallet</h3>
|
816 |
+
<div class="mt-2">
|
817 |
+
<p class="text-sm text-gray-500">
|
818 |
+
Choose a wallet to connect to the Learn2Earn platform and start earning FLB tokens.
|
819 |
+
</p>
|
820 |
+
</div>
|
821 |
+
</div>
|
822 |
+
</div>
|
823 |
+
</div>
|
824 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-col">
|
825 |
+
<button id="valoraBtn" class="w-full flex items-center justify-center px-4 py-3 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 mb-3">
|
826 |
+
<img src="https://via.placeholder.com/20x20?text=V" class="h-5 w-5 mr-2" alt="Valora">
|
827 |
+
Valora
|
828 |
+
</button>
|
829 |
+
<button id="metamaskBtn" class="w-full flex items-center justify-center px-4 py-3 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 mb-3">
|
830 |
+
<img src="https://via.placeholder.com/20x20?text=M" class="h-5 w-5 mr-2" alt="MetaMask">
|
831 |
+
MetaMask
|
832 |
+
</button>
|
833 |
+
<button id="walletConnectBtn" class="w-full flex items-center justify-center px-4 py-3 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">
|
834 |
+
<img src="https://via.placeholder.com/20x20?text=WC" class="h-5 w-5 mr-2" alt="WalletConnect">
|
835 |
+
WalletConnect
|
836 |
+
</button>
|
837 |
+
</div>
|
838 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
839 |
+
<button type="button" id="closeWalletModal" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
840 |
+
Cancel
|
841 |
+
</button>
|
842 |
+
</div>
|
843 |
+
</div>
|
844 |
+
</div>
|
845 |
+
</div>
|
846 |
+
|
847 |
+
<!-- Course Modal -->
|
848 |
+
<div id="courseModal" class="fixed z-10 inset-0 overflow-y-auto hidden">
|
849 |
+
<div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
850 |
+
<div class="fixed inset-0 transition-opacity" aria-hidden="true">
|
851 |
+
<div class="absolute inset-0 bg-gray-500 opacity-75"></div>
|
852 |
+
</div>
|
853 |
+
<span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span>
|
854 |
+
<div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-4xl sm:w-full">
|
855 |
+
<div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
|
856 |
+
<div class="sm:flex sm:items-start">
|
857 |
+
<div class="mt-3 text-center sm:mt-0 sm:text-left w-full">
|
858 |
+
<div class="flex justify-between items-center">
|
859 |
+
<h3 class="text-2xl leading-6 font-medium text-gray-900" id="courseModalTitle">Course Title</h3>
|
860 |
+
<button id="closeCourseModal" class="text-gray-400 hover:text-gray-500">
|
861 |
+
<i class="fas fa-times"></i>
|
862 |
+
</button>
|
863 |
+
</div>
|
864 |
+
<div class="mt-4">
|
865 |
+
<div class="flex items-center text-sm text-gray-500 mb-4">
|
866 |
+
<span class="flex items-center mr-4">
|
867 |
+
<i class="fas fa-book-open mr-1"></i> <span id="courseModules">5 Modules</span>
|
868 |
+
</span>
|
869 |
+
<span class="flex items-center mr-4">
|
870 |
+
<i class="fas fa-clock mr-1"></i> <span id="courseDuration">2 Hours</span>
|
871 |
+
</span>
|
872 |
+
<span class="flex items-center">
|
873 |
+
<i class="fas fa-coins mr-1 text-yellow-500"></i> <span id="courseReward" class="font-medium">50 FLB</span>
|
874 |
+
</span>
|
875 |
+
</div>
|
876 |
+
|
877 |
+
<div class="border-t border-gray-200 pt-4">
|
878 |
+
<h4 class="text-lg font-medium text-gray-900 mb-3">Course Content</h4>
|
879 |
+
<div id="courseContent" class="space-y-3">
|
880 |
+
<!-- Modules will be added here dynamically -->
|
881 |
+
</div>
|
882 |
+
</div>
|
883 |
+
|
884 |
+
<div class="mt-6 border-t border-gray-200 pt-4">
|
885 |
+
<h4 class="text-lg font-medium text-gray-900 mb-3">Requirements</h4>
|
886 |
+
<ul class="list-disc pl-5 space-y-1 text-gray-600">
|
887 |
+
<li>Basic understanding of addiction issues</li>
|
888 |
+
<li>Internet connection (offline mode available)</li>
|
889 |
+
<li>Celo-compatible wallet (for token rewards)</li>
|
890 |
+
</ul>
|
891 |
+
</div>
|
892 |
+
</div>
|
893 |
+
</div>
|
894 |
+
</div>
|
895 |
+
</div>
|
896 |
+
<div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse">
|
897 |
+
<button type="button" id="startCourseBtn" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-600 text-base font-medium text-white hover:bg-green-700 sm:ml-3 sm:w-auto sm:text-sm">
|
898 |
+
Start Course
|
899 |
+
</button>
|
900 |
+
<button type="button" id="cancelCourseBtn" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm">
|
901 |
+
Cancel
|
902 |
+
</button>
|
903 |
+
</div>
|
904 |
+
</div>
|
905 |
+
</div>
|
906 |
+
</div>
|
907 |
+
|
908 |
+
<script>
|
909 |
+
// Mock blockchain functionality for demo purposes
|
910 |
+
document.addEventListener('DOMContentLoaded', function() {
|
911 |
+
// Wallet connection
|
912 |
+
const connectWalletBtns = document.querySelectorAll('#connectWalletBtn, #connectWalletBtn2');
|
913 |
+
const walletModal = document.getElementById('walletModal');
|
914 |
+
const closeWalletModal = document.getElementById('closeWalletModal');
|
915 |
+
const walletInfo = document.getElementById('walletInfo');
|
916 |
+
const walletAddress = document.getElementById('walletAddress');
|
917 |
+
const walletBalance = document.getElementById('walletBalance');
|
918 |
+
const walletConnected = document.getElementById('walletConnected');
|
919 |
+
const walletAddress2 = document.getElementById('walletAddress2');
|
920 |
+
const walletBalance2 = document.getElementById('walletBalance2');
|
921 |
+
const celoBalance = document.getElementById('celoBalance');
|
922 |
+
const noTransactions = document.getElementById('noTransactions');
|
923 |
+
const transactionList = document.getElementById('transactionList');
|
924 |
+
|
925 |
+
// Course modals
|
926 |
+
const courseModal = document.getElementById('courseModal');
|
927 |
+
const courseModalTitle = document.getElementById('courseModalTitle');
|
928 |
+
const courseModules = document.getElementById('courseModules');
|
929 |
+
const courseDuration = document.getElementById('courseDuration');
|
930 |
+
const courseReward = document.getElementById('courseReward');
|
931 |
+
const courseContent = document.getElementById('courseContent');
|
932 |
+
const closeCourseModal = document.getElementById('closeCourseModal');
|
933 |
+
const cancelCourseBtn = document.getElementById('cancelCourseBtn');
|
934 |
+
const startCourseBtn = document.getElementById('startCourseBtn');
|
935 |
+
|
936 |
+
// Mock wallet addresses
|
937 |
+
const mockWallets = [
|
938 |
+
'0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
|
939 |
+
'0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B',
|
940 |
+
'0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB'
|
941 |
+
];
|
942 |
+
|
943 |
+
// Mock transactions
|
944 |
+
const mockTransactions = [
|
945 |
+
{ id: 1, type: 'earned', amount: 50, course: 'Understanding Addiction', date: '2023-06-15', status: 'completed' },
|
946 |
+
{ id: 2, type: 'donated', amount: 20, course: 'Community Center', date: '2023-06-10', status: 'completed' },
|
947 |
+
{ id: 3, type: 'earned', amount: 75, course: 'Prevention Strategies', date: '2023-06-05', status: 'completed' }
|
948 |
+
];
|
949 |
+
|
950 |
+
// Course data
|
951 |
+
const courses = {
|
952 |
+
'Understanding Addiction in Africa': {
|
953 |
+
modules: 5,
|
954 |
+
duration: '2 Hours',
|
955 |
+
reward: 50,
|
956 |
+
content: [
|
957 |
+
{ title: 'Introduction to Addiction', duration: '15 min', completed: false },
|
958 |
+
{ title: 'Cultural Perspectives', duration: '20 min', completed: false },
|
959 |
+
{ title: 'Common Substances', duration: '25 min', completed: false },
|
960 |
+
{ title: 'Community Impact', duration: '30 min', completed: false },
|
961 |
+
{ title: 'Quiz: Understanding Basics', duration: '10 min', completed: false }
|
962 |
+
]
|
963 |
+
},
|
964 |
+
'Community Prevention Strategies': {
|
965 |
+
modules: 7,
|
966 |
+
duration: '3 Hours',
|
967 |
+
reward: 75,
|
968 |
+
content: [
|
969 |
+
{ title: 'Introduction to Prevention', duration: '15 min', completed: false },
|
970 |
+
{ title: 'School-Based Programs', duration: '25 min', completed: false },
|
971 |
+
{ title: 'Faith-Based Approaches', duration: '20 min', completed: false },
|
972 |
+
{ title: 'Community Leaders Role', duration: '30 min', completed: false },
|
973 |
+
{ title: 'Case Study: Nigeria', duration: '25 min', completed: false },
|
974 |
+
{ title: 'Case Study: Kenya', duration: '25 min', completed: false },
|
975 |
+
{ title: 'Final Assessment', duration: '20 min', completed: false }
|
976 |
+
]
|
977 |
+
},
|
978 |
+
'Treatment Center Operations': {
|
979 |
+
modules: 10,
|
980 |
+
duration: '4 Hours',
|
981 |
+
reward: 100,
|
982 |
+
content: [
|
983 |
+
{ title: 'Introduction to Treatment Centers', duration: '15 min', completed: false },
|
984 |
+
{ title: 'Staffing Requirements', duration: '25 min', completed: false },
|
985 |
+
{ title: 'Facility Standards', duration: '30 min', completed: false },
|
986 |
+
{ title: 'Treatment Methodologies', duration: '35 min', completed: false },
|
987 |
+
{ title: 'Patient Intake Process', duration: '20 min', completed: false },
|
988 |
+
{ title: 'Counseling Approaches', duration: '25 min', completed: false },
|
989 |
+
{ title: 'Aftercare Programs', duration: '30 min', completed: false },
|
990 |
+
{ title: 'Funding Models', duration: '25 min', completed: false },
|
991 |
+
{ title: 'Success Metrics', duration: '20 min', completed: false },
|
992 |
+
{ title: 'Final Exam', duration: '30 min', completed: false }
|
993 |
+
]
|
994 |
+
}
|
995 |
+
};
|
996 |
+
|
997 |
+
// Connect wallet buttons
|
998 |
+
connectWalletBtns.forEach(btn => {
|
999 |
+
btn.addEventListener('click', function() {
|
1000 |
+
walletModal.classList.remove('hidden');
|
1001 |
+
});
|
1002 |
+
});
|
1003 |
+
|
1004 |
+
// Close wallet modal
|
1005 |
+
closeWalletModal.addEventListener('click', function() {
|
1006 |
+
walletModal.classList.add('hidden');
|
1007 |
+
});
|
1008 |
+
|
1009 |
+
// Wallet options
|
1010 |
+
document.getElementById('valoraBtn').addEventListener('click', connectWallet);
|
1011 |
+
document.getElementById('metamaskBtn').addEventListener('click', connectWallet);
|
1012 |
+
document.getElementById('walletConnectBtn').addEventListener('click', connectWallet);
|
1013 |
+
|
1014 |
+
// Connect wallet function
|
1015 |
+
function connectWallet() {
|
1016 |
+
// Mock connection - in a real app this would connect to the actual wallet
|
1017 |
+
const randomWallet = mockWallets[Math.floor(Math.random() * mockWallets.length)];
|
1018 |
+
const randomBalance = Math.floor(Math.random() * 500) + 50;
|
1019 |
+
const randomCelo = (Math.random() * 5).toFixed(2);
|
1020 |
+
|
1021 |
+
walletAddress.textContent = `${randomWallet.substring(0, 6)}...${randomWallet.substring(38)}`;
|
1022 |
+
walletBalance.textContent = `${randomBalance} FLB`;
|
1023 |
+
walletAddress2.textContent = `${randomWallet.substring(0, 6)}...${randomWallet.substring(38)}`;
|
1024 |
+
walletBalance2.textContent = `${randomBalance} FLB`;
|
1025 |
+
celoBalance.textContent = `${randomCelo} CELO`;
|
1026 |
+
|
1027 |
+
walletInfo.classList.remove('hidden');
|
1028 |
+
walletConnected.classList.remove('hidden');
|
1029 |
+
document.querySelector('#walletNotConnected').classList.add('hidden');
|
1030 |
+
|
1031 |
+
// Show mock transactions
|
1032 |
+
noTransactions.classList.add('hidden');
|
1033 |
+
transactionList.classList.remove('hidden');
|
1034 |
+
transactionList.innerHTML = '';
|
1035 |
+
|
1036 |
+
mockTransactions.forEach(tx => {
|
1037 |
+
const txElement = document.createElement('div');
|
1038 |
+
txElement.className = 'border-b border-gray-200 py-3';
|
1039 |
+
txElement.innerHTML = `
|
1040 |
+
<div class="flex justify-between items-center">
|
1041 |
+
<div>
|
1042 |
+
<p class="font-medium ${tx.type === 'earned' ? 'text-green-600' : 'text-blue-600'}">
|
1043 |
+
${tx.type === 'earned' ? 'Earned' : 'Donated'} ${tx.amount} FLB
|
1044 |
+
</p>
|
1045 |
+
<p class="text-sm text-gray-500">${tx.course}</p>
|
1046 |
+
</div>
|
1047 |
+
<div class="text-right">
|
1048 |
+
<p class="text-sm text-gray-500">${tx.date}</p>
|
1049 |
+
<span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">
|
1050 |
+
${tx.status}
|
1051 |
+
</span>
|
1052 |
+
</div>
|
1053 |
+
</div>
|
1054 |
+
`;
|
1055 |
+
transactionList.appendChild(txElement);
|
1056 |
+
});
|
1057 |
+
|
1058 |
+
walletModal.classList.add('hidden');
|
1059 |
+
}
|
1060 |
+
|
1061 |
+
// Course card buttons
|
1062 |
+
document.querySelectorAll('.course-card button').forEach(btn => {
|
1063 |
+
btn.addEventListener('click', function() {
|
1064 |
+
const courseTitle = this.closest('.course-card').querySelector('h3').textContent;
|
1065 |
+
openCourseModal(courseTitle);
|
1066 |
+
});
|
1067 |
+
});
|
1068 |
+
|
1069 |
+
// Open course modal
|
1070 |
+
function openCourseModal(title) {
|
1071 |
+
const course = courses[title];
|
1072 |
+
|
1073 |
+
courseModalTitle.textContent = title;
|
1074 |
+
courseModules.textContent = `${course.modules} Modules`;
|
1075 |
+
courseDuration.textContent = course.duration;
|
1076 |
+
courseReward.textContent = `${course.reward} FLB`;
|
1077 |
+
|
1078 |
+
// Clear previous content
|
1079 |
+
courseContent.innerHTML = '';
|
1080 |
+
|
1081 |
+
// Add modules
|
1082 |
+
course.content.forEach((module, index) => {
|
1083 |
+
const moduleElement = document.createElement('div');
|
1084 |
+
moduleElement.className = 'flex items-center justify-between p-3 bg-gray-50 rounded-md';
|
1085 |
+
moduleElement.innerHTML = `
|
1086 |
+
<div class="flex items-center">
|
1087 |
+
<span class="flex items-center justify-center h-6 w-6 rounded-full bg-gray-200 text-gray-700 text-xs font-medium mr-3">${index + 1}</span>
|
1088 |
+
<span class="text-gray-700">${module.title}</span>
|
1089 |
+
</div>
|
1090 |
+
<span class="text-sm text-gray-500">${module.duration}</span>
|
1091 |
+
`;
|
1092 |
+
courseContent.appendChild(moduleElement);
|
1093 |
+
});
|
1094 |
+
|
1095 |
+
courseModal.classList.remove('hidden');
|
1096 |
+
}
|
1097 |
+
|
1098 |
+
// Close course modal
|
1099 |
+
closeCourseModal.addEventListener('click', function() {
|
1100 |
+
courseModal.classList.add('hidden');
|
1101 |
+
});
|
1102 |
+
|
1103 |
+
cancelCourseBtn.addEventListener('click', function() {
|
1104 |
+
courseModal.classList.add('hidden');
|
1105 |
+
});
|
1106 |
+
|
1107 |
+
// Start course button
|
1108 |
+
startCourseBtn.addEventListener('click', function() {
|
1109 |
+
alert(`You have started the "${courseModalTitle.textContent}" course. Complete modules to earn FLB tokens!`);
|
1110 |
+
courseModal.classList.add('hidden');
|
1111 |
+
});
|
1112 |
+
|
1113 |
+
// Mobile menu toggle (placeholder - would need more implementation)
|
1114 |
+
document.querySelector('nav button[aria-controls="mobile-menu"]').addEventListener('click', function() {
|
1115 |
+
alert('Mobile menu would open here in a full implementation.');
|
1116 |
+
});
|
1117 |
+
|
1118 |
+
// Offline mode button
|
1119 |
+
document.querySelector('.offline-mode button').addEventListener('click', function() {
|
1120 |
+
alert('Offline mode enabled. Course materials will be downloaded for offline access.');
|
1121 |
+
});
|
1122 |
+
});
|
1123 |
+
</script>
|
1124 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MoShow/ln" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
1125 |
+
</html>
|