-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.htm
More file actions
935 lines (837 loc) · 45.3 KB
/
index.htm
File metadata and controls
935 lines (837 loc) · 45.3 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
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<!-- SEO Meta Tags -->
<title>JThweb | Student Developer & Tech Enthusiast</title>
<meta name="description" content="The portfolio of JThweb (Jonathan Oommen Easow), a grade 10 student and developer who loves tinkering with technology and building cool projects.">
<meta name="keywords" content="JThweb, Jonathan Oommen Easow, Jonathan, Student Developer, Tech Enthusiast, Portfolio, Web Developer, Python, Node.js, React, High School Developer, software developer, full-stack developer, machine learning">
<meta name="author" content="JThweb (Jonathan Oommen Easow)">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://jthweb.is-a.dev/">
<meta property="og:title" content="JThweb | Jonathan Oommen Easow - Student Developer & Tech Enthusiast">
<meta property="og:description" content="Discover the projects and skills of JThweb (Jonathan Oommen Easow), a grade 10 student and developer with a passion for technology.">
<meta property="og:image" content="https://jthweb.is-a.dev/logo.gif">
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://jthweb.is-a.dev/">
<meta property="twitter:title" content="JThweb | Jonathan Oommen Easow - Student Developer & Tech Enthusiast">
<meta property="twitter:description" content="Discover the projects and skills of JThweb (Jonathan Oommen Easow), a grade 10 student and developer with a passion for technology.">
<meta property="twitter:image" content="https://jthweb.is-a.dev/logo.gif">
<!-- Favicon -->
<link rel="icon" href="logo.gif" type="image/gif">
<!-- Sitemap (helps search engines discover pages) -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="https://jthweb.is-a.dev/sitemap.xml">
<!-- Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "ProfilePage",
"mainEntity": {
"@type": "Person",
"name": "Jonathan Oommen Easow",
"alternateName": "JThweb",
"url": "https://jthweb.is-a.dev/",
"image": "https://jthweb.is-a.dev/logo.gif",
"jobTitle": "Student Developer",
"worksFor": {
"@type": "Organization",
"name": "JThweb"
},
"alumniOf": "High School",
"knowsAbout": ["Python", "Node.js", "React", "Web Development", "Software Development", "Machine Learning", "Technology"],
"description": "A grade 10 student and developer with a passion for technology."
}
}
</script>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Font Awesome for general icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<!-- three.js for 3D animation -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
/* --- Color & Theme Variables --- */
:root {
--primary: #0078d4;
--secondary: #107c10;
--accent: #744da9;
--bg-primary: #ffffff;
--bg-secondary: #f5f5f5;
--text-primary: #242424;
--text-secondary: #616161;
--border-color: #e1e1e1;
--shadow-color: rgba(0, 0, 0, 0.1);
}
html.dark {
--primary: #2899f5;
--secondary: #1db954;
--accent: #9b72d9;
--bg-primary: #121212;
--bg-secondary: #1e1e1e;
--text-primary: #f5f5f5;
--text-secondary: #a0a0a0;
--border-color: #333333;
--shadow-color: rgba(0, 0, 0, 0.4);
}
/* --- Base Styles --- */
html {
scroll-behavior: smooth;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
transition: background-color 0.3s ease, color 0.3s ease;
overflow-x: hidden;
/* Hide default cursor */
cursor: none;
}
/* --- Custom Animated Cursor --- */
#custom-cursor {
position: fixed;
width: 16px; /* Smaller base size */
height: 16px;
border-radius: 50%;
background-color: var(--primary); /* Cursor color */
pointer-events: none; /* Important: allows clicking elements underneath */
transform: translate(-50%, -50%); /* Center the cursor */
transition: width 0.2s ease, height 0.2s ease, background-color 0.3s ease, opacity 0.3s ease, border 0.2s ease;
z-index: 9999; /* Ensure it's on top */
opacity: 0.8;
border: 2px solid transparent; /* Initial transparent border */
}
body:hover #custom-cursor {
opacity: 1;
}
body:active #custom-cursor {
width: 24px; /* Larger on click */
height: 24px;
opacity: 0.9;
border: 2px solid var(--accent); /* Accent border on click */
}
/* Hover over interactive elements to change cursor */
a:hover #custom-cursor, button:hover #custom-cursor, .stat-bubble:hover #custom-cursor, .section-card:hover #custom-cursor {
width: 20px; /* Slightly larger on hover over interactive elements */
height: 20px;
opacity: 1;
border: 2px solid var(--primary); /* Primary border on hover */
}
/* --- 3D Canvas --- */
#bg-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0; /* Starts hidden, fades in with JS */
transition: opacity 1s ease-in;
}
/* --- Header --- */
header {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
background-color: color-mix(in srgb, var(--bg-primary) 80%, transparent);
border-bottom: 1px solid var(--border-color);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* --- General Components --- */
.section-card {
background-color: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
box-shadow: 0 4px 20px var(--shadow-color);
transition: all 0.3s ease;
}
.section-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px var(--shadow-color);
}
.progress-bar-container {
background-color: color-mix(in srgb, var(--bg-primary) 50%, transparent);
border-radius: 8px;
overflow: hidden;
}
.progress-bar {
height: 8px;
border-radius: 8px;
background: linear-gradient(90deg, var(--primary), var(--accent));
transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
width: 0; /* Initial width */
}
.tool-icon {
width: 24px;
height: 24px;
margin-right: 12px;
object-fit: contain;
}
/* --- Theme Toggle Switch --- */
.theme-switch-wrapper {
display: flex;
align-items: center;
}
.theme-switch {
display: inline-block;
height: 24px;
position: relative;
width: 44px;
}
.theme-switch input {
display:none;
}
.slider {
background-color: #ccc;
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: .4s;
border-radius: 24px;
}
.slider:before {
background-color: #fff;
bottom: 2px;
content: "";
height: 20px;
left: 2px;
position: absolute;
transition: .4s;
width: 20px;
border-radius: 50%;
}
input:checked + .slider {
background-color: var(--primary);
}
input:checked + .slider:before {
transform: translateX(20px);
}
/* --- GitHub Stats --- */
.github-stats-img {
border-radius: 8px;
border: 1px solid var(--border-color);
width: 100%;
height: auto;
object-fit: cover;
background-color: var(--bg-secondary);
}
/* --- Animations --- */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.opacity-0 { opacity: 0; }
/* Project thumbnail styling - REMOVED */
/* .project-thumbnail {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 8px;
margin-bottom: 1rem;
border: 1px solid var(--border-color);
background-color: var(--bg-primary);
} */
/* Glassmorphism effect for individual Hero stats */
.stat-bubble {
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
background-color: color-mix(in srgb, var(--bg-primary) 20%, transparent); /* Lighter for light, darker for dark */
border: 1px solid var(--border-color); /* Use existing border color */
border-radius: 9999px; /* For oval/pill shape */
padding: 0.5rem 1rem; /* Adjust padding */
box-shadow: 0 2px 4px var(--shadow-color);
transition: all 0.3s ease; /* Added transition for hover effect */
}
html.dark .stat-bubble {
background-color: color-mix(in srgb, var(--bg-primary) 30%, transparent);
border: 1px solid var(--border-color);
}
/* Hover effect for stat bubbles */
.stat-bubble:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px var(--shadow-color);
}
/* Button Animations */
.animated-button {
position: relative; /* Needed for shine effect */
overflow: hidden; /* Hide overflow for shine */
transition: all 0.2s ease-in-out;
transform: scale(1);
z-index: 1; /* Ensure button is above shine */
}
.animated-button:hover {
transform: scale(1.05);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.animated-button:active {
transform: scale(0.95);
box-shadow: none;
}
/* Shine effect for buttons */
.animated-button::before {
content: '';
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: rgba(255, 255, 255, 0.3); /* White shine */
transform: skewX(-20deg);
transition: all 0.7s ease;
z-index: 2;
}
.animated-button:hover::before {
left: 125%;
}
/* Specific styles for primary button */
.animated-button.primary {
background-color: var(--primary);
color: white;
}
.animated-button.primary:hover {
background-color: color-mix(in srgb, var(--primary) 90%, black);
}
/* Specific styles for secondary button */
.animated-button.secondary {
background-color: var(--bg-secondary);
border: 1px solid var(--border-color);
color: var(--text-primary);
}
.animated-button.secondary:hover {
background-color: color-mix(in srgb, var(--bg-secondary) 90%, black);
border-color: color-mix(in srgb, var(--border-color) 90%, black);
}
/* --- Footer --- */
footer {
background-color: var(--bg-secondary);
border-top: 1px solid var(--border-color);
transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Intro Loader */
#intro-loader {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
background-color: var(--bg-primary); /* Use primary background color */
color: var(--text-primary);
transition: opacity 1s ease-out, visibility 1s ease-out;
}
#intro-loader.fade-out {
opacity: 0;
visibility: hidden;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.05); }
}
.animate-pulse-loader {
animation: pulse 1.5s infinite;
}
#main-content {
opacity: 0;
display: none; /* Initially hidden */
transition: opacity 1s ease-in;
}
#main-content.show {
opacity: 1;
display: block; /* Show when 'show' class is added */
}
</style>
</head>
<body class="antialiased">
<!-- Custom Animated Cursor -->
<div id="custom-cursor"></div>
<!-- Intro Loader -->
<div id="intro-loader">
<!-- Replace with your actual logo.gif URL -->
<img src="logo.gif" onerror="this.onerror=null;this.src='https://placehold.co/100x100/0078d4/ffffff?text=LOGO';" alt="JThweb Loading" class="animate-pulse-loader">
</div>
<!-- 3D Background Canvas -->
<canvas id="bg-canvas"></canvas>
<!-- Main Content Wrapper (initially hidden) -->
<div id="main-content">
<!-- Header -->
<header class="sticky top-0 z-50 w-full">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<a href="#" class="text-2xl font-bold flex items-center" style="color: var(--primary);">
<!-- Replace with your actual logo.gif URL -->
<img src="logo.gif" onerror="this.onerror=null;this.src='https://placehold.co/40x40/0078d4/ffffff?text=LOGO';" alt="JThweb Logo" class="h-8 w-8 mr-2 rounded-full">
JThweb
</a>
<nav class="hidden md:flex items-center space-x-8">
<a href="#about" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">About</a>
<a href="#skills" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">Skills</a>
<a href="#stats" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">Stats</a>
<a href="#projects" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">Projects</a>
<a href="/Radar/" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">Radar</a>
<a href="#contact" class="font-medium text-gray-500 hover:text-[var(--primary)] transition">Contact</a>
<button onclick="handleFollow()" class="font-medium text-gray-500 hover:text-[var(--primary)] transition flex items-center">
<i class="fab fa-github mr-2"></i> Follow
</button>
<a href="https://ko-fi.com/jthweb" target="_blank" rel="noopener noreferrer" class="font-medium text-gray-500 hover:text-[var(--primary)] transition flex items-center justify-center">
<i class="far fa-heart mr-2"></i> Sponsor
</a>
</nav>
<div class="flex items-center space-x-4">
<!-- Theme Toggle -->
<div class="theme-switch-wrapper">
<i class="fas fa-sun mr-2 text-yellow-500"></i>
<label class="theme-switch" for="theme-toggle">
<input type="checkbox" id="theme-toggle" />
<span class="slider"></span>
</label>
<i class="fas fa-moon ml-2 text-gray-400"></i>
</div>
<!-- Mobile Menu Button -->
<div class="md:hidden">
<button id="mobile-menu-button" class="text-gray-500 hover:text-[var(--primary)] focus:outline-none">
<i class="fas fa-bars text-2xl"></i>
</button>
</div>
</div>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobile-menu" class="hidden md:hidden p-4" style="background-color: var(--bg-secondary);">
<a href="#about" class="block py-2 text-center text-[var(--text-primary)]">About</a>
<a href="#skills" class="block py-2 text-center text-[var(--text-primary)]">Skills</a>
<a href="#stats" class="block py-2 text-center text-[var(--text-primary)]">Stats</a>
<a href="#projects" class="block py-2 text-center text-[var(--text-primary)]">Projects</a>
<a href="/Radar/" class="block py-2 text-center text-[var(--text-primary)]">Radar</a>
<a href="#contact" class="block py-2 text-center text-[var(--text-primary)]">Contact</a>
<button onclick="handleFollow()" class="block w-full py-2 text-center text-[var(--text-primary)] flex items-center justify-center">
<i class="fab fa-github mr-2"></i> Follow on GitHub
</button>
<a href="https://ko-fi.com/jthweb" target="_blank" rel="noopener noreferrer" class="block py-2 text-center text-[var(--text-primary)] flex items-center justify-center">
<i class="far fa-heart mr-2"></i> Sponsor
</a>
</div>
</header>
<main class="container mx-auto px-4 sm:px-6 lg:px-8 py-12 relative z-10">
<!-- Hero Section -->
<section id="hero" class="text-center min-h-[70vh] flex flex-col justify-center items-center my-16 lg:my-0 opacity-0">
<div>
<!-- Replace with your actual logo.gif URL -->
<img src="logo.gif" onerror="this.onerror=null;this.src='https://placehold.co/128x128/0078d4/ffffff?text=LOGO';" alt="Jonathan's Profile" class="w-32 h-32 rounded-full mx-auto mb-6 border-4" style="border-color: var(--bg-secondary); box-shadow: 0 0 25px var(--shadow-color);">
<h1 class="text-4xl md:text-6xl font-bold mb-2">Jonathan</h1>
<p class="text-xl md:text-2xl mb-4" style="color: var(--text-secondary);">Grade 10 Student & Aspiring Developer</p>
<p class="text-lg md:text-xl mb-6 max-w-2xl mx-auto" style="color: var(--text-primary);">
Hey there! I'm Jonathan, a grade 10 student who loves tinkering with tech. I'm passionate about coding and building cool, useful applications.
</p>
<!-- Individual glassy effect for stats -->
<div class="mt-8 mb-8 flex flex-wrap justify-center gap-4 md:gap-8 text-sm md:text-base">
<div class="flex items-center gap-2 stat-bubble"><i class="fa-solid fa-fire text-[var(--primary)]"></i><span>2000+ Contributions</span></div>
<div class="flex items-center gap-2 stat-bubble"><i class="fa-solid fa-star text-yellow-500"></i><span id="total-stars">-- Stars</span></div>
<div class="flex items-center gap-2 stat-bubble"><i class="fas fa-code text-[var(--primary)]"></i><span id="total-projects">-- Projects</span></div>
<div class="flex items-center gap-2 stat-bubble"><i class="fab fa-github-alt text-[var(--primary)]"></i><span>GitHub Pro</span></div>
<div class="flex items-center gap-2 stat-bubble"><i class="fas fa-users-cog text-[var(--accent)]"></i><span>Developer Program Member</span></div>
</div>
<div class="flex flex-col sm:flex-row justify-center items-center space-y-4 sm:space-y-0 sm:space-x-4 mt-8">
<a href="#contact" class="px-6 py-3 rounded-lg font-semibold animated-button secondary">Get in Touch</a>
<button onclick="handleFollowAndStarAll()" class="px-6 py-3 rounded-lg font-semibold animated-button primary">
<i class="fas fa-star mr-2"></i> Follow me & Star All ⭐
</button>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="my-24 scroll-mt-16 opacity-0">
<div class="section-card max-w-4xl mx-auto">
<h2 class="text-3xl font-bold text-center mb-6">About Me</h2>
<p class="text-lg text-center" style="color: var(--text-secondary);">
I'm a high school student with a deep passion for technology and development. I enjoy learning how things work and using code to build my own solutions, from simple scripts to full-stack web applications. When I'm not at my computer, I'm probably exploring new gadgets, catching up on the latest news, or brainstorming my next project.
</p>
</div>
</section>
<!-- Skills Section -->
<section id="skills" class="my-24 scroll-mt-16 opacity-0">
<div class="section-card max-w-4xl mx-auto">
<h2 class="text-3xl font-bold text-center mb-12">Languages & Tools</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-x-12 gap-y-8 mb-12">
<!-- Manual Skills List -->
<div class="space-y-6">
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/c/c3/Python-logo-notext.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=PY';" alt="Python Logo" class="tool-icon">
<span class="font-semibold">Python</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 80%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/d/d9/Node.js_logo.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=JS';" alt="Node.js Logo" class="tool-icon">
<span class="font-semibold">Node.js</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 5%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/6/61/HTML5_logo_and_wordmark.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=HTML';" alt="HTML5 Logo" class="tool-icon">
<span class="font-semibold">HTML5</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 76%;"></div></div>
</div>
<!--<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/4/4c/Typescript_logo_2020.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=TS';" alt="TypeScript Logo" class="tool-icon">
<span class="font-semibold">TypeScript</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 80%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=React';" alt="React Logo" class="tool-icon">
<span class="font-semibold">React</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 88%;"></div></div>
</div>
</div>-->
<div class="space-y-6">
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/PyCharm_Icon.svg/1024px-PyCharm_Icon.svg.png" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=PyCharm';" alt="PyCharm Logo" class="tool-icon">
<span class="font-semibold">PyCharm</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 90%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/91/Octicons-mark-github.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=GH';" alt="GitHub Logo" class="tool-icon">
<span class="font-semibold">GitHub</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 85%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Github-copilot-logo.svg/1200px-Github-copilot-logo.svg.png" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=CP';" alt="GitHub Copilot Logo" class="tool-icon">
<span class="font-semibold">GitHub Copilot</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 100%;"></div></div>
</div>
<!--<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/3/33/Figma-logo.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=Figma';" alt="Figma Logo" class="tool-icon">
<span class="font-semibold">Figma</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 75%;"></div></div>
</div>
<div class="skill-item">
<div class="flex items-center mb-2">
<img src="https://upload.wikimedia.org/wikipedia/commons/9/93/Amazon_Web_Services_Logo.svg" onerror="this.onerror=null;this.src='https://placehold.co/24x24/cccccc/333333?text=AWS';" alt="AWS Logo" class="tool-icon">
<span class="font-semibold">AWS</span>
</div>
<div class="progress-bar-container"><div class="progress-bar" style="width: 70%;"></div></div>
</div>-->
</div>
</div>
<!-- GitHub Top Languages Card -->
<div class="text-center">
<h3 class="text-2xl font-bold mb-6">Top Languages on GitHub</h3>
<img id="github-top-langs" src="" alt="JThweb's Top Languages" class="github-stats-img max-w-lg mx-auto" />
</div>
</div>
</section>
<!-- GitHub Stats Section -->
<section id="stats" class="my-24 scroll-mt-16 opacity-0">
<div class="section-card max-w-5xl mx-auto">
<h2 class="text-3xl font-bold text-center mb-12">GitHub Stats</h2>
<div class="space-y-8">
<img id="github-contributions" src="" alt="JThweb's GitHub Contributions" class="github-stats-img w-full" />
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-start">
<img id="github-stats-card" src="" alt="JThweb's GitHub Stats" class="github-stats-img" />
<!-- GitHub Streak Stats -->
<img id="github-streak-stats" src="" alt="JThweb's GitHub Streak Stats" class="github-stats-img" />
</div>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="my-24 scroll-mt-16 opacity-0">
<div class="section-card max-w-7xl mx-auto">
<h2 class="text-3xl font-bold text-center mb-4">Featured Projects</h2>
<p id="project-count-display" class="text-center text-lg" style="color: var(--text-secondary);">
Showing 8 of <span id="total-repo-count" class="font-semibold">--</span> repositories.
</p>
<div id="projects-grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8 mt-8">
<!-- Projects will be dynamically inserted here -->
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="my-24 scroll-mt-16 opacity-0">
<div class="section-card text-center max-w-2xl mx-auto">
<h2 class="text-3xl font-bold mb-4">Get In Touch</h2>
<p class="mb-8" style="color: var(--text-secondary);">I'm always open to discussing new projects, creative ideas, or opportunities. Feel free to reach out!</p>
<a href="mailto:jthweb@duck.com" class="inline-block px-8 py-3 rounded-lg font-semibold animated-button primary">
<i class="fas fa-envelope mr-2"></i> Say Hello
</a>
</div>
</section>
</main>
<footer class="text-center py-8" style="color: var(--text-secondary);">
<div class="mb-4">
<a href="https://github.com/jthweb" target="_blank" rel="noopener noreferrer" class="text-2xl hover:text-[var(--primary)] transition">
<i class="fab fa-github"></i>
</a>
</div>
<p>Copyleft © 2026 JThweb. All Rights unReserved.</p>
<p>Built with <i class="fas fa-heart text-red-500"></i> and lots of support coffees</p>
</footer>
</div>
<script>
// --- GitHub OAuth Configuration ---
const GITHUB_CLIENT_ID = 'Ov23liSLmQfrm4aBKuMk';
const GITHUB_USERNAME = 'jthweb';
const PROXY_URL = 'https://github-oauth-proxy-server.vercel.app/api/auth';
// --- Authentication Handlers ---
function redirectToProxy(action, repo = null) {
let proxyUrl = `${PROXY_URL}?action=${action}`;
if (repo) {
proxyUrl += `&repo=${encodeURIComponent(repo)}`;
}
// Open the authorization page in a popup window
const authWindow = window.open(proxyUrl, 'githubAuth', 'width=600,height=700,scrollbars=yes');
// Optional: Add a listener to know when the window is closed, to refresh data
const checkWindow = setInterval(() => {
if (!authWindow || authWindow.closed) {
clearInterval(checkWindow);
// You could re-fetch GitHub data here if you want the page to update instantly
fetchGitHubData();
}
}, 500);
}
function handleFollow() {
redirectToProxy('follow');
}
function handleStar(repoName) {
redirectToProxy('star', repoName);
}
function handleFollowAndStarAll() {
redirectToProxy('follow_and_star_all');
}
// --- Theme Toggle ---
const themeToggle = document.getElementById('theme-toggle');
const html = document.documentElement;
// Function to set theme
function setTheme(theme) {
if (theme === 'dark') {
html.classList.add('dark');
themeToggle.checked = true;
} else {
html.classList.remove('dark');
themeToggle.checked = false;
}
localStorage.setItem('theme', theme);
// We need to update the stats images if the theme changes after initial load
if (document.getElementById('main-content').classList.contains('show')) {
setGitHubStatsImages();
}
}
// On page load, check saved theme or system preference
const savedTheme = localStorage.getItem('theme');
const systemPrefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (savedTheme) {
setTheme(savedTheme);
} else {
setTheme(systemPrefersDark ? 'dark' : 'light');
}
// Toggle theme on click
themeToggle.addEventListener('change', () => {
setTheme(themeToggle.checked ? 'dark' : 'light');
});
// Listen for changes in system preference
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => {
// Only change if the user hasn't manually set a theme
if (!localStorage.getItem('theme')) {
setTheme(e.matches ? 'dark' : 'light');
}
});
// --- Mobile Menu ---
const mobileMenuButton = document.getElementById('mobile-menu-button');
const mobileMenu = document.getElementById('mobile-menu');
mobileMenuButton.addEventListener('click', () => {
mobileMenu.classList.toggle('hidden');
});
// --- Animate on Scroll ---
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('animate-fade-in');
entry.target.classList.remove('opacity-0');
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.opacity-0').forEach(el => observer.observe(el));
// --- GitHub API Fetch ---
async function fetchGitHubData() {
try {
const response = await fetch(`https://api.github.com/users/${GITHUB_USERNAME}/repos?sort=updated&per_page=100`);
if (!response.ok) throw new Error('Network response was not ok.');
const repos = await response.json();
// Filter out forked repos and specific repos like "new"
const originalRepos = repos.filter(repo => !repo.fork && repo.name.toLowerCase() !== 'new');
// Calculate total stars
const totalStars = originalRepos.reduce((acc, repo) => acc + repo.stargazers_count, 0);
document.getElementById('total-stars').textContent = `${totalStars} Stars`;
// Display total project count
const totalProjects = originalRepos.length;
document.getElementById('total-projects').textContent = `${totalProjects} Projects`;
document.getElementById('total-repo-count').textContent = totalProjects;
// Populate projects grid
const projectsGrid = document.getElementById('projects-grid');
projectsGrid.innerHTML = ''; // Clear existing
const featuredRepos = originalRepos.slice(0, 8); // Show 8 projects
featuredRepos.forEach(repo => {
const projectCard = `
<div class="section-card flex flex-col justify-between">
<div>
<h3 class="text-xl font-bold mb-2">${repo.name}</h3>
<p class="text-sm mb-4" style="color: var(--text-secondary);">${repo.description || 'No description available.'}</p>
<div class="flex items-center text-sm mt-4" style="color: var(--text-secondary);">
<span class="mr-4"><i class="fas fa-star mr-1 text-yellow-500"></i> ${repo.stargazers_count}</span>
<span class="mr-4"><i class="fas fa-code-branch mr-1 text-[var(--primary)]"></i> ${repo.forks_count}</span>
</div>
</div>
<div class="mt-4 flex flex-wrap items-center justify-between gap-2">
<a href="${repo.html_url}" target="_blank" rel="noopener noreferrer" class="px-3 py-1.5 rounded-lg font-semibold animated-button secondary text-xs">View on GitHub</a>
<div class="flex items-center gap-2">
<button onclick="handleStar('${repo.full_name}')" class="px-3 py-1.5 rounded-lg font-semibold animated-button secondary text-xs">
⭐
</button>
<a href="https://ko-fi.com/jthweb" target="_blank" rel="noopener noreferrer" class="px-3 py-1.5 rounded-lg font-semibold animated-button secondary text-xs">
<i class="far fa-heart"></i>
</a>
</div>
</div>
</div>
`;
projectsGrid.innerHTML += projectCard;
});
} catch (error) {
console.error("Failed to fetch GitHub data:", error);
// Fallback text
document.getElementById('total-stars').textContent = 'N/A';
document.getElementById('total-projects').textContent = 'N/A';
document.getElementById('projects-grid').innerHTML = '<p>Could not load projects.</p>';
}
}
// --- Set GitHub Stats Images ---
function setGitHubStatsImages() {
const theme = localStorage.getItem('theme') || (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
const themeQuery = `&theme=${theme === 'dark' ? 'dark' : 'default'}`;
const base = 'https://github-readme-stats.vercel.app/api';
document.getElementById('github-top-langs').src = `${base}/top-langs/?username=${GITHUB_USERNAME}&layout=compact&langs_count=8${themeQuery}`;
document.getElementById('github-contributions').src = `https://github.com/JThweb/JThweb/raw/output/github-contribution-grid-snake.svg`;
document.getElementById('github-stats-card').src = `${base}?username=${GITHUB_USERNAME}&show_icons=true${themeQuery}`;
document.getElementById('github-streak-stats').src = `${base}/streak-stats?username=${GITHUB_USERNAME}${themeQuery}`;
}
// --- Intro Loader & Content Fade-in ---
window.addEventListener('load', () => {
const introLoader = document.getElementById('intro-loader');
const mainContent = document.getElementById('main-content');
const bgCanvas = document.getElementById('bg-canvas');
// Fetch data and set stats images while loader is showing
fetchGitHubData();
setGitHubStatsImages();
// Auto-update data every 5 minutes
setInterval(fetchGitHubData, 300000);
// Set a minimum time for the loader to be visible
setTimeout(() => {
introLoader.classList.add('fade-out');
mainContent.classList.add('show');
bgCanvas.style.opacity = '1'; // Fade in canvas
// Animate progress bars after content is visible
document.querySelectorAll('.progress-bar').forEach(bar => {
bar.style.width = bar.getAttribute('style').match(/width:\s*(\d+)%/)[0];
});
}, 1500); // Minimum 1.5 seconds
});
// --- Custom Cursor ---
const cursor = document.getElementById('custom-cursor');
document.addEventListener('mousemove', e => {
cursor.style.left = e.clientX + 'px';
cursor.style.top = e.clientY + 'px';
});
// --- 3D Background Animation (three.js) ---
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000);
const renderer = new THREE.WebGLRenderer({ canvas: document.getElementById('bg-canvas'), alpha: true });
renderer.setSize(window.innerWidth, window.innerHeight);
// Create an isometric-style wireframe shape (Icosahedron for more complexity)
const shapeGeometry = new THREE.IcosahedronGeometry(1.2, 0); // Slightly larger
const shapeMaterial = new THREE.MeshBasicMaterial({
color: 0x0078d4,
wireframe: true,
transparent: true,
opacity: 0.4 // Slightly more visible
});
const shape = new THREE.Mesh(shapeGeometry, shapeMaterial);
scene.add(shape);
// Create flying particles
const particlesGeometry = new THREE.BufferGeometry();
const particleCount = 8000; // Increased particle count
const posArray = new Float32Array(particleCount * 3);
for (let i = 0; i < particleCount * 3; i++) {
posArray[i] = (Math.random() - 0.5) * 15; // Wider particle distribution
}
particlesGeometry.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
const particlesMaterial = new THREE.PointsMaterial({
size: 0.006, // Slightly larger particles
color: 0x0078d4,
transparent: true,
opacity: 0.35 // Brighter particles
});
const particleMesh = new THREE.Points(particlesGeometry, particlesMaterial);
scene.add(particleMesh);
camera.position.z = 3;
let mouseX = 0;
let mouseY = 0;
document.addEventListener('mousemove', (event) => {
mouseX = event.clientX;
mouseY = event.clientY;
});
const clock = new THREE.Clock();
function animate() {
requestAnimationFrame(animate);
const elapsedTime = clock.getElapsedTime();
// Animate shape
shape.rotation.x += 0.001;
shape.rotation.y += 0.001;
// Add a subtle scaling animation to make it more "3D"
const scale = 1 + Math.sin(elapsedTime * 0.7) * 0.05;
shape.scale.set(scale, scale, scale);
// Animate particles
particleMesh.rotation.y += 0.0002;
// Make animation responsive to cursor
if (mouseX > 0) {
const targetX = (mouseX - window.innerWidth / 2) * 0.0005;
const targetY = (mouseY - window.innerHeight / 2) * 0.0005;
shape.rotation.y += (targetX - shape.rotation.y) * 0.05;
shape.rotation.x += (targetY - shape.rotation.x) * 0.05;
particleMesh.rotation.y += (targetX - particleMesh.rotation.y) * 0.01;
particleMesh.rotation.x += (targetY - particleMesh.rotation.x) * 0.01;
}
renderer.render(scene, camera);
}
animate();
window.addEventListener('resize', () => {
renderer.setSize(window.innerWidth, window.innerHeight);
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
});
</script>
</body>
</html>