-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
662 lines (589 loc) · 33.1 KB
/
index.html
File metadata and controls
662 lines (589 loc) · 33.1 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
<!DOCTYPE html>
<html lang="en" data-theme="dark" data-lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Guilherme Videira Marques | Cloud Engineer</title>
<meta name="description" content="Portfolio of Guilherme Videira Marques - Cloud Computing Student & Aspiring Cloud Engineer based in Luxembourg. Building reliable infrastructure, automating workflows, and turning ideas into polished web experiences.">
<meta name="keywords" content="Cloud Computing, DevOps, Infrastructure, Docker, Kubernetes, Luxembourg, BTS Cloud Computing">
<meta name="author" content="Guilherme Videira Marques">
<link rel="canonical" href="https://vidguicode.github.io/VidGuiCode/">
<!-- Open Graph / Facebook -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://vidguicode.github.io/VidGuiCode/">
<meta property="og:title" content="Guilherme Videira Marques | Cloud Engineer">
<meta property="og:description" content="Cloud Computing Student & Future Infrastructure Architect. Building reliable infrastructure, automating workflows, and turning ideas into polished web experiences.">
<meta property="og:image" content="https://vidguicode.github.io/VidGuiCode/assets/img/hero-profile.webp">
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="pt_PT">
<meta property="og:locale:alternate" content="de_DE">
<meta property="og:locale:alternate" content="fr_FR">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://vidguicode.github.io/VidGuiCode/">
<meta name="twitter:title" content="Guilherme Videira Marques | Cloud Engineer">
<meta name="twitter:description" content="Cloud Computing Student & Future Infrastructure Architect based in Luxembourg.">
<meta name="twitter:image" content="https://vidguicode.github.io/VidGuiCode/assets/img/hero-profile.webp">
<!-- Fonts - Preload critical 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=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<!-- Preload critical assets -->
<link rel="preload" href="assets/img/formal-profile.webp" as="image" fetchpriority="high">
<link rel="preload" href="assets/css/styles.css" as="style">
<!-- Icons -->
<script src="assets/js/icons.js" defer></script>
<!-- Flags - Load locally -->
<link rel="stylesheet" href="assets/css/flag-icons-minimal.css">
<!-- Fuse.js for fuzzy search -->
<script src="assets/js/fuse.min.js"></script>
<!-- Favicon -->
<link rel="icon" type="image/svg+xml" href="assets/img/logos/vidguicode-favicon.svg">
<link rel="apple-touch-icon" href="assets/img/logos/vidguicode-favicon.svg">
<!-- Styles -->
<link rel="stylesheet" href="assets/css/styles.css">
<!-- Structured Data (JSON-LD) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"name": "Guilherme Videira Marques",
"jobTitle": "Cloud Computing Student",
"url": "https://vidguicode.github.io/VidGuiCode/",
"sameAs": [
"https://www.linkedin.com/in/guilherme-videira-marques/",
"https://github.com/VidGuiCode"
],
"address": {
"@type": "PostalAddress",
"addressLocality": "Differdange",
"addressCountry": "LU"
},
"alumniOf": {
"@type": "EducationalOrganization",
"name": "Lycée Guillaume Kroll"
},
"knowsLanguage": ["Portuguese", "Luxembourgish", "German", "French", "English"]
}
</script>
<!-- Translations - Load early (needed by inline scripts) -->
<script src="assets/js/translations/core.js"></script>
<script src="assets/js/i18n.js"></script>
</head>
<body>
<!-- Skip to main content link for accessibility -->
<a href="#home" class="skip-link">Skip to main content</a>
<div class="grid-background" aria-hidden="true"></div>
<!-- Search Modal (generated by search.js) -->
<div id="search-container"></div>
<!-- CV Modal (Mobile-friendly) -->
<div id="cv-modal" class="cv-modal" role="dialog" aria-modal="true" aria-labelledby="cv-modal-title" aria-hidden="true">
<div class="cv-modal-overlay" id="cv-modal-overlay"></div>
<div class="cv-modal-content">
<div class="cv-modal-header">
<h2 id="cv-modal-title" class="cv-modal-title" data-i18n="contact.cv">Download CV</h2>
<button id="cv-modal-close" class="cv-modal-close" type="button" aria-label="Close">
<i data-lucide="x" aria-hidden="true"></i>
</button>
</div>
<div id="cv-modal-list" class="cv-modal-list" role="menu" aria-label="CV languages"></div>
</div>
</div>
<!-- Navbar (generated by navbar.js) -->
<div id="navbar-container"></div>
<main class="container">
<!-- Hero Section -->
<section id="home" class="hero-grid" data-nav-label="Home">
<div class="card hero-text">
<div class="badge" data-i18n="hero.badge">AVAILABLE FOR OPPORTUNITIES</div>
<h1>Guilherme<br>Videira Marques</h1>
<h2 class="subtitle" data-i18n="hero.subtitle">Cloud Computing Student & Future Infrastructure Architect.</h2>
<p data-i18n="hero.description">Building reliable infrastructure, automating workflows, and turning ideas into polished web experiences. 19 years old, based in Luxembourg.</p>
<div class="hero-actions">
<a href="#contact" class="btn primary" data-i18n="hero.cta.contact">Get in Touch</a>
<a href="#projects" class="btn secondary" data-i18n="hero.cta.work">View Work</a>
</div>
</div>
<div class="card hero-image">
<img src="assets/img/formal-profile.webp" alt="Guilherme Videira Marques" class="profile-img" fetchpriority="high" width="400" height="500">
</div>
<div class="card stat-box">
<i data-lucide="server" class="accent-icon"></i>
<h3 data-i18n="stat.homelab">Homelab</h3>
<p data-i18n="stat.homelab.desc">Hybrid Infrastructure</p>
</div>
<div class="card stat-box">
<i data-lucide="cpu" class="accent-icon"></i>
<h3 data-i18n="stat.devops">DevOps</h3>
<p data-i18n="stat.devops.desc">Docker & Kubernetes</p>
</div>
<div class="card stat-box">
<i data-lucide="globe" class="accent-icon"></i>
<h3 data-i18n="stat.network">Network</h3>
<p data-i18n="stat.network.desc">CCNA & Security</p>
</div>
<div class="card stat-box">
<i data-lucide="code-2" class="accent-icon"></i>
<h3 data-i18n="stat.development">Development</h3>
<p data-i18n="stat.development.desc">Full Stack & AI</p>
</div>
</section>
<!-- About Section -->
<section id="about" class="section-grid" data-nav-label="About">
<div class="section-header">
<h2 data-i18n="about.title">About Me</h2>
<div class="line"></div>
</div>
<div class="card about-content">
<div class="about-item">
<i data-lucide="map-pin"></i>
<p data-i18n="about.p1" data-i18n-html>I'm a cloud-computing enthusiast from <strong>Differdange, Luxembourg</strong>. Currently studying for my <strong>BTS Cloud Computing (2025–2027)</strong> at Lycée Guillaume Kroll, building on a solid foundation as a Computer Technician.</p>
</div>
<div class="about-item">
<i data-lucide="zap"></i>
<p data-i18n="about.p2" data-i18n-html>I don't just learn concepts; I build them. From hosting my own media infrastructure to developing AI-powered tools like <strong>Cylro</strong>, I'm obsessed with how systems work together.</p>
</div>
<div class="about-facts">
<div class="about-fact">
<i data-lucide="languages"></i>
<div>
<p class="about-fact-title" data-i18n="about.languages.intro">Fluent in 5 languages, thriving in multicultural environments:</p>
<div class="tags">
<span data-i18n="about.languages.portuguese">Portuguese (C1)</span>
<span data-i18n="about.languages.luxembourgish">Luxembourgish (C1)</span>
<span data-i18n="about.languages.english">English (C1)</span>
<span data-i18n="about.languages.german">German (B2)</span>
<span data-i18n="about.languages.french">French (B2)</span>
</div>
</div>
</div>
<div class="about-fact">
<i data-lucide="heart"></i>
<div>
<p class="about-fact-title" data-i18n="about.hobbies.intro">Beyond tech, I stay active and creative:</p>
<div class="tags">
<span data-i18n="about.hobbies.gym">Strength Training</span>
<span data-i18n="about.hobbies.basketball">Basketball</span>
<span data-i18n="about.hobbies.design">Graphic Design</span>
<span data-i18n="about.hobbies.building">Building Tech Projects</span>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Skills Section -->
<section id="skills" class="section-grid skills-compact" data-nav-label="Skills" data-scroll-offset="60">
<div class="section-header">
<h2 data-i18n="skills.title">Tech Stack</h2>
<div class="line"></div>
</div>
<div class="card skill-stack-card">
<div class="skill-stack-header">
<i data-lucide="server-cog"></i>
<h3 data-i18n="skills.infrastructure.title">Infrastructure & Cloud</h3>
</div>
<div class="skill-chip-grid">
<span class="skill-chip">K3s</span>
<span class="skill-chip">Docker / Compose</span>
<span class="skill-chip">Oracle Cloud</span>
<span class="skill-chip">Linux Server</span>
</div>
</div>
<div class="card skill-stack-card">
<div class="skill-stack-header">
<i data-lucide="network"></i>
<h3 data-i18n="skills.network.title">Network Engineering</h3>
</div>
<div class="skill-chip-grid">
<span class="skill-chip">CCNA Fundamentals</span>
<span class="skill-chip">WireGuard (VPN)</span>
<span class="skill-chip">DNS Management</span>
<span class="skill-chip">Caddy (Proxy + TLS)</span>
</div>
</div>
<div class="card skill-stack-card">
<div class="skill-stack-header">
<i data-lucide="code-2"></i>
<h3 data-i18n="skills.development.title">Full-Stack Development</h3>
</div>
<div class="skill-chip-grid">
<span class="skill-chip">PHP</span>
<span class="skill-chip">Node.js</span>
<span class="skill-chip">Svelte / SvelteKit</span>
<span class="skill-chip">Vue 3 / Nuxt 4</span>
<span class="skill-chip">Python / FastAPI</span>
</div>
</div>
</section>
<!-- Projects Section -->
<section id="projects" class="section-grid" data-nav-label="Projects">
<div class="section-header">
<h2 data-i18n="projects.title">Featured Projects</h2>
<div class="line"></div>
</div>
<!-- Home Lab Project -->
<a href="projects/project-homelab.html" class="card project-card project-card-link">
<div class="project-icon">
<i data-lucide="server-cog"></i>
</div>
<h3 data-i18n="projects.homelab.title">Home Lab Personal Cloud</h3>
<p class="project-desc" data-i18n="projects.homelab.desc">A hybrid 3-node cluster combining Raspberry Pi, laptop, and Oracle Cloud VPS. Powers media streaming, tools, and secure remote access.</p>
<div class="tags">
<span>K3s</span>
<span>Docker</span>
<span>WireGuard</span>
<span>Tailscale</span>
<span>Cloudflare</span>
</div>
<div class="project-cta">
<span data-i18n="projects.homelab.cta">View Case Study</span>
<i data-lucide="arrow-right"></i>
</div>
</a>
<a href="projects/project-pif.html" class="card project-card project-card-link">
<div class="project-icon">
<i data-lucide="sprout"></i>
</div>
<h3><span data-i18n="projects.plant.title">Smart Plant Monitoring (PIF)</span> <span class="score-badge">59/60</span></h3>
<p class="project-desc" data-i18n="projects.plant.desc">Final project: Full IoT system with ESP8266 nodes, Raspberry Pi hub, web dashboard, enterprise networking, and automated backups.</p>
<div class="tags">
<span>IoT</span>
<span>ESP8266</span>
<span>Raspberry Pi</span>
<span>MariaDB</span>
<span>Networking</span>
</div>
<div class="project-cta">
<span data-i18n="projects.homelab.cta">View Case Study</span>
<i data-lucide="arrow-right"></i>
</div>
</a>
<a id="projects-view-more" href="projects.html" class="btn primary" style="grid-column: 1 / -1; justify-self: center; margin-top: 1rem;" data-i18n="projects.viewMore">
View All Projects <i data-lucide="arrow-right" style="width: 16px; height: 16px;"></i>
</a>
</section>
<!-- Certifications Section -->
<section id="certifications" class="section-grid" data-nav-label="Certifications">
<div class="section-header">
<h2 data-i18n="certifications.title">Certifications & Training</h2>
<div class="line"></div>
</div>
<!-- Cert cards will be inserted here by JS -->
<a id="cert-view-more" href="certifications.html" class="btn primary" style="grid-column: 1 / -1; justify-self: center; margin-top: 1rem;" data-i18n="certifications.viewMore">
View All Certifications <i data-lucide="arrow-right" style="width: 16px; height: 16px;"></i>
</a>
</section>
<!-- Experience Section -->
<section id="experience" class="section-grid" data-nav-label="Experience">
<div class="section-header">
<h2 data-i18n="experience.title">Experience & Education</h2>
<div class="line"></div>
</div>
<div class="card experience-card">
<div class="exp-date">
<img src="assets/img/logos/lgk-logo.webp" alt="LGK Logo" loading="lazy" width="120" height="auto">
<span data-i18n="experience.bts.date">2025 ? Present</span>
</div>
<h3 data-i18n="experience.bts.title">BTS Cloud Computing</h3>
<h4 data-i18n="experience.bts.company">Lyc?e Guillaume Kroll</h4>
<p data-i18n="experience.bts.desc">Higher Technical Diploma focused on advanced cloud infrastructure, virtualization, and network administration.</p>
</div>
<div class="card experience-card">
<div class="exp-date">
<img src="assets/img/logos/pcphoneservices-logo.webp" alt="PC Phone Service Logo" loading="lazy" width="120" height="auto">
<span data-i18n="experience.intern.date">Feb-Mar '23 & Sep-Oct '24</span>
</div>
<h3 data-i18n="experience.intern.title">IT Intern</h3>
<h4 data-i18n="experience.intern.company">PC Phone Service</h4>
<p data-i18n="experience.intern.desc">Diagnosed hardware/software issues, deployed OS images, and provided technical support in a fast-paced environment.</p>
</div>
<div class="card experience-card">
<div class="exp-date">
<img src="assets/img/logos/lgk-logo.webp" alt="LGK Logo" loading="lazy" width="120" height="auto">
<span data-i18n="experience.diploma.date">2021 ? 2025</span>
</div>
<h3 data-i18n="experience.diploma.title">Computer Technician Diploma</h3>
<h4 data-i18n="experience.diploma.company">Lyc?e Guillaume Kroll</h4>
<p data-i18n="experience.diploma.desc">Graduated with "Very Good" mention. Final Project score: 59/60.</p>
</div>
</section>
<!-- Contact Section -->
<section id="contact" class="section-grid" data-nav-label="Contact">
<div class="section-header">
<h2 data-i18n="contact.title">Let's Connect</h2>
<div class="line"></div>
</div>
<div class="card contact-card">
<p data-i18n="contact.description">Always open to discussing cloud technologies, infrastructure projects, or new opportunities.</p>
<div class="contact-links">
<a href="https://www.linkedin.com/in/guilherme-videira-marques/" target="_blank" rel="noopener noreferrer" class="contact-item" aria-label="LinkedIn Profile">
<i data-lucide="linkedin" aria-hidden="true"></i>
<span>LinkedIn</span>
</a>
<a href="https://github.com/VidGuiCode" target="_blank" rel="noopener noreferrer" class="contact-item" aria-label="GitHub Profile">
<i data-lucide="github" aria-hidden="true"></i>
<span>GitHub</span>
</a>
<div class="cv-dropdown">
<button type="button" class="contact-item cv-dropdown-toggle" aria-label="Download CV" aria-expanded="false" aria-haspopup="true">
<i data-lucide="file-text" aria-hidden="true"></i>
<span data-i18n="contact.cv">Download CV</span>
</button>
<div class="cv-dropdown-menu" role="menu" aria-hidden="true">
<a href="assets/docs/cv-guilherme-videira-marques-en.pdf" download="Guilherme-Videira-Marques-CV-EN.pdf" class="cv-dropdown-item" role="menuitem" data-i18n="contact.cv.option.en">English (EN)</a>
<a href="assets/docs/cv-guilherme-videira-marques-fr.pdf" download="Guilherme-Videira-Marques-CV-FR.pdf" class="cv-dropdown-item" role="menuitem" data-i18n="contact.cv.option.fr">Français (FR)</a>
</div>
</div>
</div>
</div>
</section>
<footer>
<div style="display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem;">
<img src="assets/img/logos/vidguicode-favicon.svg" alt="VidGuiCode Logo" class="footer-logo">
</div>
<p data-i18n="footer.copyright">© 2025 Guilherme Videira Marques.</p>
</footer>
<!-- Mobile Bottom Navigation -->
<nav class="mobile-nav" role="navigation" aria-label="Mobile navigation">
<a href="#home" aria-label="Home"><i data-lucide="home" aria-hidden="true"></i></a>
<a href="#about" aria-label="About"><i data-lucide="user" aria-hidden="true"></i></a>
<a href="#projects" aria-label="Projects"><i data-lucide="layers" aria-hidden="true"></i></a>
<a href="#contact" aria-label="Contact"><i data-lucide="mail" aria-hidden="true"></i></a>
</nav>
</main>
<script src="assets/js/navbar.js"></script>
<script src="assets/js/projects-data.js"></script>
<script src="assets/js/certifications-data.js"></script>
<script src="assets/js/search.js"></script>
<script src="assets/js/script.js" defer></script>
<script>
// Initialize Lucide icons immediately when DOM is ready
document.addEventListener('DOMContentLoaded', () => {
if (typeof renderIcons !== 'undefined') {
renderIcons();
} else {
// Fallback: wait for script to load
window.addEventListener('load', () => {
if (typeof renderIcons !== 'undefined') {
renderIcons();
}
});
}
});
// Cache DOM elements and sorted data for performance
let cachedSection = null;
let cachedViewMoreBtn = null;
let cachedSortedData = null;
let cachedLang = null;
// Render certifications on index page (optimized)
function renderIndexCertifications() {
try {
// Cache DOM elements (only query once)
if (!cachedSection) cachedSection = document.getElementById('certifications');
if (!cachedViewMoreBtn) cachedViewMoreBtn = document.getElementById('cert-view-more');
if (!cachedSection || !cachedViewMoreBtn) {
return; // Silently fail if elements don't exist yet
}
// Check if data functions are available
if (typeof getCertificationsSortedByRank !== 'function' || typeof getAllFormations !== 'function') {
return; // Data not loaded yet
}
// Cache sorted data (only recompute if language changed or data changed)
const langChanged = getCurrentLang() !== cachedLang;
if (!cachedSortedData || langChanged) {
const certs = getCertificationsSortedByRank();
const allFormations = getAllFormations();
// Filter out future formations (only show completed ones)
const today = new Date();
today.setHours(0, 0, 0, 0);
const formations = allFormations.filter(formation => {
if (!formation.dateCompleted) return false;
const completedDate = new Date(formation.dateCompleted);
completedDate.setHours(0, 0, 0, 0);
return completedDate <= today;
});
// Pre-compute sort orders (avoid repeated Date parsing)
const certItems = certs.map(cert => ({
...cert,
type: 'certification',
sortOrder: cert.level.rank,
_cached: true
}));
const formItems = formations.map(form => ({
...form,
type: 'formation',
sortOrder: form.dateCompleted ? new Date(form.dateCompleted).getTime() : 0,
_cached: true
}));
// Optimize: Only sort what we need (top 2 of each type, then combine)
const topCerts = certItems.slice(0, 2);
const topForms = formItems.sort((a, b) => b.sortOrder - a.sortOrder).slice(0, 2);
// Combine and final sort (smaller array = faster sort)
cachedSortedData = [...topCerts, ...topForms].sort((a, b) => {
if (a.type === 'certification' && b.type === 'formation') return -1;
if (a.type === 'formation' && b.type === 'certification') return 1;
return b.sortOrder - a.sortOrder;
}).slice(0, 2);
cachedLang = getCurrentLang();
}
// Remove existing cert cards (batch DOM operation)
const existingCards = cachedSection.querySelectorAll('.cert-card');
if (existingCards.length > 0) {
existingCards.forEach(card => card.remove());
}
// Use DocumentFragment for batch DOM insertion (faster)
const fragment = document.createDocumentFragment();
cachedSortedData.forEach(item => {
let card;
if (item.type === 'certification') {
const titleKey = item.indexTitleKey || item.nameKey;
const title = titleKey ? t(titleKey, item.name) : item.name;
const statusLine = item.statusKey ? t(item.statusKey, '') : '';
card = document.createElement('div');
card.className = 'card cert-card powered-on';
card.innerHTML = `
<div class="cert-icon">
<img src="${item.image}" alt="${title} badge" class="cert-badge-img" loading="lazy" width="48" height="48">
</div>
<div class="cert-info">
<h3>${title}</h3>
${statusLine ? `<p class="cert-status">${statusLine}</p>` : ''}
</div>
`;
} else if (item.type === 'formation') {
const titleKey = item.nameKey;
const title = titleKey ? t(titleKey, item.name) : item.name;
const dateStr = item.dateCompleted
? new Date(item.dateCompleted).toLocaleDateString(getCurrentLang(), { year: 'numeric', month: 'short' })
: '';
// Determine which logo to use based on theme
const currentTheme = document.documentElement.getAttribute('data-theme') || 'dark';
let logoToUse = null;
if (item.logo) {
if (currentTheme === 'light' && item.logoLight) {
logoToUse = item.logoLight;
} else if (currentTheme === 'dark' && item.logoDark) {
logoToUse = item.logoDark;
} else {
logoToUse = item.logo;
}
}
card = document.createElement('div');
card.className = 'card cert-card powered-on';
card.innerHTML = `
<div class="cert-icon">
${logoToUse ? `
<img src="${logoToUse}" alt="${title}" class="cert-logo ${item.logoLight && currentTheme === 'light' ? 'arns-logo-light-mode' : ''}" loading="lazy" onerror="this.style.display='none'; this.nextElementSibling.style.display='flex';">
<div class="cert-icon-fallback" style="display: none;">
<i data-lucide="book-open"></i>
</div>
` : `
<i data-lucide="book-open" style="width: 32px; height: 32px; color: #8b5cf6;"></i>
`}
</div>
<div class="cert-info">
<h3>${title}</h3>
${dateStr ? `<p class="cert-status">${dateStr}</p>` : ''}
</div>
`;
}
if (card) {
fragment.appendChild(card);
}
});
// Single DOM insertion (much faster)
cachedSection.insertBefore(fragment, cachedViewMoreBtn);
// Re-initialize Lucide icons (only if available)
if (typeof renderIcons !== 'undefined') {
renderIcons();
}
} catch (e) {
// Silently handle errors in production
if (typeof console !== 'undefined' && console.error) {
console.error('Error rendering certifications:', e);
}
}
}
// Clear cache when language changes (for re-rendering)
function clearCertificationCache() {
cachedSortedData = null;
cachedLang = null;
}
// Listen for language changes and render on load
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.lang-dropdown button[data-lang]').forEach(btn => {
btn.addEventListener('click', () => {
// Language is set on data-lang by script.js
clearCertificationCache(); // Clear cache on language change
renderIndexCertifications();
});
});
// Initial render - wait for certifications-data.js to load
if (typeof getCertificationsSortedByRank !== 'undefined') {
renderIndexCertifications();
} else {
// Wait for certifications-data.js to load
window.addEventListener('load', () => {
setTimeout(renderIndexCertifications, 100);
});
}
// Observe theme changes to update logos
const themeObserver = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.type === 'attributes' && mutation.attributeName === 'data-theme') {
renderIndexCertifications();
}
});
});
themeObserver.observe(document.documentElement, { attributes: true });
});
</script>
<!-- Structured Data for Certifications -->
<script type="application/ld+json" id="certifications-structured-data">
{
"@context": "https://schema.org",
"@type": "ItemList",
"name": "Professional Certifications",
"itemListElement": []
}
</script>
<script defer>
// Populate certifications structured data after certifications-data.js loads
document.addEventListener('DOMContentLoaded', () => {
const populateStructuredData = () => {
if (typeof getCertificationsSortedByRank !== 'undefined') {
const certs = getCertificationsSortedByRank();
const structuredData = {
"@context": "https://schema.org",
"@type": "ItemList",
"name": "Professional Certifications",
"itemListElement": certs.map((cert, index) => ({
"@type": "ListItem",
"position": index + 1,
"item": {
"@type": "EducationalOccupationalCredential",
"name": cert.name,
"credentialCategory": cert.category,
"recognizedBy": {
"@type": "Organization",
"name": cert.provider
},
"url": cert.externalUrl || cert.credlyUrl || ""
}
}))
};
const scriptTag = document.getElementById('certifications-structured-data');
if (scriptTag) {
scriptTag.textContent = JSON.stringify(structuredData);
}
} else {
// Retry if not loaded yet
setTimeout(populateStructuredData, 100);
}
};
populateStructuredData();
});
</script>
</body>
</html>