-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhackathon.html
More file actions
1886 lines (1724 loc) Β· 90.7 KB
/
hackathon.html
File metadata and controls
1886 lines (1724 loc) Β· 90.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
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>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-EBR3S0M396"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-EBR3S0M396');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<meta name="theme-color" content="#04100e">
<title>CODEON National Hackathon Uganda 2025 | Build Your Future</title>
<meta name="description" content="Join the CODEON National Hackathon Uganda 2025. Edit real HTML/CSS projects, preview live, and submit your work. Open to all students β beginner friendly.">
<meta name="keywords" content="Hackathon Uganda 2025, CODEON, student coding competition, HTML CSS hackathon, Uganda coding, web development competition Africa">
<meta name="author" content="CODEON Africa">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://codeondigital.com/hackathon">
<link rel="icon" href="codeon logo.png" type="image/png">
<link rel="apple-touch-icon" href="codeon logo.png">
<!-- OG -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://codeondigital.com/hackathon">
<meta property="og:title" content="CODEON National Hackathon Uganda 2025">
<meta property="og:description" content="Build real web projects, preview live, and compete at the national level. Open to all students β beginner friendly.">
<meta property="og:image" content="https://codeondigital.com/og-hackathon.png">
<meta property="og:site_name" content="CODEON Africa">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="CODEON National Hackathon Uganda 2025">
<meta name="twitter:description" content="Build real web projects, preview live, and compete at the national level.">
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context":"https://schema.org",
"@type":"Event",
"name":"CODEON National Hackathon Uganda 2025",
"description":"A national coding competition for Ugandan students. Build HTML/CSS web projects, preview live, and submit for judging.",
"url":"https://codeondigital.com/hackathon",
"organizer":{"@type":"Organization","name":"CODEON Africa","url":"https://codeondigital.com"},
"location":{"@type":"VirtualLocation","url":"https://codeondigital.com/hackathon"},
"eventAttendanceMode":"https://schema.org/OnlineEventAttendanceMode",
"eventStatus":"https://schema.org/EventScheduled"
}
</script>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Syne:wght@700;800;900&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<!-- CodeMirror -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/codemirror.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/theme/material-darker.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/xml/xml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/css/css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/javascript/javascript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/mode/htmlmixed/htmlmixed.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/edit/closetag.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/edit/matchbrackets.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/comment/comment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/fold/foldcode.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/hint/show-hint.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/hint/html-hint.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16/addon/hint/show-hint.min.css">
<style>
/* βββββββββββββββββββββββββββββββ
TOKENS
βββββββββββββββββββββββββββββββ */
:root {
--bg: #04100e;
--surface: #081a17;
--surface2: #0c2420;
--border: #163028;
--accent: #00e0c6;
--accent2: #00ffd5;
--gold: #f5c518;
--red: #ff5252;
--text: #dff0ed;
--muted: #4d7a74;
--fd: 'Syne', sans-serif;
--fb: 'Inter', sans-serif;
--fm: 'JetBrains Mono', monospace;
--r: 14px;
--glow: 0 0 40px rgba(0,224,198,.12);
--tr: .25s cubic-bezier(.4,0,.2,1);
}
/* βββββββββββββββββββββββββββββββ
RESET
βββββββββββββββββββββββββββββββ */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{background:var(--bg);color:var(--text);font-family:var(--fb);overflow-x:hidden;line-height:1.6;min-height:100vh;}
a{text-decoration:none;color:inherit;}
img{display:block;max-width:100%;}
button{cursor:pointer;font-family:var(--fb);}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important;}}
/* βββββββββββββββββββββββββββββββ
CANVAS
βββββββββββββββββββββββββββββββ */
#bgCanvas{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.6;}
/* βββββββββββββββββββββββββββββββ
TOAST
βββββββββββββββββββββββββββββββ */
#toast{
position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(80px);
background:var(--surface2);border:1px solid var(--border);
color:var(--text);font-family:var(--fm);font-size:.78rem;letter-spacing:.5px;
padding:12px 22px;border-radius:100px;
box-shadow:0 8px 32px rgba(0,0,0,.5);
z-index:9999;white-space:nowrap;
transition:transform .4s cubic-bezier(.34,1.56,.64,1);pointer-events:none;
}
#toast.show{transform:translateX(-50%) translateY(0);}
#toast.ok{border-color:rgba(0,224,198,.4);color:var(--accent);}
#toast.err{border-color:rgba(255,82,82,.4);color:var(--red);}
#toast.warn{border-color:rgba(245,197,24,.4);color:var(--gold);}
/* βββββββββββββββββββββββββββββββ
MODAL
βββββββββββββββββββββββββββββββ */
#modal{position:fixed;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;z-index:9998;padding:16px;}
#modal.open{display:flex;}
.modal-box{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:clamp(24px,5vw,40px);max-width:480px;width:100%;position:relative;box-shadow:var(--glow);animation:popIn .35s cubic-bezier(.34,1.56,.64,1);}
@keyframes popIn{from{opacity:0;transform:scale(.88) translateY(16px)}to{opacity:1;transform:scale(1) translateY(0)}}
.modal-close{position:absolute;top:14px;right:16px;background:none;border:none;color:var(--muted);font-size:1.4rem;line-height:1;padding:4px;}
.modal-close:hover{color:var(--text);}
.modal-icon{font-size:2.5rem;margin-bottom:12px;text-align:center;}
.modal-box h2{font-family:var(--fd);font-size:1.4rem;font-weight:800;margin-bottom:8px;text-align:center;}
.modal-box p{color:var(--muted);font-size:.88rem;line-height:1.7;margin-bottom:20px;text-align:center;}
.modal-fields{display:flex;flex-direction:column;gap:12px;margin-bottom:20px;}
.modal-fields label{font-family:var(--fm);font-size:.6rem;letter-spacing:2px;color:var(--muted);display:block;margin-bottom:4px;}
.modal-fields input,.modal-fields select{width:100%;padding:11px 14px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-family:var(--fb);font-size:.88rem;transition:border-color var(--tr);}
.modal-fields input:focus,.modal-fields select:focus{outline:none;border-color:var(--accent);}
.modal-fields select option{background:var(--surface);}
.modal-btns{display:flex;flex-direction:column;gap:10px;}
/* βββββββββββββββββββββββββββββββ
HEADER
βββββββββββββββββββββββββββββββ */
header{
position:sticky;top:0;z-index:100;
display:flex;align-items:center;justify-content:space-between;
padding:0 clamp(14px,4%,40px);height:60px;
background:rgba(4,16,14,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
border-bottom:1px solid var(--border);
}
.hd-left{display:flex;align-items:center;gap:10px;}
.hd-logo{height:32px;}
.hd-name{font-family:var(--fd);font-size:1.05rem;font-weight:900;color:var(--accent);letter-spacing:-1px;}
.hd-badge{font-family:var(--fm);font-size:.55rem;letter-spacing:2px;color:var(--gold);background:rgba(245,197,24,.1);border:1px solid rgba(245,197,24,.25);padding:3px 8px;border-radius:100px;white-space:nowrap;}
.hd-right{display:flex;align-items:center;gap:10px;}
.hd-timer{font-family:var(--fm);font-size:.78rem;color:var(--gold);background:rgba(245,197,24,.08);border:1px solid rgba(245,197,24,.2);padding:6px 12px;border-radius:8px;letter-spacing:1px;white-space:nowrap;}
nav a{font-family:var(--fm);font-size:.68rem;letter-spacing:1px;color:var(--muted);transition:color var(--tr);}
nav a:hover{color:var(--text);}
@media(max-width:640px){nav{display:none;}.hd-badge{display:none;}}
/* βββββββββββββββββββββββββββββββ
BUTTONS
βββββββββββββββββββββββββββββββ */
.btn{display:inline-flex;align-items:center;gap:7px;padding:10px 20px;border:none;border-radius:8px;font-family:var(--fb);font-weight:600;font-size:.84rem;transition:transform var(--tr),box-shadow var(--tr),background var(--tr);-webkit-tap-highlight-color:transparent;white-space:nowrap;}
.btn:active{transform:scale(.96)!important;}
.btn-primary{background:var(--accent);color:#001a17;box-shadow:0 0 20px rgba(0,224,198,.25);}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 0 36px rgba(0,224,198,.4);}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--border);}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent);}
.btn-gold{background:var(--gold);color:#1a1200;box-shadow:0 0 20px rgba(245,197,24,.25);}
.btn-gold:hover{transform:translateY(-1px);box-shadow:0 0 36px rgba(245,197,24,.4);}
.btn-red{background:rgba(255,82,82,.15);color:var(--red);border:1px solid rgba(255,82,82,.3);}
.btn-red:hover{background:rgba(255,82,82,.25);}
.btn-sm{padding:7px 14px;font-size:.78rem;}
.btn-full{width:100%;justify-content:center;}
/* βββββββββββββββββββββββββββββββ
HERO BANNER
βββββββββββββββββββββββββββββββ */
.hero{
position:relative;z-index:1;
text-align:center;
padding:clamp(48px,10vw,80px) clamp(16px,5%,60px) clamp(32px,6vw,56px);
overflow:hidden;
}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 80% 60% at 50% 0%,rgba(0,224,198,.07),transparent 70%);pointer-events:none;}
.hero-eye{display:inline-flex;align-items:center;gap:8px;font-family:var(--fm);font-size:.6rem;letter-spacing:3px;color:var(--gold);background:rgba(245,197,24,.07);border:1px solid rgba(245,197,24,.2);padding:5px 14px;border-radius:100px;margin-bottom:20px;animation:fadeUp .7s .1s both;}
.hero-dot{width:6px;height:6px;border-radius:50%;background:var(--gold);animation:blink 1.8s infinite;}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.2}}
.hero h1{font-family:var(--fd);font-size:clamp(2rem,7vw,4.2rem);font-weight:900;letter-spacing:-2px;line-height:1.05;max-width:800px;margin:0 auto 16px;animation:fadeUp .7s .2s both;}
.hero h1 span{color:var(--accent);}
.hero-sub{color:var(--muted);font-size:clamp(.88rem,2vw,1rem);max-width:500px;margin:0 auto 28px;line-height:1.7;animation:fadeUp .7s .35s both;}
.hero-ctas{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;animation:fadeUp .7s .5s both;}
.hero-meta{margin-top:32px;display:flex;gap:clamp(20px,4vw,40px);justify-content:center;flex-wrap:wrap;animation:fadeUp .7s .65s both;}
.meta-item{text-align:center;}
.meta-n{font-family:var(--fm);font-size:clamp(1.2rem,3vw,1.8rem);font-weight:700;color:var(--accent);}
.meta-l{font-family:var(--fm);font-size:.55rem;letter-spacing:2px;color:var(--muted);margin-top:2px;}
@keyframes fadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
/* βββββββββββββββββββββββββββββββ
STEPS GUIDE
βββββββββββββββββββββββββββββββ */
.steps-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 40px;}
.steps-head{text-align:center;margin-bottom:28px;}
.steps-head h2{font-family:var(--fd);font-size:clamp(1.3rem,3vw,1.9rem);font-weight:800;margin-bottom:6px;}
.steps-head p{color:var(--muted);font-size:.88rem;}
.steps-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;}
.step-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:20px;position:relative;overflow:hidden;transition:border-color var(--tr),transform var(--tr);}
.step-card:hover{border-color:rgba(0,224,198,.3);transform:translateY(-3px);}
.step-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .4s;}
.step-card:hover::before{transform:scaleX(1);}
.step-num{font-family:var(--fm);font-size:.6rem;letter-spacing:3px;color:var(--accent);margin-bottom:10px;}
.step-icon{font-size:1.6rem;margin-bottom:8px;}
.step-card h3{font-family:var(--fd);font-size:.92rem;font-weight:700;margin-bottom:6px;}
.step-card p{color:var(--muted);font-size:.8rem;line-height:1.6;}
/* βββββββββββββββββββββββββββββββ
TEMPLATE PICKER
βββββββββββββββββββββββββββββββ */
.picker-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 40px;}
.picker-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px;}
.picker-head h2{font-family:var(--fd);font-size:clamp(1.2rem,3vw,1.7rem);font-weight:800;}
.picker-head p{color:var(--muted);font-size:.84rem;}
.templates-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.tpl-card{
background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
padding:20px;cursor:pointer;
transition:border-color var(--tr),transform var(--tr),box-shadow var(--tr);
-webkit-tap-highlight-color:transparent;
}
.tpl-card:hover{border-color:rgba(0,224,198,.35);transform:translateY(-4px);box-shadow:var(--glow);}
.tpl-card.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
.tpl-card:active{transform:scale(.97);}
.tpl-emoji{font-size:1.8rem;margin-bottom:10px;}
.tpl-difficulty{font-family:var(--fm);font-size:.55rem;letter-spacing:2px;margin-bottom:8px;}
.tpl-difficulty.easy{color:#4caf8a;}
.tpl-difficulty.medium{color:var(--gold);}
.tpl-card h3{font-family:var(--fd);font-size:.95rem;font-weight:700;margin-bottom:6px;}
.tpl-card p{color:var(--muted);font-size:.78rem;line-height:1.55;}
.tpl-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px;}
.tpl-tag{font-family:var(--fm);font-size:.55rem;letter-spacing:1px;padding:2px 8px;border-radius:100px;background:rgba(0,224,198,.07);color:var(--accent);border:1px solid rgba(0,224,198,.15);}
/* βββββββββββββββββββββββββββββββ
EDITOR AREA
βββββββββββββββββββββββββββββββ */
.editor-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 40px;}
.editor-shell{background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 0 60px rgba(0,0,0,.4);}
/* Editor toolbar */
.editor-toolbar{
display:flex;align-items:center;gap:8px;flex-wrap:wrap;
padding:12px 16px;
background:var(--surface2);border-bottom:1px solid var(--border);
}
.toolbar-dots{display:flex;gap:6px;margin-right:8px;}
.td{width:12px;height:12px;border-radius:50%;}
.td-r{background:#ff5f57;}.td-y{background:#febc2e;}.td-g{background:#28c840;}
.toolbar-file{font-family:var(--fm);font-size:.68rem;color:var(--muted);margin-right:auto;letter-spacing:.5px;}
.toolbar-actions{display:flex;gap:6px;flex-wrap:wrap;}
/* CodeMirror override */
.CodeMirror{
height:400px !important;
font-family:var(--fm) !important;
font-size:clamp(12px,1.8vw,14px) !important;
line-height:1.7 !important;
background:#0b1f1c !important;
color:#d4f0ec !important;
}
.CodeMirror-scroll{padding-bottom:20px;}
.CodeMirror-linenumber{color:#2a5550 !important;font-family:var(--fm);font-size:.72rem;}
.CodeMirror-cursor{border-left-color:var(--accent) !important;}
.CodeMirror-selected{background:rgba(0,224,198,.12) !important;}
.CodeMirror-gutters{background:#091a17 !important;border-right:1px solid var(--border) !important;}
/* Editor bottom bar */
.editor-statusbar{
display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;
padding:8px 16px;background:var(--surface2);border-top:1px solid var(--border);
font-family:var(--fm);font-size:.65rem;color:var(--muted);
}
.status-left{display:flex;gap:16px;}
.status-item{display:flex;align-items:center;gap:5px;}
.status-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);}
.status-dot.saving{background:var(--gold);animation:blink 1s infinite;}
/* βββββββββββββββββββββββββββββββ
PREVIEW PANEL
βββββββββββββββββββββββββββββββ */
.preview-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 40px;}
.preview-shell{background:var(--surface);border:1px solid var(--border);border-radius:18px;overflow:hidden;}
.preview-toolbar{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--surface2);border-bottom:1px solid var(--border);}
.preview-toolbar h3{font-family:var(--fd);font-size:.92rem;font-weight:700;color:var(--text);margin-right:auto;}
.preview-bar{display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:6px 12px;flex:1;max-width:320px;}
.preview-bar span{font-family:var(--fm);font-size:.65rem;color:var(--muted);flex:1;}
.preview-dots{display:flex;gap:5px;}
#preview{
width:100%;height:clamp(300px,50vw,520px);
border:none;background:white;
display:block;
}
.preview-sizes{display:flex;gap:6px;}
/* βββββββββββββββββββββββββββββββ
PROGRESS
βββββββββββββββββββββββββββββββ */
.progress-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 24px;}
.progress-shell{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:18px 20px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.progress-label{font-family:var(--fm);font-size:.65rem;letter-spacing:2px;color:var(--accent);white-space:nowrap;}
.progress-bar-wrap{flex:1;min-width:120px;height:6px;background:var(--border);border-radius:3px;overflow:hidden;}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:3px;width:0;transition:width .6s ease;}
.progress-pct{font-family:var(--fm);font-size:.72rem;color:var(--text);white-space:nowrap;min-width:42px;text-align:right;}
.progress-tip{font-family:var(--fm);font-size:.65rem;color:var(--muted);flex-basis:100%;}
/* βββββββββββββββββββββββββββββββ
IMAGES
βββββββββββββββββββββββββββββββ */
.images-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 24px;}
.images-shell{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:18px 20px;}
.images-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap;}
.images-head h3{font-family:var(--fd);font-size:.92rem;font-weight:700;margin-right:auto;}
.drop-zone{
border:2px dashed var(--border);border-radius:10px;
padding:24px;text-align:center;
transition:border-color var(--tr),background var(--tr);
cursor:pointer;
}
.drop-zone:hover,.drop-zone.dragover{border-color:var(--accent);background:rgba(0,224,198,.04);}
.drop-zone input{display:none;}
.drop-icon{font-size:1.8rem;margin-bottom:8px;}
.drop-text{font-family:var(--fm);font-size:.72rem;color:var(--muted);letter-spacing:.5px;}
.drop-sub{font-size:.65rem;color:var(--muted);margin-top:4px;opacity:.6;}
.img-grid{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.img-thumb{position:relative;width:80px;height:80px;border-radius:8px;overflow:hidden;border:1px solid var(--border);}
.img-thumb img{width:100%;height:100%;object-fit:cover;}
.img-thumb .img-del{position:absolute;top:3px;right:3px;background:rgba(0,0,0,.7);border:none;color:white;width:18px;height:18px;border-radius:50%;font-size:.6rem;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s;}
.img-thumb:hover .img-del{opacity:1;}
.img-copy{position:absolute;bottom:3px;left:3px;right:3px;background:rgba(0,0,0,.7);border:none;color:var(--accent);font-family:var(--fm);font-size:.5rem;padding:3px;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.3px;}
.img-thumb:hover .img-copy{opacity:1;}
/* βββββββββββββββββββββββββββββββ
SUBMIT SECTION
βββββββββββββββββββββββββββββββ */
.submit-wrap{position:relative;z-index:1;max-width:1100px;margin:0 auto;padding:0 clamp(16px,5%,40px) 60px;}
.submit-shell{background:linear-gradient(135deg,var(--surface),var(--surface2));border:1px solid var(--border);border-radius:18px;padding:clamp(24px,5vw,40px);text-align:center;overflow:hidden;}
.submit-shell::before{content:'';position:absolute;top:-60px;right:-60px;width:200px;height:200px;background:radial-gradient(circle,rgba(245,197,24,.08),transparent 70%);border-radius:50%;}
.submit-eye{font-family:var(--fm);font-size:.6rem;letter-spacing:4px;color:var(--gold);margin-bottom:12px;}
.submit-shell h2{font-family:var(--fd);font-size:clamp(1.4rem,4vw,2rem);font-weight:900;letter-spacing:-1px;margin-bottom:10px;}
.submit-shell p{color:var(--muted);font-size:.9rem;max-width:480px;margin:0 auto 28px;line-height:1.65;}
.submit-checklist{display:flex;flex-direction:column;gap:8px;max-width:360px;margin:0 auto 28px;text-align:left;}
.check-item{display:flex;align-items:center;gap:10px;font-size:.85rem;}
.check-icon{font-size:1rem;flex-shrink:0;}
.check-item.done{color:var(--accent);}
.check-item.pending{color:var(--muted);}
.submit-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
/* βββββββββββββββββββββββββββββββ
FOOTER
βββββββββββββββββββββββββββββββ */
footer{border-top:1px solid var(--border);padding:24px clamp(16px,5%,40px);text-align:center;position:relative;z-index:1;}
footer p{font-family:var(--fm);font-size:.65rem;letter-spacing:1px;color:var(--muted);}
footer a{color:var(--accent);transition:opacity var(--tr);}
footer a:hover{opacity:.7;}
/* βββββββββββββββββββββββββββββββ
RESPONSIVE
βββββββββββββββββββββββββββββββ */
@media(max-width:600px){
.CodeMirror{height:320px!important;font-size:12px!important;}
#preview{height:260px;}
.editor-toolbar{padding:10px 12px;}
.toolbar-actions .btn{padding:6px 10px;font-size:.72rem;}
}
</style>
</head>
<body>
<canvas id="bgCanvas" aria-hidden="true"></canvas>
<div id="toast" role="status" aria-live="polite"></div>
<!-- SUBMIT MODAL -->
<div id="modal" role="dialog" aria-modal="true" aria-labelledby="modalTitle">
<div class="modal-box">
<button class="modal-close" onclick="closeModal()" aria-label="Close">Γ</button>
<div class="modal-icon">π</div>
<h2 id="modalTitle">Submit Your Project</h2>
<p>Fill in your details and we'll package your project for the judges. Your hard work is about to pay off!</p>
<div class="modal-fields">
<div>
<label for="submitterName">YOUR FULL NAME</label>
<input id="submitterName" type="text" placeholder="e.g. Kafeero Praise" autocomplete="name" required>
</div>
<div>
<label for="submitterSchool">SCHOOL / INSTITUTION</label>
<input id="submitterSchool" type="text" placeholder="e.g. Makerere University" autocomplete="organization">
</div>
<div>
<label for="submitterEmail">EMAIL ADDRESS</label>
<input id="submitterEmail" type="email" placeholder="you@example.com" autocomplete="email" required>
</div>
<div>
<label for="submitterTemplate">PROJECT TEMPLATE</label>
<select id="submitterTemplate">
<option value="">Select your project...</option>
<option value="personal-website">Personal Website</option>
<option value="agriculture-guide">Agriculture Guide</option>
<option value="community-health">Community Health Awareness</option>
<option value="business-directory">Local Business Directory</option>
<option value="market-prices">Market Price Board</option>
<option value="mental-health">Mental Health Awareness</option>
<option value="tourism-guide">Tourism Guide</option>
</select>
</div>
</div>
<div class="modal-btns">
<button class="btn btn-gold btn-full" onclick="finalSubmit()">π Download & Submit Project</button>
<button class="btn btn-ghost btn-full" onclick="closeModal()">Keep Editing</button>
</div>
</div>
</div>
<!-- HEADER -->
<header>
<div class="hd-left">
<img src="codeon logo.png" alt="CODEON" class="hd-logo" width="32" height="32">
<span class="hd-name">CODEON</span>
<span class="hd-badge">HACKATHON 2025</span>
</div>
<nav style="display:flex;gap:20px;">
<a href="index.html">Home</a>
<a href="community-codeon.html">Community</a>
</nav>
<div class="hd-right">
<div class="hd-timer" id="countdownTimer" aria-live="polite">β± --:--:--</div>
</div>
</header>
<!-- HERO -->
<section class="hero" aria-label="Hackathon hero">
<div class="hero-eye"><div class="hero-dot"></div>NATIONAL HACKATHON UGANDA 2025</div>
<h1>Build Real Websites.<br><span>Win at the National Level.</span></h1>
<p class="hero-sub">Choose a project, write HTML & CSS, see your work live instantly β then submit for the judges. No experience needed to start.</p>
<div class="hero-ctas">
<a href="#templates" class="btn btn-primary">Choose a Template β</a>
<a href="#editor" class="btn btn-ghost">Open Editor</a>
</div>
<div class="hero-meta">
<div class="meta-item"><div class="meta-n">7</div><div class="meta-l">TEMPLATES</div></div>
<div class="meta-item"><div class="meta-n">48h</div><div class="meta-l">TO BUILD</div></div>
<div class="meta-item"><div class="meta-n">π₯</div><div class="meta-l">PRIZES</div></div>
<div class="meta-item"><div class="meta-n">πΊπ¬</div><div class="meta-l">NATIONWIDE</div></div>
</div>
</section>
<!-- HOW IT WORKS -->
<div class="steps-wrap" aria-label="How it works">
<div class="steps-head">
<h2>How It Works</h2>
<p>Four steps from zero to submission β beginner friendly at every step.</p>
</div>
<div class="steps-grid">
<div class="step-card">
<div class="step-num">STEP 01</div>
<div class="step-icon">π</div>
<h3>Pick a Template</h3>
<p>Choose from 7 real-world project templates. Each has beginner-friendly starter code already written for you.</p>
</div>
<div class="step-card">
<div class="step-num">STEP 02</div>
<div class="step-icon">βοΈ</div>
<h3>Edit the Code</h3>
<p>Change headings, paragraphs, colors, and content. The editor highlights your code and shows errors.</p>
</div>
<div class="step-card">
<div class="step-num">STEP 03</div>
<div class="step-icon">ποΈ</div>
<h3>Preview Live</h3>
<p>Every change you make appears instantly in the preview below. What you see is what judges will see.</p>
</div>
<div class="step-card">
<div class="step-num">STEP 04</div>
<div class="step-icon">π</div>
<h3>Submit Your Work</h3>
<p>Enter your name and school, download your project file, and share it with the CODEON judges.</p>
</div>
</div>
</div>
<!-- TEMPLATE PICKER -->
<div class="picker-wrap" id="templates" aria-label="Project templates">
<div class="picker-head">
<div>
<h2>Choose Your Project</h2>
<p style="color:var(--muted);font-size:.84rem;margin-top:4px;">Click a card then click "Load into Editor" to begin</p>
</div>
</div>
<div class="templates-grid" role="list">
<div class="tpl-card" role="listitem" onclick="selectTemplate('personal-website')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('personal-website')">
<div class="tpl-emoji">π</div>
<div class="tpl-difficulty easy">β
BEGINNER</div>
<h3>Personal Website</h3>
<p>Introduce yourself online. Great first project β add your name, bio, skills, and contact info.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">CSS</span><span class="tpl-tag">BEGINNER</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('agriculture-guide')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('agriculture-guide')">
<div class="tpl-emoji">π±</div>
<div class="tpl-difficulty easy">β
BEGINNER</div>
<h3>Agriculture Guide</h3>
<p>Build a guide for Ugandan farmers with tips for maize, coffee, and bananas.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">TABLES</span><span class="tpl-tag">BEGINNER</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('community-health')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('community-health')">
<div class="tpl-emoji">π₯</div>
<div class="tpl-difficulty easy">β
BEGINNER</div>
<h3>Community Health</h3>
<p>Spread health awareness. Cover malaria prevention, clean water, and first aid tips.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">LISTS</span><span class="tpl-tag">BEGINNER</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('business-directory')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('business-directory')">
<div class="tpl-emoji">πͺ</div>
<div class="tpl-difficulty medium">β
β
INTERMEDIATE</div>
<h3>Business Directory</h3>
<p>Create a local business listing for your area with names, locations, and contacts.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">CSS</span><span class="tpl-tag">CARDS</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('market-prices')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('market-prices')">
<div class="tpl-emoji">π</div>
<div class="tpl-difficulty medium">β
β
INTERMEDIATE</div>
<h3>Market Price Board</h3>
<p>Display local market prices in a clean table. Very useful for communities in Uganda.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">TABLES</span><span class="tpl-tag">CSS</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('mental-health')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('mental-health')">
<div class="tpl-emoji">π</div>
<div class="tpl-difficulty easy">β
BEGINNER</div>
<h3>Mental Health Awareness</h3>
<p>Build a page to reduce stigma and share support resources for mental health in Uganda.</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">LISTS</span><span class="tpl-tag">BEGINNER</span></div>
</div>
<div class="tpl-card" role="listitem" onclick="selectTemplate('tourism-guide')" tabindex="0" onkeydown="if(event.key==='Enter')selectTemplate('tourism-guide')">
<div class="tpl-emoji">π¦</div>
<div class="tpl-difficulty medium">β
β
INTERMEDIATE</div>
<h3>Uganda Tourism Guide</h3>
<p>Showcase Uganda's parks, waterfalls, culture and food to the world. Make Uganda shine!</p>
<div class="tpl-tags"><span class="tpl-tag">HTML</span><span class="tpl-tag">CSS</span><span class="tpl-tag">PHOTOS</span></div>
</div>
</div>
<div style="margin-top:20px;display:flex;gap:10px;flex-wrap:wrap;">
<button class="btn btn-primary" onclick="loadSelectedTemplate()" id="loadBtn" disabled>Load into Editor β</button>
<button class="btn btn-ghost" onclick="clearEditor()">Clear Editor</button>
</div>
</div>
<!-- PROGRESS BAR -->
<div class="progress-wrap">
<div class="progress-shell">
<div class="progress-label">YOUR PROGRESS</div>
<div class="progress-bar-wrap"><div class="progress-fill" id="progressFill"></div></div>
<div class="progress-pct" id="progressPct">0%</div>
<div class="progress-tip" id="progressTip">Load a template to start tracking your edits</div>
</div>
</div>
<!-- EDITOR -->
<div class="editor-wrap" id="editor">
<div class="editor-shell">
<div class="editor-toolbar">
<div class="toolbar-dots" aria-hidden="true">
<div class="td td-r"></div><div class="td td-y"></div><div class="td td-g"></div>
</div>
<div class="toolbar-file" id="toolbarFile">index.html β no template loaded</div>
<div class="toolbar-actions">
<button class="btn btn-ghost btn-sm" onclick="formatCode()" title="Auto-format your HTML">β Format</button>
<button class="btn btn-ghost btn-sm" onclick="undoCode()" title="Undo last change">β© Undo</button>
<button class="btn btn-ghost btn-sm" onclick="copyCode()" title="Copy all code">β Copy</button>
<button class="btn btn-ghost btn-sm" onclick="clearEditor()" title="Clear editor">β Clear</button>
<button class="btn btn-primary btn-sm" onclick="openModal()" title="Submit your project">π Submit</button>
</div>
</div>
<!-- CodeMirror mounts here -->
<textarea id="codeEditor"></textarea>
<div class="editor-statusbar">
<div class="status-left">
<div class="status-item"><div class="status-dot" id="statusDot"></div><span id="statusText">Ready</span></div>
<div class="status-item"><span id="lineCount">Lines: 0</span></div>
<div class="status-item"><span id="charCount">Chars: 0</span></div>
</div>
<div style="display:flex;gap:16px;font-size:.6rem;color:var(--muted);">
<span>HTML Mixed</span>
<span>UTF-8</span>
<span>CODEON Editor</span>
</div>
</div>
</div>
</div>
<!-- IMAGE UPLOAD -->
<div class="images-wrap">
<div class="images-shell">
<div class="images-head">
<h3>πΈ Add Images to Your Project</h3>
<button class="btn btn-ghost btn-sm" onclick="document.getElementById('fileInput').click()">+ Upload Images</button>
</div>
<p style="color:var(--muted);font-size:.82rem;margin-bottom:14px;">Upload images, then click "Copy Tag" on any image to paste an <code style="color:var(--accent);font-family:var(--fm);"><img></code> tag into your editor.</p>
<div class="drop-zone" id="dropZone" onclick="document.getElementById('fileInput').click()">
<input type="file" id="fileInput" accept="image/*" multiple>
<div class="drop-icon">πΌοΈ</div>
<div class="drop-text">Click to upload or drag & drop images here</div>
<div class="drop-sub">PNG, JPG, GIF, WebP supported Β· Multiple files OK</div>
</div>
<div class="img-grid" id="imgGrid"></div>
</div>
</div>
<!-- LIVE PREVIEW -->
<div class="preview-wrap">
<div class="preview-shell">
<div class="preview-toolbar">
<h3>π Live Preview</h3>
<div class="preview-bar">
<span id="previewUrl">codeon://your-project/index.html</span>
</div>
<div class="preview-sizes">
<button class="btn btn-ghost btn-sm" onclick="setPreviewSize('100%','auto')" title="Desktop view">π₯</button>
<button class="btn btn-ghost btn-sm" onclick="setPreviewSize('768px','auto')" title="Tablet view">π±</button>
<button class="btn btn-ghost btn-sm" onclick="setPreviewSize('375px','auto')" title="Mobile view">π²</button>
<button class="btn btn-ghost btn-sm" onclick="refreshPreview()" title="Refresh preview">βΊ</button>
</div>
</div>
<div style="overflow:auto;display:flex;justify-content:center;background:#1a1a1a;min-height:200px;">
<iframe id="preview" title="Live preview of your project" sandbox="allow-scripts allow-same-origin"></iframe>
</div>
</div>
</div>
<!-- SUBMIT SECTION -->
<div class="submit-wrap">
<div class="submit-shell">
<div class="submit-eye">READY TO COMPETE?</div>
<h2>Submit Your Hackathon Project</h2>
<p>Before you submit, make sure you've customized the content, tested on mobile view, and added at least one image if possible.</p>
<div class="submit-checklist" id="submitChecklist">
<div class="check-item pending" id="chk-template"><span class="check-icon">β¬</span> Template loaded</div>
<div class="check-item pending" id="chk-edited"><span class="check-icon">β¬</span> Code has been edited</div>
<div class="check-item pending" id="chk-image"><span class="check-icon">β¬</span> At least one image added</div>
<div class="check-item pending" id="chk-preview"><span class="check-icon">β¬</span> Preview looks good</div>
</div>
<div class="submit-actions">
<button class="btn btn-gold" onclick="openModal()">π Submit My Project</button>
<button class="btn btn-ghost" onclick="previewFullscreen()">π Full Preview</button>
</div>
</div>
</div>
<footer>
<p>Β© 2025 <a href="index.html">CODEON Africa</a> Β· National Hackathon Uganda Β· Built with β€οΈ in Uganda πΊπ¬</p>
</footer>
<script>
/* βββββββββββββββββββββββββββββββββββββββ
TEMPLATES
βββββββββββββββββββββββββββββββββββββββ */
const TEMPLATES = {
'personal-website': {
name: 'Personal Website',
file: 'personal_website.html',
code: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Personal Website</title>
<style>
/* ββ Change these colors to make it yours! ββ */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
header {
background-color: #2c5364;
color: white;
padding: 40px 20px;
text-align: center;
}
header h1 { font-size: 2.5rem; margin-bottom: 8px; }
header p { font-size: 1.1rem; opacity: 0.85; }
main { max-width: 800px; margin: 30px auto; padding: 0 20px; }
section { background: white; border-radius: 10px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
h2 { color: #2c5364; border-bottom: 2px solid #00bfae; padding-bottom: 8px; }
ul { list-style: none; padding: 0; }
ul li { padding: 6px 0; border-bottom: 1px solid #eee; }
ul li::before { content: "β "; color: #00bfae; font-weight: bold; }
.contact a { color: #2c5364; font-weight: bold; }
footer { text-align: center; padding: 20px; color: #888; font-size: 0.85rem; }
</style>
</head>
<body>
<header>
<!-- βοΈ CHANGE: Replace with your name and tagline -->
<h1>Your Name Here</h1>
<p>Student | Coder | Future Developer</p>
</header>
<main>
<section>
<h2>About Me</h2>
<!-- βοΈ CHANGE: Write a short paragraph about yourself -->
<p>Hello! I am a student from Uganda learning to build websites. I love technology and want to use it to solve problems in my community.</p>
</section>
<section>
<h2>My Skills</h2>
<!-- βοΈ CHANGE: Update this list with your real skills -->
<ul>
<li>HTML - Web Structure</li>
<li>CSS - Styling Websites</li>
<li>Problem Solving</li>
<li>Teamwork</li>
</ul>
</section>
<section>
<h2>My Projects</h2>
<!-- βοΈ CHANGE: Describe a project you are proud of -->
<p><strong>CODEON Hackathon:</strong> I built this personal website as part of the CODEON National Hackathon Uganda 2025.</p>
</section>
<section class="contact">
<h2>Contact Me</h2>
<!-- βοΈ CHANGE: Add your real contact details -->
<p>π§ Email: <a href="mailto:your.email@example.com">your.email@example.com</a></p>
<p>π Location: Kampala, Uganda</p>
</section>
</main>
<footer>
<p>Built for the CODEON National Hackathon Uganda 2025 πΊπ¬</p>
</footer>
</body>
</html>`
},
'agriculture-guide': {
name: 'Agriculture Guide',
file: 'agriculture_guide.html',
code: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Uganda Agriculture Guide</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; background: #f9f6f0; color: #333; }
header { background: #2d6a2d; color: white; padding: 36px 20px; text-align: center; }
header h1 { font-size: 2rem; margin-bottom: 6px; }
header p { opacity: 0.85; }
main { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.crop { background: white; border-radius: 10px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); border-left: 5px solid #4CAF50; }
h2 { color: #2d6a2d; margin-bottom: 6px; }
.tip-box { background: #e8f5e9; border-radius: 8px; padding: 12px 16px; margin-top: 12px; }
.tip-box strong { color: #2d6a2d; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th { background: #2d6a2d; color: white; padding: 10px; text-align: left; }
td { padding: 10px; border-bottom: 1px solid #eee; }
tr:nth-child(even) { background: #f1f8f1; }
footer { text-align: center; padding: 20px; color: #666; font-size: 0.85rem; }
</style>
</head>
<body>
<header>
<!-- βοΈ CHANGE: Update the title for your region or village -->
<h1>π± Uganda Agriculture Guide</h1>
<p>Practical tips for Ugandan farmers β maize, coffee, bananas and more</p>
</header>
<main>
<div class="crop">
<h2>π½ Maize (Kasooli)</h2>
<!-- βοΈ CHANGE: Add more tips you know about maize farming -->
<p>Maize is one of Uganda's most important food crops. It grows best in well-drained soils with moderate rainfall.</p>
<div class="tip-box">
<strong>πΎ Planting Tips:</strong>
<ul>
<li>Plant at start of rainy season (March or October)</li>
<li>Space seeds 75cm apart in rows</li>
<li>Add compost or fertiliser at planting</li>
<li>Harvest when husks turn brown (90β120 days)</li>
</ul>
</div>
</div>
<div class="crop">
<h2>β Coffee (Kawawa)</h2>
<!-- βοΈ CHANGE: Add your own coffee farming knowledge -->
<p>Uganda is one of Africa's top coffee exporters. Robusta coffee grows best in humid lowland areas.</p>
<div class="tip-box">
<strong>β Growing Tips:</strong>
<ul>
<li>Plant in shade of banana or other trees</li>
<li>Water regularly during dry spells</li>
<li>Prune old branches each year after harvest</li>
<li>Harvest red cherries only β do not pick green ones</li>
</ul>
</div>
</div>
<div class="crop">
<h2>π Matooke (Bananas)</h2>
<!-- βοΈ CHANGE: Add facts about banana farming in your area -->
<p>Matooke is Uganda's national dish and a vital crop for millions of families across the country.</p>
<div class="tip-box">
<strong>π Care Tips:</strong>
<ul>
<li>Remove dry leaves regularly</li>
<li>Watch for banana wilt disease (yellowing leaves)</li>
<li>Plant suckers from healthy plants only</li>
<li>Mulch heavily to keep soil moist</li>
</ul>
</div>
</div>
<div class="crop">
<h2>π Seasonal Calendar</h2>
<!-- βοΈ CHANGE: Update months based on your region's rainfall -->
<table>
<tr><th>Month</th><th>Activity</th><th>Crops</th></tr>
<tr><td>March β April</td><td>First planting season</td><td>Maize, Beans, Groundnuts</td></tr>
<tr><td>June β July</td><td>Harvest + dry season</td><td>Maize, Sorghum</td></tr>
<tr><td>September</td><td>Second planting season</td><td>Maize, Vegetables</td></tr>
<tr><td>December</td><td>Second harvest</td><td>Beans, Sweet Potatoes</td></tr>
</table>
</div>
</main>
<footer><p>Built for the CODEON National Hackathon Uganda 2025 πΊπ¬</p></footer>
</body>
</html>`
},
'community-health': {
name: 'Community Health Awareness',
file: 'community_health.html',
code: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Community Health Awareness Uganda</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; background: #f0f8ff; color: #333; }
header { background: #1565c0; color: white; padding: 36px 20px; text-align: center; }
header h1 { font-size: 2rem; margin-bottom: 6px; }
main { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.health-card { background: white; border-radius: 10px; padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.health-card h2 { color: #1565c0; display: flex; align-items: center; gap: 10px; }
.alert { background: #fff3e0; border-left: 4px solid #ff9800; padding: 12px 16px; border-radius: 6px; margin-top: 12px; }
.tip { background: #e8f5e9; border-left: 4px solid #4caf50; padding: 12px 16px; border-radius: 6px; margin-top: 10px; }
ul { padding-left: 20px; }
ul li { padding: 5px 0; }
.emergency { background: #ffebee; border: 2px solid #f44336; border-radius: 10px; padding: 20px; text-align: center; margin-top: 20px; }
.emergency h2 { color: #c62828; }
.emergency .number { font-size: 2rem; font-weight: bold; color: #c62828; }
footer { text-align: center; padding: 20px; color: #666; font-size: 0.85rem; }
</style>
</head>
<body>
<header>
<!-- βοΈ CHANGE: Add your community or village name -->
<h1>π₯ Community Health Awareness</h1>
<p>Keeping Uganda healthy β one family at a time</p>
</header>
<main>
<div class="health-card">
<h2>π¦ Malaria Prevention</h2>
<!-- βοΈ CHANGE: Add tips specific to your area -->
<p>Malaria is the leading cause of illness in Uganda. It is spread by mosquito bites β but it is 100% preventable.</p>
<div class="tip">
<strong>β
How to prevent malaria:</strong>
<ul>
<li>Sleep under a treated mosquito net every night</li>
<li>Remove all stagnant water around your home</li>
<li>Keep windows and doors closed at dusk</li>
<li>Visit a health centre if you get a fever</li>
</ul>
</div>
</div>
<div class="health-card">
<h2>π§ Clean Water & Hygiene</h2>
<p>Dirty water causes cholera, typhoid and diarrhoea. Clean water saves lives.</p>
<div class="tip">
<strong>β
Safe water tips:</strong>
<ul>
<li>Always boil or filter drinking water</li>
<li>Wash hands with soap before eating and after toilet</li>
<li>Cover water storage containers</li>
<li>Keep toilets clean and away from water sources</li>
</ul>
</div>
<div class="alert">
<strong>β οΈ Warning signs of waterborne disease:</strong> Vomiting, diarrhoea, stomach pain, fever β go to a health centre immediately.
</div>
</div>
<div class="health-card">
<h2>π€± Maternal & Child Health</h2>
<!-- βοΈ CHANGE: Add resources available in your area -->
<p>Uganda has made great progress in reducing child deaths. Routine check-ups make a huge difference.</p>
<div class="tip">
<strong>β
Key actions:</strong>
<ul>
<li>Attend all antenatal care visits during pregnancy</li>
<li>Vaccinate children on the national schedule</li>
<li>Breastfeed exclusively for the first 6 months</li>
<li>Monitor child growth at health centres</li>
</ul>
</div>
</div>
<div class="health-card">
<h2>π©Ή Basic First Aid</h2>
<ul>
<li><strong>Cuts:</strong> Clean with clean water, apply pressure, cover with clean cloth</li>
<li><strong>Burns:</strong> Cool with running water for 10 minutes. Do NOT use butter or toothpaste.</li>
<li><strong>Choking:</strong> Give 5 firm back blows. Call for help immediately.</li>
<li><strong>Fever:</strong> Give paracetamol, drink fluids, seek care if it worsens.</li>
</ul>
</div>
<div class="emergency">
<h2>π¨ Emergency Numbers Uganda</h2>
<!-- βοΈ CHANGE: Add local health centre contacts for your area -->
<p>National Emergency Line:</p>
<div class="number">999 / 112</div>
<p style="margin-top:10px;">Uganda Red Cross: <strong>0800 199 699</strong></p>
</div>
</main>
<footer><p>Built for the CODEON National Hackathon Uganda 2025 πΊπ¬</p></footer>
</body>
</html>`
},
'business-directory': {
name: 'Local Business Directory',
file: 'business_directory.html',
code: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Local Business Directory Uganda</title>
<style>
body { font-family: Arial, sans-serif; margin: 0; background: #fafafa; color: #333; }
header { background: #4a148c; color: white; padding: 36px 20px; text-align: center; }
header h1 { font-size: 2rem; margin-bottom: 6px; }
main { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.search-bar { display: flex; gap: 10px; margin-bottom: 24px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 2px solid #ddd; border-radius: 8px; font-size: 1rem; }
.categories { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-btn { padding: 6px 16px; border: 1px solid #ccc; border-radius: 100px; background: white; cursor: pointer; font-size: .85rem; transition: all .2s; }
.cat-btn:hover { background: #4a148c; color: white; border-color: #4a148c; }
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.biz-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.08); border-top: 4px solid #4a148c; transition: transform .2s; }
.biz-card:hover { transform: translateY(-4px); }
.biz-name { font-size: 1.1rem; font-weight: bold; color: #4a148c; margin-bottom: 4px; }
.biz-cat { font-size: .78rem; color: #888; margin-bottom: 10px; }
.biz-info { font-size: .88rem; line-height: 1.8; }