-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
843 lines (808 loc) · 42 KB
/
Copy pathindex.html
File metadata and controls
843 lines (808 loc) · 42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="TM Sachith Thennakoon - Computer Science student at KDU, Android App Developer, Content Creator. Portfolio showcasing projects, skills, and experience.">
<meta name="keywords" content="TM Sachith, Sachith Thennakoon, Computer Science, KDU, Android Developer, Portfolio, Web Developer, Sri Lanka">
<meta name="author" content="TM Sachith Thennakoon">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://tmsachith.github.io/">
<title>TM Sachith - IT Student | Computer Science Student & Developer</title>
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png">
<link rel="stylesheet" href="styles/styles.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<!-- Include SweetAlert2 CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@10">
<!-- Include SweetAlert2 JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
</head>
<body class="main-content">
<header class="container header active" id="home">
<div class="header-content">
<div class="left-header">
<div class="h-shape"></div>
<div class="image">
<img src="img/hero3.png" alt="">
</div>
</div>
<div class="right-header">
<h1 class="name">
Hi,<br>I'm <span>Sachith Thennakoon</span><br>
An IT Student.
</h1>
<p>
Currently I am studying Computer Science at General Sir John Kotalawala Defence University. I Creating Valuable and Intractive Apps for Google Play for Specificly for Sri Lankan Users. As an undergraduate student pursuing a degree in Computer Science, I am continuing on this path with a strong foundation in Computer Science and Engineering principles. I have shown a keen interest in programming languages, software development, artificial intelligence, etc.
</p>
<!--<div class="btn-con">
<a href="https://www.tmsachith.com/TMSSTHENNAKOON%20CV.pdf" target="_blank" class="main-btn">
<span class="btn-text">Download CV</span>
<span class="btn-icon"><i class="fas fa-download"></i></span>
</a>
</div>-->
</div>
</div>
</header>
<main>
<section class="container about" id="about">
<div class="main-title">
<h2>About <span>me</span><span class="bg-text">my stats</span></h2>
</div>
<div class="about-container">
<div class="left-about">
<h4>About me</h4>
<p>
I'm Sachith Thennakoon
Currently I am studying Computer Science at General Sir John Kotalawala Defence University. As an undergraduate student pursuing a degree in Computer Science, I am continuing on this path with a strong foundation in Computer Science and Engineering principles. I have shown a keen interest in programming languages, software development, artificial intelligence, etc.
<br><br>
If I remember my past, I received my primary education at the Roman Catholic School, Mawathagama. After passing the scholarship examination I entered Ibbagamuwa Central College. There I studied up to my Advanced Level. After the O/L, I passed the A/L with a combination of Physics, Combined Maths, and ICT for Advanced Level.
</p>
<div class="btn-con">
<a href="assets/Sachith%20Thennakoon.pdf" target="_blank" class="main-btn">
<span class="btn-text">Download CV</span>
<span class="btn-icon"><i class="fas fa-download"></i></span>
</a>
</div>
</div>
<div class="right-about">
<div class="about-item">
<div class="abt-text">
<img src="img/my3.png" width="100%" style="border-radius: 5px;">
<!-- <p class="large-text">Pearson</p>
<p class="small-text">Diploma in Software Engineering (DiSE)</p> -->
</div>
</div>
<!-- <div class="about-item">
<div class="abt-text">
<img src="/img/cisco_logo.jpg" height="100px">
<p class="large-text">Cisco Networking Academy</p>
<p class="small-text">CCNA: Introduction to Networks</p>
</div>
</div> -->
<!--<div class="about-item">
<div class="abt-text">
<p class="large-text">300+</p>
<p class="small-text">Happy <br /> Clients</p>
</div>
</div>
<div class="about-item">
<div class="abt-text">
<p class="large-text">400+</p>
<p class="small-text">Customer <br /> reviews</p>
</div>
</div>
-->
</div>
</div>
<div class="about-stats">
<h4 class="stat-title">My Skills</h4>
<div class="progress-bars">
<div class="progress-bar">
<p class="prog-title">Programming</p>
<div class="progress-con">
<p class="prog-text">90%</p>
<div class="progress">
<span class="html"></span>
</div>
</div>
</div>
<div class="progress-bar">
<p class="prog-title">Mathematics</p>
<div class="progress-con">
<p class="prog-text">70%</p>
<div class="progress">
<span class="css"></span>
</div>
</div>
</div>
<div class="progress-bar">
<p class="prog-title">Social Skills</p>
<div class="progress-con">
<p class="prog-text">80%</p>
<div class="progress">
<span class="js"></span>
</div>
</div>
</div>
<div class="progress-bar">
<p class="prog-title">Sports</p>
<div class="progress-con">
<p class="prog-text">75%</p>
<div class="progress">
<span class="react"></span>
</div>
</div>
</div>
<div class="progress-bar">
<p class="prog-title">Leadership Skills</p>
<div class="progress-con">
<p class="prog-text">80%</p>
<div class="progress">
<span class="node"></span>
</div>
</div>
</div>
<!--<div class="progress-bar">
<p class="prog-title">Python</p>
<div class="progress-con">
<p class="prog-text">70%</p>
<div class="progress">
<span class="python"></span>
</div>
</div>
</div>-->
</div>
</div>
<h4 class="stat-title">My Timeline</h4>
<div class="timeline">
<div class="timeline-item">
<div class="tl-icon">
<i class="fas fa-briefcase"></i>
</div>
<p class="tl-duration">2025 - present</p>
<h5>Webmaster<span> - IEEE Student Branch - KDU</span></h5>
<p>
Currently I am volunteering as Webmaster in IEEE Student branch Exco of General Sir John Kotelawala Defence University
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fa fa-graduation-cap"></i>
</div>
<p class="tl-duration">2023 - present</p>
<h5>BSc(Hons) in Computer Science<span> - General Sir John Kotelawala Defence University</span></h5>
<p>
Currently I am studying Computer Science at General Sir John Ketalawala Defence University
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fas fa-briefcase"></i>
</div>
<p class="tl-duration">2020 - present</p>
<h5>Android App Developer<span> - Google Play</span></h5>
<p>
I Creating Valuable and actractive Apps for Google Play for Specificly for Sri Lankan Users
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fa fa-graduation-cap"></i>
</div>
<p class="tl-duration">2018 - 2018</p>
<h5>Diploma in Software Engineering<span> - Esoft Metro Campus</span></h5>
<p>
I Completed a Dimploma Course in Software Engineering that Offered by Pearson
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fas fa-briefcase"></i>
</div>
<p class="tl-duration">2017 - present</p>
<h5>Content Creator<span> - Youtube</span></h5>
<p>
I Creating Technology Based Content on Youtube
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fas fa-briefcase"></i>
</div>
<p class="tl-duration">2019 - 2020</p>
<h5>Senior Prefect<span> - Ibbagamuwa Central College</span></h5>
<p>
Respective Member of the Senior Prefects' Guild of Ibbagamuwa Central College during 2019-2020
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fas fa-briefcase"></i>
</div>
<p class="tl-duration">2013 - 2017</p>
<h5>Junior Prefect<span> - Ibbagamuwa Central College</span></h5>
<p>
I Worked as a Junior Prefect from Grade 7 to Grade 11
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fa fa-graduation-cap"></i>
</div>
<p class="tl-duration">2012 - 2020</p>
<h5>Secondery Education<span> - Ibbagamuwa Central College</span></h5>
<p>
There I studied up to my Advanced Level. After the O/L, I passed the A/L with a combination of Physics, Combined Maths, and ICT for Advanced Level
</p>
</div>
<div class="timeline-item">
<div class="tl-icon">
<i class="fa fa-graduation-cap"></i>
</div>
<p class="tl-duration">2007 - 2011</p>
<h5>Primary Education<span> - Roman Catholic College, Mawathagama</span></h5>
<p>
Passed the Grade 5 scholarship Exam with 166 Marks
</p>
</div>
</div>
</section>
<!-- Add new GitHub Stats section -->
<section class="container" id="github-stats">
<div class="main-title">
<h2>GitHub <span>Statistics</span><span class="bg-text">My Code</span></h2>
<div class="live-dot" style="display: inline-block; width: 10px; height: 10px; background-color: green; border-radius: 50%; margin-left: 10px; animation: blink 1s infinite;"></div>
<div id="current-time" style="margin-top: 10px; font-size: 14px; color: #fff;"></div>
</div>
<style>
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
</style>
<script>
function updateTime() {
const now = new Date();
const timeString = now.toLocaleTimeString();
const dateString = now.toLocaleDateString();
document.getElementById('current-time').textContent = `Current Time: ${timeString} | Date: ${dateString}`;
}
setInterval(updateTime, 1000);
updateTime();
</script>
<div class="github-stats-container">
<div class="stats-row">
<div class="github-stat-card">
<img src="https://github-readme-stats.vercel.app/api?username=tmsachith&show_icons=true&theme=dark"
alt="GitHub Stats" width="100%">
</div>
<div class="github-stat-card">
<img src="https://github-readme-streak-stats.herokuapp.com/?user=tmsachith&theme=dark"
alt="GitHub Streak" width="100%">
</div>
</div>
<div class="stats-row">
<div class="github-stat-card">
<img src="https://github-readme-stats.vercel.app/api/top-langs/?username=tmsachith&layout=compact&theme=dark"
alt="Top Languages" width="100%">
</div>
<div class="github-contribution-graph">
<img src="https://ghchart.rshah.org/tmsachith" alt="GitHub Contributions" width="100%">
</div>
</div>
<div class="stats-row"></div>
<div class="github-top-repos">
<h3>Top Repositories</h3>
<div id="top-repos"></div>
</div>
</div>
</div>
</section>
<script>
async function fetchTopRepos() {
const response = await fetch('https://api.github.com/users/tmsachith/repos');
const repos = await response.json();
const reposContainer = document.getElementById('top-repos');
repos.forEach(repo => {
const repoElement = document.createElement('div');
repoElement.classList.add('repo');
repoElement.style.border = '1px solid #444';
repoElement.style.padding = '15px';
repoElement.style.margin = '15px 0';
repoElement.style.borderRadius = '10px';
repoElement.style.backgroundColor = '#1e1e1e';
repoElement.style.color = '#fff';
repoElement.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.1)';
repoElement.style.display = 'flex';
repoElement.style.alignItems = 'center';
let iconClass = 'fas fa-code';
if (repo.language === 'JavaScript') iconClass = 'fab fa-js';
else if (repo.language === 'Python') iconClass = 'fab fa-python';
else if (repo.language === 'HTML') iconClass = 'fab fa-html5';
else if (repo.language === 'CSS') iconClass = 'fab fa-css3-alt';
else if (repo.language === 'Java') iconClass = 'fab fa-java';
else if (repo.language === 'C++') iconClass = 'fas fa-code';
const iconElement = document.createElement('div');
iconElement.style.marginRight = '15px';
iconElement.innerHTML = `<i class="${iconClass}" style="font-size: 24px;"></i>`;
const detailsElement = document.createElement('div');
detailsElement.innerHTML = `
<h4><a href="${repo.html_url}" target="_blank" style="color: #58a6ff;">${repo.name}</a></h4>
<p>${repo.description || 'No description available'}</p>
<p>⭐ ${repo.stargazers_count} | 🍴 ${repo.forks_count}</p>
`;
repoElement.appendChild(iconElement);
repoElement.appendChild(detailsElement);
reposContainer.appendChild(repoElement);
});
}
fetchTopRepos();
</script>
<section class="container" id="portfolio">
<div class="main-title">
<h2>My <span>Brands</span><span class="bg-text">My Work</span></h2>
</div>
<p class="port-text">
Here are some of the brands that I've built.
</p>
<div class="portfolios">
<div class="portfolio-item">
<div class="image">
<img src="img/tmsachith.jpg" alt="">
</div>
<div class="hover-items">
<h3 align="center">TM Sachith</h3>
<!-- <div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div> -->
</div>
</div>
<div class="portfolio-item">
<div class="image">
<img src="img/helroundex Lanka.png" alt="">
</div>
<div class="hover-items">
<h3 align="center">Helroundex Lanka</h3>
<!-- <div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div> -->
</div>
</div>
<div class="portfolio-item">
<div class="image">
<img src="img/texttomp3.webp" alt="">
</div>
<div class="hover-items">
<h3 align="center">Sinhala Text to Mp3 App</h3>
<!-- <div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div> -->
</div>
</div>
<div class="portfolio-item">
<div class="image">
<img src="img/bookfree.jpg" alt="">
</div>
<div class="hover-items">
<h3 align="center">BookFree Super App</h3>
<!-- <div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div> -->
</div>
</div>
<div class="portfolio-item">
<div class="image">
<img src="img/helroundex store.jpg" alt="">
</div>
<div class="hover-items">
<h3 align="center">Helroundex Online Store</h3>
<!-- <div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div> -->
</div>
</div>
<!-- <div class="portfolio-item">
<div class="image">
<img src="img/port2.jpg" alt="">
</div>
<div class="hover-items">
<h3>Project Source</h3>
<div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div> -->
<!-- <div class="portfolio-item">
<div class="image">
<img src="img/port7.jpg" alt="">
</div>
<div class="hover-items">
<h3>Project Source</h3>
<div class="icons">
<a href="#" class="icon">
<i class="fab fa-github"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-behance"></i>
</a>
<a href="#" class="icon">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div> -->
</div>
</section>
<section class="container" id="blogs">
<div class="blogs-content">
<div class="main-title">
<h2>My <span>Contents</span><span class="bg-text">My Work</span></h2>
</div>
<div class="content-tabs">
<div class="tab-buttons">
<button class="tab-btn active" onclick="showTab('youtube')">YouTube Videos</button>
<button class="tab-btn" onclick="showTab('medium')">Medium Articles</button>
</div>
</div>
<div class="blogs" id="youtube-content">
<a href="https://www.youtube.com/watch?v=jL986CIPD1k" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/jL986CIPD1k/maxresdefault.jpg" alt="Samsung Galaxy A10 | Sinhala 🇱🇰">
</div>
<div class="blog-text">
<h4>Samsung Galaxy A10 | Sinhala 🇱🇰</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
<a href="https://www.youtube.com/watch?v=P5I3D28wt1w" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/P5I3D28wt1w/maxresdefault.jpg" alt="A/L Maths with ICT 🇱🇰">
</div>
<div class="blog-text">
<h4>A/L Maths with ICT 🇱🇰</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
<a href="https://www.youtube.com/watch?v=OrjcT-tsFXY" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/OrjcT-tsFXY/maxresdefault.jpg" alt="Samsung Galaxy A10 in Sri Lanka">
</div>
<div class="blog-text">
<h4>Samsung Galaxy A10 in Sri Lanka</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
<a href="https://www.youtube.com/watch?v=xaUfLJLf_ZQ" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/xaUfLJLf_ZQ/maxresdefault.jpg" alt="A /L පොදු විෂය කාණ්ඩය | සිංහල">
</div>
<div class="blog-text">
<h4>A /L පොදු විෂය කාණ්ඩය | සිංහල</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
<a href="https://www.youtube.com/watch?v=XDy9UWy6YGY" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/XDy9UWy6YGY/maxresdefault.jpg" alt="Diploma In Software Engineering - Esoft MC | 🇱🇰">
</div>
<div class="blog-text">
<h4>Diploma In Software Engineering - Esoft MC | 🇱🇰</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
<a href="https://www.youtube.com/watch?v=Z3I_Fhv6gN8" target="_blank" class="blog">
<div class="blog-image">
<img src="https://i3.ytimg.com/vi/Z3I_Fhv6gN8/maxresdefault.jpg" alt="Easy way to OCR Sinhala language">
</div>
<div class="blog-text">
<h4>Easy way to OCR Sinhala language</h4>
<div class="card-footer">
<img class="ytlogo" src="https://www.iconpacks.net/icons/2/free-youtube-logo-icon-2431-thumb.png" alt="YouTube">
<p>YouTube</p>
</div>
</div>
</a>
</div>
<!-- Medium Articles Section -->
<div class="blogs" id="medium-content" style="display: none;">
<!-- Medium posts will be loaded here automatically -->
<div class="medium-loading">
<div class="spinner"></div>
<p class="loading-text">Loading Medium articles...</p>
</div>
</div>
</div>
</section>
<section class="container contact" id="contact">
<div class="contact-container">
<div class="main-title">
<h2>Contact <span>Me</span><span class="bg-text">Contact</span></h2>
</div>
<div class="contact-content-con">
<div class="left-contact">
<h4>Contact me here</h4>
<div class="contact-info">
<div class="contact-item">
<div class="icon">
<i class="fas fa-map-marker-alt"></i>
<span>Location</span>
</div>
<p>
: Temple road, Aludeniya, Kandy.
</p>
</div>
<div class="contact-item">
<div class="icon">
<i class="fas fa-envelope"></i>
<span>Email</span>
</div>
<p>
<span>: sachith.icc@gmail.com</span>
</p>
</div>
<!--<div class="contact-item">
<div class="icon">
<i class="fas fa-user-graduate"></i>
<span>Education</span>
</div>
<p>
<span>: Sussex University, East Sussex</span>
</p>
</div>-->
<div class="contact-item">
<div class="icon">
<i class="fas fa-user-graduate"></i>
<span>Mobile Number</span>
</div>
<p>
<span>: +94 772036044</span>
</p>
</div>
<div class="contact-item">
<div class="icon">
<i class="fas fa-globe-africa"></i>
<span>Languages</span>
</div>
<p>
<span>: Sinhala | English</span>
</p>
</div>
</div>
<div class="contact-icons">
<div class="contact-icon">
<a href="https://www.facebook.com/TMSachith" target="_blank">
<i class="fab fa-facebook-f"></i>
</a>
<!--<a href="#" target="_blank">-->
<!-- <i class="fab fa-twitter"></i>-->
<!--</a>-->
<!--<a href="#" target="_blank">-->
<!-- <i class="fab fa-github"></i>-->
<!--</a>-->
<a href="https://www.youtube.com/@TMSachith0" target="_blank">
<i class="fab fa-youtube"></i>
</a>
</div>
</div>
</div>
<div class="right-contact">
<form action="/assets/php/mail.php" class="contact-form">
<div class="input-control i-c-2">
<input type="text" required placeholder="YOUR NAME" name="name" class="contact__input">
<input type="email" required placeholder="YOUR EMAIL" name="emailaddress" class="contact__input">
</div>
<div class="input-control">
<input type="text" required placeholder="ENTER SUBJECT" name="subject" class="contact__input" >
</div>
<div class="input-control">
<textarea cols="15" rows="8" placeholder="Message Here..." name="massage" id="Msg" cols="0" rows="10" class="contact__input"></textarea>
</div>
<div class="submit-btn">
<a type="submit" class="main-btn" id="submitButton">
<span class="btn-text">Send</span>
<span class="btn-icon"><i class="fa fa-paper-plane"></i></span>
</a>
</div>
</form>
</div>
</div>
</div>
</section>
</main>
<div class="controls">
<div class="control active-btn" data-id="home" >
<i class="fas fa-home"></i>
</div>
<div class="control" data-id="about">
<i class="fas fa-user"></i>
</div>
<div class="control" data-id="portfolio">
<i class="fas fa-briefcase"></i>
</div>
<div class="control" data-id="github-stats">
<i class="fab fa-github"></i>
</div>
<div class="control" data-id="blogs">
<i class="far fa-newspaper"></i>
</div>
<div class="control" data-id="contact">
<i class="fas fa-envelope-open"></i>
</div>
</div>
<div class="theme-btn">
<i class="fas fa-adjust"></i>
</div>
<!-- Tab switching script -->
<script>
// Function to fetch Medium posts
async function fetchMediumPosts() {
const container = document.getElementById('medium-content');
// Add loading class and show loading spinner
container.classList.add('loading');
container.innerHTML = `
<div class="medium-loading">
<div class="spinner"></div>
<p class="loading-text">Loading Medium articles...</p>
</div>
`;
try {
// Replace 'yourusername' with your actual Medium username
const username = 'sachith.icc'; // Change this to your Medium username
const response = await fetch(`https://api.rss2json.com/v1/api.json?rss_url=https://medium.com/feed/@${username}`);
const data = await response.json();
// Remove loading class and clear loading spinner
container.classList.remove('loading');
container.innerHTML = '';
if (data.items && data.items.length > 0) {
data.items.slice(0, 6).forEach(post => { // Show only first 6 posts
const postElement = document.createElement('a');
postElement.classList.add('blog');
postElement.href = post.link;
postElement.target = '_blank';
// Extract image from content or use default
let imageUrl = 'https://miro.medium.com/v2/resize:fit:1200/1*6ahbWjp_g9hqhaTDSJOL1Q.png';
if (post.thumbnail) {
imageUrl = post.thumbnail;
} else if (post.content) {
const imgMatch = post.content.match(/<img[^>]+src="([^"]+)"/);
if (imgMatch) {
imageUrl = imgMatch[1];
}
}
// Clean title
const title = post.title.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');
// Format date
const postDate = new Date(post.pubDate).toLocaleDateString('en-US', {
year: 'numeric',
month: 'short',
day: 'numeric'
});
postElement.innerHTML = `
<div class="blog-image">
<img src="${imageUrl}" alt="${title}" onerror="this.src='https://miro.medium.com/v2/resize:fit:1200/1*6ahbWjp_g9hqhaTDSJOL1Q.png'">
</div>
<div class="blog-text">
<h4>${title}</h4>
<div class="card-footer">
<img class="mediumlogo" src="https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/medium.svg" alt="Medium">
<p>Medium • ${postDate}</p>
</div>
</div>
`;
container.appendChild(postElement);
});
} else {
container.classList.add('loading');
container.innerHTML = `
<div class="medium-loading">
<p class="loading-text">No Medium articles found. Please check your username.</p>
</div>
`;
}
} catch (error) {
console.error('Error fetching Medium posts:', error);
container.classList.add('loading');
container.innerHTML = `
<div class="medium-loading">
<p class="loading-text">Error loading Medium articles. Please try again later.</p>
</div>
`;
}
}
function showTab(tabName) {
// Hide all content
document.getElementById('youtube-content').style.display = 'none';
document.getElementById('medium-content').style.display = 'none';
// Remove active class from all buttons
const buttons = document.querySelectorAll('.tab-btn');
buttons.forEach(btn => btn.classList.remove('active'));
// Show selected content and mark button as active
if (tabName === 'youtube') {
document.getElementById('youtube-content').style.display = 'grid';
event.target.classList.add('active');
} else if (tabName === 'medium') {
document.getElementById('medium-content').style.display = 'grid';
event.target.classList.add('active');
// Load Medium posts when tab is first opened or if container only has loading content
const container = document.getElementById('medium-content');
if (container.innerHTML.includes('Loading') || container.innerHTML.includes('spinner')) {
fetchMediumPosts();
}
}
}
// Show YouTube content by default
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('youtube-content').style.display = 'grid';
});
</script>
<script src="app.js"></script>
</body>
</html>