-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirst_index.html
More file actions
313 lines (284 loc) · 13.7 KB
/
first_index.html
File metadata and controls
313 lines (284 loc) · 13.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="codeon logo.png" type="image/png">
<link rel="icon" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" sizes="16x16" href="/favicon-16x16.png">
<link rel="canonical" href="https://codeondigital.com" />
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Join CODEON, Uganda's student coding platform. Solve challenges, earn points and badges, and connect with the coding community.">
<meta name="keywords" content="CODEON, coding challenges, students, Uganda, programming, gamification, leaderboard">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "CodeOnDigital",
"url": "https://codeondigital.com",
"logo": "https://codeondigital.com/codeon logo.png"
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "CODEON",
"url": "https://k-mirembe-mercy.github.io/codeon/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://k-mirembe-mercy.github.io/codeon/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<title>CODEON Africa | Code Your Future – Learn Coding Online | HTML, CSS, JavaScript Courses</title>
<!-- QR Code & Firebase -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/10.7.1/firebase-firestore-compat.js"></script>
<style>
:root{
--bg:#11302e;
--card:#ffffff15;
--text:white;
--accent:#00e0c6;
--hover-accent:#00ffc8;
}
.light{
--bg:#f4f6f8;--card:#ffffffdd;--text:#111;--accent:#00695c;--hover-accent:#00e0c6;
}
*{margin:0;padding:0;box-sizing:border-box;font-family:Segoe UI,sans-serif;}
body{background:var(--bg);color:var(--text);transition:0.5s;overflow-x:hidden;position:relative;}
a{text-decoration:none;color:var(--text);}
header{display:flex;justify-content:space-between;align-items:center;padding:20px 8%;position:relative;z-index:10;flex-wrap:wrap;}
.logo{height:60px;margin-right:15px;}
.nav{display:flex;gap:15px;align-items:center;}
.nav a{font-weight:bold;color:var(--text);}
.menu-toggle{display:none;cursor:pointer;font-size:1.8rem;padding:5px;}
.nav.active{display:flex;flex-direction:column;position:absolute;top:100%;left:0;width:100%;background:var(--card);padding:20px;gap:10px;border-radius:0 0 15px 15px;}
.toggle{cursor:pointer;padding:8px 14px;border-radius:20px;background:var(--accent);color:#003b44;font-weight:bold;transition:0.3s;}
.toggle:hover{box-shadow:0 0 25px var(--hover-accent);}
#loader{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--bg);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:9999;color:var(--accent);font-size:1.5rem;}
.spinner{width:60px;height:60px;border:6px solid rgba(255,255,255,0.2);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin-bottom:15px;}
@keyframes spin{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}
#subscriptionPopup{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;z-index:9998;display:none;}
#subscriptionPopup .content{background:var(--card);color:var(--text);padding:30px 20px;border-radius:20px;text-align:center;max-width:400px;position:relative;}
#subscriptionPopup .closeBtn{position:absolute;top:10px;right:15px;font-size:1.5rem;font-weight:bold;cursor:pointer;}
#subscriptionPopup button{margin-top:20px;width:80%;cursor:pointer;transition:0.3s;box-shadow:0 0 15px var(--accent);}
#subscriptionPopup button:hover{box-shadow:0 0 30px var(--hover-accent);}
.hero{text-align:center;padding:100px 5% 60px;position:relative;overflow:hidden;}
.glass{background:var(--card);backdrop-filter:blur(20px);border-radius:20px;padding:30px;margin:30px auto;max-width:1100px;opacity:0;transform:translateY(50px);transition:all 0.8s ease;}
.cards{display:flex;flex-wrap:wrap;gap:20px;justify-content:center;}
.card{flex:1 1 250px;padding:20px;border-radius:20px;background:var(--card);transition:0.5s;transform-style:preserve-3d;cursor:pointer;min-width:250px;max-width:320px;text-align:center;}
.card img{width:100px;height:100px;object-fit:cover;margin-bottom:15px;}
.card:hover{transform:rotateY(10deg) rotateX(5deg) translateY(-10px);}
button{padding:12px 18px;border:none;border-radius:8px;background:var(--accent);color:#003b44;font-weight:bold;margin-top:10px;cursor:pointer;box-shadow:0 0 15px var(--accent);transition:0.4s;}
button:hover{box-shadow:0 0 30px var(--hover-accent);transform:translateY(-3px);}
.verify{text-align:center;margin-top:20px;}
input{padding:10px;width:100%;border-radius:8px;border:none;margin-top:10px;max-width:300px;}
footer{text-align:center;padding:30px;opacity:0.9;}
footer a{color:var(--accent);text-decoration:none;margin:0 10px;}
footer a:hover{text-decoration:underline;}
.contact-section{margin-top:30px;text-align:center;}
#pageQRCode{margin:20px auto;text-align:center;}
.shape{position:absolute;width:150px;height:150px;background:linear-gradient(45deg,#00e0c6,#00695c);border-radius:50%;filter:blur(80px);opacity:0.4;animation:float 12s infinite alternate ease-in-out;}
.shape2{top:15%;left:5%;}
.shape3{bottom:5%;right:5%;}
@keyframes float{0%{transform:translateY(0px) rotate(0deg);}100%{transform:translateY(80px) rotate(360deg);}}
#bgCanvas{position:fixed;top:0;left:0;width:100%;height:100%;z-index:-1;}
.scroll-reveal{opacity:0;transform:translateY(30px);transition:all 0.8s ease;}
.scroll-reveal.visible{opacity:1;transform:translateY(0);}
@media(max-width:768px){.menu-toggle{display:block;}.nav{display:none;flex-direction:column;}.cards{flex-direction:column;align-items:center;}.card{width:90%;}}
@media(max-width:480px){.hero h1{font-size:1.6rem;}.hero p{font-size:0.85rem;}.card{width:95%;}}
</style>
</head>
<body>
<canvas id="bgCanvas"></canvas>
<div id="loader">
<div class="spinner"></div>
<div>Loading...</div>
</div>
<div id="subscriptionPopup">
<div class="content">
<div class="closeBtn" onclick="closeSubscription()">×</div>
<h2>Subscribe to CODEON</h2>
<p>Unlock all features and updates by subscribing!</p>
<button onclick="subscribeNow()">Subscribe Now</button>
<button onclick="closeSubscription()" style="background:#444;color:white;margin-top:10px;">Pay Later</button>
</div>
</div>
<div class="shape shape2"></div>
<div class="shape shape3"></div>
<header>
<div style="display:flex;align-items:center;">
<img src="codeon logo.png" loading="lazy" alt="CODEON Logo" class="logo">
<h1 style="margin-right:20px;">CODEON</h1>
</div>
<div class="nav" id="navLinks">
<a href="index.html">Home</a>
<a href="enroll.html">Enroll</a>
<a href="verify.html">Verify</a>
<a href="community-codeon.html">Community</a>
<a href="aboutus.html">About</a>
</div>
<span class="menu-toggle" onclick="toggleMenu()">☰</span>
<div class="toggle" onclick="toggleMode()">🌙</div>
</header>
<!-- HERO -->
<section class="hero scroll-reveal">
<h2>Empowering Africa's Next Generation of Developers</h2>
<p>Structured coding education with real GitHub collaboration workflow.</p>
</section>
<!-- WHY CHOOSE US -->
<section class="glass scroll-reveal">
<h2>Why Choose CODEON?</h2>
<p>Students learn Web Development, GitHub forking, pull requests, collaboration and real-world development practices.</p>
<h3>Testimonials</h3>
<p>"CODEON helped me understand real software development." – Kafeero Praise, Student, Africa</p>
<p>"The GitHub workflow training prepared me for freelance work." – Nalubega Desire</p>
</section>
<!-- HACKATHON -->
<section class="glass scroll-reveal">
<h2>NATIONAL HACKATHON</h2>
<div class="card">
<img src="sss%2Cmedium%2Cwide_portrait%2C750x1000.1u2.jpg" alt="uganda">
<p>Join the hackathon and compete at the national level.</p>
<button onclick="location.href='hackathon.html'">Join now</button>
</div>
</section>
<!-- PROGRAMS -->
<section class="glass scroll-reveal">
<h2>Programs</h2>
<div class="cards">
<!-- Your 4 course cards here (Level3, Level2, Level1, Python) -->
<!-- ... keep all your cards ... -->
</div>
</section>
<!-- ARTICLES -->
<section class="glass scroll-reveal">
<h3>ARTICLES</h3>
<div class="card">
<img src="sss%2Cmedium%2Cwide_portrait%2C750x1000.1u2.jpg" alt="uganda">
<h3>DIGITAL FUTURE</h3>
<p>Uganda's Digital Future.</p>
<button onclick="location.href='article1.html'">Open Article</button>
</div>
</section>
<!-- VERIFY -->
<section class="glass verify scroll-reveal">
<h2>Verify Certificate</h2>
<input id="verifyID" placeholder="Enter Certificate ID">
<button onclick="verifyCertificate()">Verify</button>
<div id="verifyResult" style="margin-top:15px;font-weight:bold;"></div>
<div id="qrcode"></div>
</section>
<!-- CONTACT -->
<section class="glass scroll-reveal contact-section">
<h3>Scan to Visit Our Page:</h3>
<div id="pageQRCode"></div>
<p>Email: codeon.ug@gmail.com</p>
<p>Call: 0743733322</p>
<p>WhatsApp: 0777435942</p>
</section>
<!-- SIGNUP -->
<section class="glass scroll-reveal">
<h2>Sign Up for CodeOnDigital</h2>
<input type="text" id="name" placeholder="Enter your name" required>
<input type="email" id="email" placeholder="Enter a valid email" required>
<button onclick="registerStudent()">Sign Up</button>
</section>
<!-- FOOTER -->
<footer class="scroll-reveal">
<a href="course1.html">Course 1</a> |
<a href="course2.html">Course 2</a> |
<a href="course3.html">Course 3</a> |
<a href="https://store.pesapal.com/subscribecodeon" target="_blank">Subscribe</a> |
<a href="https://store.pesapal.com/certificatepayment" target="_blank">Certificate Payment</a>
</footer>
<footer>CODEON Africa | Built in Uganda</footer>
<!-- SCRIPTS -->
<script>
// Firebase config
const firebaseConfig = {
apiKey: "AIzaSy...",
authDomain: "codeon-3cb1c.firebaseapp.com",
projectId: "codeon-3cb1c"
};
firebase.initializeApp(firebaseConfig);
const auth = firebase.auth();
const db = firebase.firestore();
auth.signInAnonymously().catch(err => console.error(err));
async function registerStudent(){
const name = document.getElementById("name").value;
const email = document.getElementById("email").value;
if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)){
alert("Enter a valid email!");
return;
}
try {
await db.collection("students").add({
name, email, level: 1, progress: 0,
subscriptionStatus: "inactive", certificateStatus: "not_issued",
lastVisited: firebase.firestore.FieldValue.serverTimestamp()
});
alert("Welcome! Check your email for instructions.");
} catch(err){console.error(err); alert("Something went wrong. Try again later.");}
}
// Menu & dark/light toggle
function toggleMenu(){document.getElementById('navLinks').classList.toggle('active');}
function toggleMode(){document.body.classList.toggle("light");}
// Subscription popup
function showSubscription(){
const popup = document.getElementById('subscriptionPopup');
if(!sessionStorage.getItem('subscribed')){
popup.style.display='flex';
sessionStorage.setItem('subscribed','true');
setTimeout(()=>popup.style.display='none',5000); // auto disappear after 5s
}
}
function closeSubscription(){document.getElementById('subscriptionPopup').style.display='none';}
function subscribeNow(){window.location.href='https://store.pesapal.com/subscribecodeon';}
// Scroll reveal
function scrollReveal(){
document.querySelectorAll('.scroll-reveal').forEach(el=>{
if(el.getBoundingClientRect().top < window.innerHeight-100){
el.classList.add('visible');
}
});
}
window.addEventListener('scroll',scrollReveal);
// Loader
window.addEventListener('load',()=>{
document.getElementById('loader').style.display='none';
showSubscription();
scrollReveal();
new QRCode(document.getElementById("pageQRCode"),{
text:"https://k-mirembe-mercy.github.io/codeon/", width:120, height:120
});
});
// Animated 3D background
const canvas=document.getElementById('bgCanvas');
const ctx=canvas.getContext('2d');
canvas.width=window.innerWidth; canvas.height=window.innerHeight;
let particles=[];
for(let i=0;i<120;i++){
particles.push({x:Math.random()*canvas.width,y:Math.random()*canvas.height,dx:(Math.random()-0.5)*0.5,dy:(Math.random()-0.5)*0.5,r:Math.random()*2+1});
}
function animate(){
ctx.clearRect(0,0,canvas.width,canvas.height);
particles.forEach(p=>{
p.x+=p.dx; p.y+=p.dy;
if(p.x>canvas.width||p.x<0)p.dx*=-1;
if(p.y>canvas.height||p.y<0)p.dy*=-1;
ctx.beginPath();
ctx.arc(p.x,p.y,p.r,0,Math.PI*2);
ctx.fillStyle='rgba(0,224,198,0.7)'; ctx.fill();
});
requestAnimationFrame(animate);
}
animate();
window.addEventListener('resize',()=>{canvas.width=window.innerWidth; canvas.height=window.innerHeight;});
</script>
</body>
</html>