Repository navigation
Expand file tree
/
Copy pathblogs.html
More file actions
781 lines (751 loc) · 28.8 KB
/
Copy pathblogs.html
File metadata and controls
781 lines (751 loc) · 28.8 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta Tags: Character encoding, viewport, and SEO description -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Blog - Yashwanth Krishnan">
<title>Blog - Yashwanth Krishnan</title>
<!-- Favicon: SVG format for scalability -->
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<!-- IBM Plex Fonts: Professional typography from Google 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=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Stylesheets: Custom styles and Font Awesome icons -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- ============================================
PAGE-SPECIFIC STYLES
Custom styles for blog layout and components
============================================ -->
<style>
/* Hero Section: Gradient background with centered content */
.blog-hero {
padding: 120px 0 60px;
background: linear-gradient(135deg, #0f62fe 0%, #0353e9 100%);
color: white;
text-align: center;
}
.blog-hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.blog-hero p {
font-size: 1.2rem;
opacity: 0.9;
}
/* Newsletter Section: Email subscription form */
.newsletter-section {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
margin: -40px auto 60px;
max-width: 600px;
text-align: center;
}
.newsletter-section h3 {
margin-bottom: 10px;
color: var(--text-color);
}
.newsletter-section p {
color: var(--text-secondary);
margin-bottom: 20px;
}
/* Newsletter Form: Input and button layout */
.newsletter-form {
display: flex;
gap: 10px;
}
.newsletter-form input {
flex: 1;
padding: 12px 20px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 1rem;
}
.newsletter-form input:focus {
outline: none;
border-color: var(--primary-color);
}
.newsletter-form button {
padding: 12px 30px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease;
}
.newsletter-form button:hover {
background: #0353e9;
}
.blog-controls {
display: flex;
gap: 20px;
margin-bottom: 40px;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
}
.search-bar {
flex: 1;
min-width: 250px;
position: relative;
}
.search-bar input {
width: 100%;
padding: 12px 45px 12px 20px;
border: 2px solid #e0e0e0;
border-radius: 25px;
font-size: 1rem;
}
.search-bar input:focus {
outline: none;
border-color: var(--primary-color);
}
.search-bar i {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
color: var(--text-secondary);
}
.filter-tabs {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.filter-tab {
padding: 10px 20px;
background: white;
border: 2px solid var(--primary-color);
color: var(--primary-color);
border-radius: 20px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.filter-tab:hover {
background: var(--primary-color);
color: white;
}
.filter-tab.active {
background: var(--primary-color);
color: white;
}
.featured-section {
margin-bottom: 60px;
}
.featured-section h2 {
font-size: 2rem;
margin-bottom: 30px;
color: var(--text-color);
}
.featured-post {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0;
}
.featured-image {
background: linear-gradient(135deg, #0f62fe 0%, #0353e9 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 5rem;
color: white;
min-height: 400px;
}
.featured-content {
padding: 40px;
display: flex;
flex-direction: column;
justify-content: center;
}
.post-source {
display: inline-block;
padding: 6px 12px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 15px;
}
.source-substack {
background: #ff6719;
color: white;
}
.source-medium {
background: #000;
color: white;
}
.source-native {
background: var(--primary-color);
color: white;
}
.featured-content h3 {
font-size: 2rem;
margin-bottom: 15px;
color: var(--text-color);
}
.featured-excerpt {
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 20px;
}
.post-meta {
display: flex;
gap: 20px;
margin-bottom: 20px;
color: var(--text-secondary);
font-size: 0.9rem;
}
.meta-item {
display: flex;
align-items: center;
gap: 5px;
}
.read-more-btn {
display: inline-block;
padding: 12px 30px;
background: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
transition: background 0.3s ease;
align-self: flex-start;
}
.read-more-btn:hover {
background: #0353e9;
}
.blog-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
margin-bottom: 60px;
}
.blog-card {
background: white;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(15, 98, 254, 0.2);
}
.blog-image {
width: 100%;
height: 200px;
background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: var(--primary-color);
}
.blog-content {
padding: 25px;
}
.blog-content h3 {
font-size: 1.3rem;
margin-bottom: 10px;
color: var(--text-color);
}
.blog-excerpt {
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 15px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.blog-footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 15px;
border-top: 1px solid #e0e0e0;
}
.blog-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
display: flex;
align-items: center;
gap: 5px;
}
.blog-link:hover {
text-decoration: underline;
}
.share-buttons {
display: flex;
gap: 10px;
}
.share-btn {
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: #f5f5f5;
color: var(--text-secondary);
cursor: pointer;
transition: all 0.3s ease;
}
.share-btn:hover {
background: var(--primary-color);
color: white;
}
.pagination {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 40px;
}
.page-btn {
padding: 10px 20px;
background: white;
border: 2px solid var(--primary-color);
color: var(--primary-color);
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
}
.page-btn:hover, .page-btn.active {
background: var(--primary-color);
color: white;
}
.loading {
text-align: center;
padding: 40px;
color: var(--text-secondary);
}
.loading i {
font-size: 2rem;
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@media (max-width: 768px) {
.blog-hero h1 {
font-size: 2rem;
}
.featured-post {
grid-template-columns: 1fr;
}
.featured-image {
min-height: 250px;
}
.blog-grid {
grid-template-columns: 1fr;
}
.blog-controls {
flex-direction: column;
align-items: stretch;
}
.newsletter-form {
flex-direction: column;
}
}
</style>
</head>
<body>
<!-- Navigation -->
<nav id="blog-navigation" class="navbar">
<div id="blog-nav-container" class="container">
<ul id="blog-nav-menu" class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="experience.html">Experience</a></li>
<li><a href="skills.html">Skills</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="education.html">Education</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
<div id="blog-hamburger" class="hamburger">
<span></span>
<span></span>
<span></span>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="blog-hero-section" class="blog-hero">
<div id="blog-hero-container" class="container">
<h1 id="blog-hero-title"><i class="fas fa-blog"></i> Blog</h1>
<p id="blog-hero-subtitle">Thoughts on technology, software engineering, and continuous learning</p>
</div>
</section>
<!-- Newsletter Section -->
<section id="newsletter-section" class="about">
<div id="newsletter-container" class="container">
<div id="newsletter-card" class="newsletter-section">
<h3 id="newsletter-title"><i class="fas fa-envelope"></i> Subscribe to Newsletter</h3>
<p id="newsletter-description">Get the latest articles delivered straight to your inbox</p>
<form id="newsletterForm" class="newsletter-form">
<input type="email" placeholder="Enter your email" required>
<button type="submit">Subscribe</button>
</form>
</div>
</div>
</section>
<!-- Featured Post -->
<section id="featured-section" class="about">
<div id="featured-container" class="container">
<div id="featured-wrapper" class="featured-section">
<h2 id="featured-heading"><i class="fas fa-star"></i> Featured Post</h2>
<div id="featured-post" class="featured-post">
<div id="featured-image" class="featured-image">
<i class="fas fa-rocket"></i>
</div>
<div id="featured-content" class="featured-content">
<span id="featured-source" class="post-source source-native">Native</span>
<h3 id="featured-title">Building Scalable Microservices with Kubernetes</h3>
<div id="featured-meta" class="post-meta">
<span id="featured-date" class="meta-item"><i class="far fa-calendar"></i> Jan 15, 2024</span>
<span id="featured-read-time" class="meta-item"><i class="far fa-clock"></i> 8 min read</span>
<span id="featured-author" class="meta-item"><i class="far fa-user"></i> Yashwanth Krishnan</span>
</div>
<p id="featured-excerpt" class="featured-excerpt">
Deep dive into building production-ready microservices architecture using Kubernetes,
covering service mesh, observability, and best practices learned from real-world implementations.
</p>
<a href="#" id="featured-link" class="read-more-btn">Read Full Article <i class="fas fa-arrow-right"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- Blog Controls -->
<section id="blog-controls-section" class="about">
<div id="blog-controls-container" class="container">
<div id="blog-controls" class="blog-controls">
<div id="search-bar" class="search-bar">
<input type="text" id="searchInput" placeholder="Search articles...">
<i class="fas fa-search"></i>
</div>
<div id="filter-tabs" class="filter-tabs">
<button id="filter-all" class="filter-tab active" data-source="all">
<i class="fas fa-globe"></i> All Posts
</button>
<button id="filter-native" class="filter-tab" data-source="native">
<i class="fas fa-home"></i> Native
</button>
<button id="filter-substack" class="filter-tab" data-source="substack">
<i class="fab fa-substack"></i> Substack
</button>
<button id="filter-medium" class="filter-tab" data-source="medium">
<i class="fab fa-medium"></i> Medium
</button>
</div>
</div>
</div>
</section>
<!-- Blog Grid -->
<section id="blog-grid-section" class="about">
<div id="blog-grid-container" class="container">
<div id="loadingIndicator" class="loading" style="display: none;">
<i class="fas fa-spinner"></i>
<p>Loading articles...</p>
</div>
<div id="blogGrid" class="blog-grid">
<!-- Blog cards will be dynamically generated -->
</div>
<div id="pagination" class="pagination">
<!-- Pagination buttons will be dynamically generated -->
</div>
</div>
</section>
<!-- Footer -->
<footer id="blog-footer" class="footer">
<div id="blog-footer-container" class="container">
<p id="blog-footer-copyright">© <span data-current-year>2024</span> Yashwanth Krishnan. All rights reserved.</p>
<p id="blog-footer-tagline">Built with <i id="blog-footer-heart" class="fas fa-heart"></i> and passion</p>
</div>
</footer>
<script src="js/script.js"></script>
<script>
// Blog posts data (mix of native and external sources)
const blogPosts = [
{
id: 1,
title: "Building Scalable Microservices with Kubernetes",
excerpt: "Deep dive into building production-ready microservices architecture using Kubernetes, covering service mesh, observability, and best practices.",
source: "native",
date: new Date('2024-01-15'),
readTime: 8,
author: "Yashwanth Krishnan",
icon: "fa-rocket",
link: "#",
featured: true
},
{
id: 2,
title: "Understanding Distributed Tracing with OpenTelemetry",
excerpt: "Learn how to implement distributed tracing in your microservices architecture using OpenTelemetry for better observability.",
source: "substack",
date: new Date('2024-01-20'),
readTime: 6,
author: "Yashwanth Krishnan",
icon: "fa-chart-line",
link: "#"
},
{
id: 3,
title: "The Art of Writing Clean Code",
excerpt: "Practical tips and techniques for writing maintainable, readable, and efficient code that your future self will thank you for.",
source: "medium",
date: new Date('2024-01-25'),
readTime: 5,
author: "Yashwanth Krishnan",
icon: "fa-code",
link: "#"
},
{
id: 4,
title: "Database Optimization Strategies",
excerpt: "Comprehensive guide to optimizing database performance, from indexing strategies to query optimization and caching.",
source: "native",
date: new Date('2024-02-01'),
readTime: 10,
author: "Yashwanth Krishnan",
icon: "fa-database",
link: "#"
},
{
id: 5,
title: "Modern CI/CD Pipelines with GitHub Actions",
excerpt: "Step-by-step guide to building robust CI/CD pipelines using GitHub Actions for automated testing and deployment.",
source: "substack",
date: new Date('2024-02-05'),
readTime: 7,
author: "Yashwanth Krishnan",
icon: "fa-code-branch",
link: "#"
},
{
id: 6,
title: "Security Best Practices for Web Applications",
excerpt: "Essential security practices every developer should implement to protect web applications from common vulnerabilities.",
source: "medium",
date: new Date('2024-02-10'),
readTime: 9,
author: "Yashwanth Krishnan",
icon: "fa-shield-alt",
link: "#"
},
{
id: 7,
title: "Introduction to Event-Driven Architecture",
excerpt: "Explore the benefits and challenges of event-driven architecture and when to use it in your applications.",
source: "native",
date: new Date('2024-02-15'),
readTime: 6,
author: "Yashwanth Krishnan",
icon: "fa-bolt",
link: "#"
},
{
id: 8,
title: "Mastering Docker for Development",
excerpt: "Complete guide to using Docker for local development, from basics to advanced multi-container setups.",
source: "substack",
date: new Date('2024-02-20'),
readTime: 8,
author: "Yashwanth Krishnan",
icon: "fa-docker",
link: "#"
},
{
id: 9,
title: "API Design Best Practices",
excerpt: "Learn how to design RESTful APIs that are intuitive, scalable, and maintainable for long-term success.",
source: "medium",
date: new Date('2024-02-25'),
readTime: 7,
author: "Yashwanth Krishnan",
icon: "fa-plug",
link: "#"
},
{
id: 10,
title: "Performance Monitoring with Prometheus",
excerpt: "Implement comprehensive performance monitoring using Prometheus and Grafana for your applications.",
source: "native",
date: new Date('2024-03-01'),
readTime: 9,
author: "Yashwanth Krishnan",
icon: "fa-tachometer-alt",
link: "#"
},
{
id: 11,
title: "GraphQL vs REST: Making the Right Choice",
excerpt: "Detailed comparison of GraphQL and REST APIs to help you choose the right approach for your project.",
source: "substack",
date: new Date('2024-03-05'),
readTime: 6,
author: "Yashwanth Krishnan",
icon: "fa-exchange-alt",
link: "#"
},
{
id: 12,
title: "Building Resilient Systems",
excerpt: "Strategies for building fault-tolerant systems that can handle failures gracefully and recover quickly.",
source: "medium",
date: new Date('2024-03-10'),
readTime: 8,
author: "Yashwanth Krishnan",
icon: "fa-shield",
link: "#"
}
];
let currentFilter = 'all';
let currentPage = 1;
const postsPerPage = 6;
let searchQuery = '';
// Render blog posts
function renderBlogPosts() {
const grid = document.getElementById('blogGrid');
let filteredPosts = blogPosts.filter(post => {
const matchesSource = currentFilter === 'all' || post.source === currentFilter;
const matchesSearch = post.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
post.excerpt.toLowerCase().includes(searchQuery.toLowerCase());
return matchesSource && matchesSearch && !post.featured;
});
// Sort by date (newest first)
filteredPosts.sort((a, b) => b.date - a.date);
// Pagination
const totalPages = Math.ceil(filteredPosts.length / postsPerPage);
const startIndex = (currentPage - 1) * postsPerPage;
const endIndex = startIndex + postsPerPage;
const paginatedPosts = filteredPosts.slice(startIndex, endIndex);
grid.innerHTML = paginatedPosts.map(post => `
<div class="blog-card" data-source="${post.source}">
<div class="blog-image">
<i class="fas ${post.icon}"></i>
</div>
<div class="blog-content">
<span class="post-source source-${post.source}">${post.source.charAt(0).toUpperCase() + post.source.slice(1)}</span>
<h3>${post.title}</h3>
<div class="post-meta">
<span class="meta-item"><i class="far fa-calendar"></i> ${formatDate(post.date)}</span>
<span class="meta-item"><i class="far fa-clock"></i> ${post.readTime} min</span>
</div>
<p class="blog-excerpt">${post.excerpt}</p>
<div class="blog-footer">
<a href="${post.link}" class="blog-link">
Read More <i class="fas fa-arrow-right"></i>
</a>
<div class="share-buttons">
<div class="share-btn" title="Share on Twitter">
<i class="fab fa-twitter"></i>
</div>
<div class="share-btn" title="Share on LinkedIn">
<i class="fab fa-linkedin"></i>
</div>
<div class="share-btn" title="Copy Link">
<i class="fas fa-link"></i>
</div>
</div>
</div>
</div>
</div>
`).join('');
renderPagination(totalPages);
}
// Render pagination
function renderPagination(totalPages) {
const pagination = document.getElementById('pagination');
if (totalPages <= 1) {
pagination.innerHTML = '';
return;
}
let html = '';
if (currentPage > 1) {
html += `<button class="page-btn" onclick="changePage(${currentPage - 1})"><i class="fas fa-chevron-left"></i></button>`;
}
for (let i = 1; i <= totalPages; i++) {
html += `<button class="page-btn ${i === currentPage ? 'active' : ''}" onclick="changePage(${i})">${i}</button>`;
}
if (currentPage < totalPages) {
html += `<button class="page-btn" onclick="changePage(${currentPage + 1})"><i class="fas fa-chevron-right"></i></button>`;
}
pagination.innerHTML = html;
}
// Change page
function changePage(page) {
currentPage = page;
renderBlogPosts();
window.scrollTo({ top: 0, behavior: 'smooth' });
}
// Format date
function formatDate(date) {
const options = { year: 'numeric', month: 'short', day: 'numeric' };
return date.toLocaleDateString('en-US', options);
}
// Filter functionality
document.querySelectorAll('.filter-tab').forEach(tab => {
tab.addEventListener('click', function() {
document.querySelectorAll('.filter-tab').forEach(t => t.classList.remove('active'));
this.classList.add('active');
currentFilter = this.dataset.source;
currentPage = 1;
renderBlogPosts();
});
});
// Search functionality
document.getElementById('searchInput').addEventListener('input', function(e) {
searchQuery = e.target.value;
currentPage = 1;
renderBlogPosts();
});
// Newsletter form
document.getElementById('newsletterForm').addEventListener('submit', function(e) {
e.preventDefault();
alert('Thank you for subscribing! You will receive updates via email.');
this.reset();
});
// Share button functionality
document.addEventListener('click', function(e) {
if (e.target.closest('.share-btn')) {
const btn = e.target.closest('.share-btn');
const icon = btn.querySelector('i');
if (icon.classList.contains('fa-twitter')) {
alert('Share on Twitter functionality would be implemented here');
} else if (icon.classList.contains('fa-linkedin')) {
alert('Share on LinkedIn functionality would be implemented here');
} else if (icon.classList.contains('fa-link')) {
alert('Link copied to clipboard!');
}
}
});
// Simulate RSS feed loading
function loadExternalFeeds() {
// In production, this would fetch from actual RSS feeds
// For now, we're using the static data above
console.log('RSS feeds loaded');
}
// Initialize
renderBlogPosts();
loadExternalFeeds();
</script>
</body>
</html>