-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
512 lines (457 loc) · 30.5 KB
/
index.html
File metadata and controls
512 lines (457 loc) · 30.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Guild: Interactive Learning Pathways</title>
<!-- Social Media Metadata -->
<meta property="og:title" content="AI Guild: Interactive Learning Pathways">
<meta property="og:description" content="Explore technical and business AI pathways with Decoding Data Science. Gain hands-on industry experience.">
<meta property="og:image" content="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png">
<meta property="og:url" content="https://decoding-data-science.github.io/aiguild/">
<meta name="twitter:card" content="summary_large_image">
<!-- Favicon -->
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background-color: #fdfbf7;
color: #1f2937;
overflow-x: hidden;
}
.chart-container {
position: relative;
width: 100%;
max-width: 100%;
height: 280px;
margin: 0 auto;
}
@media (min-width: 768px) {
.chart-container { height: 220px; }
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-4px);
box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}
.active-tab-tech {
border-bottom: 3px solid #0f766e;
color: #0f766e;
font-weight: 700;
}
.active-tab-nontech {
border-bottom: 3px solid #c2410c;
color: #c2410c;
font-weight: 700;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 10px;
}
</style>
<!-- Chosen Palette: DDS Official - Warm Neutrals (#fdfbf7), DDS Teal (#0f766e), and Achievement Orange (#c2410c). -->
<!-- Application Structure Plan:
1. Interactive Dashboard: Centralized navigation using a responsive 12-column grid.
2. Path-Driven Stepper: 4-phase technical journey and 3-phase business journey.
3. Dynamic Course Injection: JavaScript logic rendering all 34+ products including new Statistics and RAG entries.
4. Global Career Sidebar: Persistent access to career-readiness tools and external events.
5. Action-Oriented Footer: Added a "Start Building Now" global CTA to drive community engagement.
-->
<!-- Visualization & Content Choices:
- Doughnut Chart: Resource distribution showing content types.
- Radar Chart: Skill focus area per path.
- NO SVG / NO MERMAID: All icons via FontAwesome and charts via Chart.js Canvas.
-->
<!-- CONFIRMATION: NO SVG graphics used. NO Mermaid JS used. -->
</head>
<body class="min-h-screen flex flex-col custom-scrollbar">
<!-- Top Branding & Navigation -->
<header class="bg-white border-b border-gray-200 sticky top-0 z-50 shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-20">
<div class="flex items-center space-x-4">
<img src="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png" alt="DDS Logo" class="h-12 w-auto">
<div class="hidden md:block">
<h1 class="text-xl font-bold text-gray-900 tracking-tight">AI Guild Navigator</h1>
<p class="text-xs text-teal-700 font-semibold tracking-widest uppercase">Decoding Data Science</p>
</div>
</div>
<div class="flex items-center space-x-2 md:space-x-6">
<button id="btn-tech" onclick="switchPath('technical')" class="px-3 py-2 rounded-md text-sm font-bold transition-all">
<i class="fas fa-terminal mr-2 text-teal-600"></i>Technical
</button>
<button id="btn-nontech" onclick="switchPath('nonTechnical')" class="px-3 py-2 rounded-md text-sm font-medium text-gray-500 hover:text-gray-700 transition-all">
<i class="fas fa-user-tie mr-2 text-orange-600"></i>Business
</button>
<a href="https://decoding-data-science.github.io/aiguild/" target="_blank" class="hidden lg:flex items-center text-xs font-bold text-gray-400 hover:text-teal-600 transition-colors uppercase tracking-widest">
Community <i class="fas fa-external-link-alt ml-1"></i>
</a>
</div>
</div>
</div>
</header>
<!-- Global CTA Banner -->
<section class="bg-teal-950 text-white py-3">
<div class="max-w-7xl mx-auto px-4 flex flex-col md:flex-row justify-between items-center text-[11px] md:text-xs font-bold tracking-wider uppercase">
<div class="flex items-center mb-2 md:mb-0">
<span class="bg-orange-500 text-white px-2 py-0.5 rounded-full mr-3 animate-pulse">Live</span>
Career Talks & Meetups: Attend our next live session
</div>
<a href="https://nas.io/artificialintelligence/products?product=EVENT&tab=UPCOMING" target="_blank" class="bg-white text-teal-900 px-5 py-2 rounded-lg hover:bg-orange-50 transition-all shadow-sm">
Register Free <i class="fas fa-calendar-check ml-2"></i>
</a>
</div>
</section>
<!-- Main Dashboard -->
<main class="flex-grow max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 w-full grid grid-cols-1 lg:grid-cols-12 gap-8">
<!-- Left Content Area -->
<div class="lg:col-span-8 space-y-8">
<!-- Path Overview -->
<div class="bg-white rounded-3xl shadow-sm border border-gray-100 p-8">
<div class="flex flex-col md:flex-row justify-between items-start mb-10">
<div class="max-w-xl">
<h2 id="path-title" class="text-3xl font-extrabold text-gray-900 mb-3 tracking-tight">Technical Pathway</h2>
<p id="path-desc" class="text-gray-500 leading-relaxed text-sm font-medium"></p>
</div>
<span id="path-badge" class="mt-4 md:mt-0 px-4 py-1 text-[10px] font-bold uppercase tracking-[0.2em] rounded-full ring-1 ring-inset"></span>
</div>
<!-- Progress Stepper -->
<div class="relative py-6">
<div class="absolute top-1/2 left-0 w-full h-1.5 bg-gray-50 -z-10 transform -translate-y-1/2 rounded-full"></div>
<div id="stepper-container" class="flex justify-between items-center w-full"></div>
</div>
</div>
<!-- Learning Content Area -->
<div id="phase-content-area" class="space-y-6">
<div id="phase-header" class="border-l-4 pl-8 py-3 transition-all">
<h3 id="current-phase-title" class="text-2xl font-black text-gray-800 tracking-tight"></h3>
<p id="current-phase-desc" class="text-gray-500 mt-1 text-sm font-medium"></p>
</div>
<!-- Cards Grid -->
<div id="cards-grid" class="grid grid-cols-1 md:grid-cols-2 gap-6"></div>
<!-- Content Completion CTA -->
<div class="mt-12 p-10 bg-teal-50 rounded-[40px] border border-teal-100 text-center shadow-inner">
<h4 class="text-2xl font-black text-teal-900 mb-4 tracking-tight">Ready to build your AI career?</h4>
<p class="text-teal-700 text-sm mb-8 font-medium max-w-lg mx-auto leading-relaxed">Join 90+ members gaining hands-on experience by building actual AI products and landing dream jobs.</p>
<a href="https://nas.io/aiguild/" target="_blank" class="inline-flex items-center px-10 py-5 bg-teal-700 text-white font-black uppercase tracking-[0.15em] rounded-2xl hover:bg-teal-800 transition-all shadow-xl hover:shadow-teal-200 group">
Start Building Now <i class="fas fa-rocket ml-3 group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform"></i>
</a>
</div>
</div>
</div>
<!-- Right Sidebar -->
<div class="lg:col-span-4 space-y-6">
<!-- Curriculum Visualization -->
<div class="bg-white rounded-3xl shadow-sm border border-gray-100 p-8">
<h3 class="text-lg font-black text-gray-800 mb-8 flex items-center uppercase tracking-wider">
<i class="fas fa-chart-pie mr-4 text-teal-600"></i> Learning Insights
</h3>
<div class="space-y-10">
<div class="chart-container">
<canvas id="resourceChart"></canvas>
</div>
<div class="chart-container">
<canvas id="skillChart"></canvas>
</div>
</div>
</div>
<!-- Ongoing Challenges -->
<div class="bg-orange-50 rounded-3xl border border-orange-100 p-8">
<h3 class="text-lg font-black text-orange-900 mb-2 flex items-center uppercase tracking-wider">
<i class="fas fa-trophy mr-4"></i> Challenges
</h3>
<p class="text-[10px] text-orange-700 mb-6 font-bold uppercase tracking-widest">Active & Continuous</p>
<div class="space-y-4">
<a href="https://nas.io/aiguild/challenges/aiguildorientation/home?tab=about" target="_blank" class="flex items-center justify-between p-4 bg-white rounded-2xl border border-orange-200 hover:shadow-lg transition-all group">
<span class="text-xs font-bold text-gray-700">Orientation Challenge</span>
<i class="fas fa-chevron-right text-orange-400 group-hover:translate-x-1 transition-transform"></i>
</a>
<a href="https://nas.io/aiguild/products?product=CHALLENGE" target="_blank" class="flex items-center justify-between p-4 bg-white rounded-2xl border border-orange-200 hover:shadow-lg transition-all group">
<span class="text-xs font-bold text-gray-700">AI Guild Projects</span>
<i class="fas fa-chevron-right text-orange-400 group-hover:translate-x-1 transition-transform"></i>
</a>
<a href="https://nas.io/artificialintelligence/products?product=CHALLENGE&tab=UPCOMING" target="_blank" class="flex items-center justify-between p-4 bg-white rounded-2xl border border-orange-200 hover:shadow-lg transition-all group">
<span class="text-xs font-bold text-gray-700">Global Challenges</span>
<i class="fas fa-chevron-right text-orange-400 group-hover:translate-x-1 transition-transform"></i>
</a>
</div>
</div>
<!-- Career Master (Universal) -->
<div class="bg-slate-900 rounded-3xl p-8 text-white shadow-2xl">
<h3 class="text-lg font-black mb-1 flex items-center uppercase tracking-wider">
<i class="fas fa-user-graduate mr-4 text-teal-400"></i> Career Mastery
</h3>
<p class="text-[9px] text-slate-500 mb-8 uppercase font-bold tracking-[0.3em]">Universal Accelerators</p>
<div id="career-list" class="space-y-4"></div>
</div>
</div>
</main>
<footer class="bg-white border-t border-gray-200 py-16 mt-12">
<div class="max-w-7xl mx-auto px-4 text-center">
<img src="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png" alt="DDS" class="h-12 mx-auto mb-8 opacity-40 grayscale hover:grayscale-0 transition-all">
<p class="text-gray-400 text-[10px] font-black uppercase tracking-[0.5em] mb-8">AI Guild • Decoding Data Science</p>
<div class="flex justify-center space-x-10 text-gray-300 text-2xl">
<a href="https://nas.io/aiguild" target="_blank" class="hover:text-teal-600 transition-colors"><i class="fab fa-linkedin"></i></a>
<a href="https://decoding-data-science.github.io/aiguild/" target="_blank" class="hover:text-teal-600 transition-colors"><i class="fas fa-globe"></i></a>
<a href="https://nas.io/aiguild/" target="_blank" class="hover:text-teal-600 transition-colors"><i class="fas fa-rocket"></i></a>
</div>
</div>
</footer>
<script>
// --- DATA STORE (ALL 34 PRODUCTS) ---
const pathData = {
technical: {
title: "AI Engineer & Data Scientist",
description: "Master foundational coding, advanced mathematics, predictive modeling, and the engineering of autonomous multi-agent systems.",
badge: "Technical Builder",
color: "teal",
skillData: [95, 90, 20, 50, 95],
phases: [
{
id: 1, title: "Foundations", desc: "Core coding, statistics, and data management.",
items: [
{ type: "Course", title: "Python Essential (FastTrack)", link: "https://nas.io/aiguild/courses/python-essential-fasttrack-lms-access", desc: "Rapid entry into Python programming basics." },
{ type: "DS Course", title: "Basic SQL for AI", link: "https://nas.io/aiguild/digital-files/ezve", desc: "Master the data language of AI and ML." },
{ type: "Course", title: "Basic Statistics for AI & ML", link: "https://academy.decodingdatascience.com/basicstatisticsforaiml", desc: "Foundational math and statistics for data science." },
{ type: "DS Course", title: "Advanced Python", link: "https://nas.io/aiguild/digital-files/yirf", desc: "Deep dive into scalable AI logic and systems." },
{ type: "DS Course", title: "Excel for Data Science", link: "https://nas.io/aiguild/digital-files/mism", desc: "Data analysis and reporting essentials." },
{ type: "Course", title: "Git Essentials", link: "https://nas.io/aiguild/digital-files/wvvh", desc: "Industry-standard version control for builders." },
{ type: "Resource", title: "Essential SQL Docs", link: "https://nas.io/aiguild/digital-files/nxmy", desc: "Quick-reference SQL syntax and commands." },
{ type: "Resource", title: "Sample Datasets", link: "https://nas.io/aiguild/digital-files/codi", desc: "Hands-on data for ML model training." }
]
},
{
id: 2, title: "Data Science Core", desc: "Machine learning, visualization, and projects.",
items: [
{ type: "Resource", title: "Machine Learning Docs", link: "https://nas.io/aiguild/digital-files/kfpy", desc: "In-depth ML concepts, math, and theory." },
{ type: "DS Course", title: "Basic PowerBI", link: "https://nas.io/aiguild/digital-files/bjer", desc: "Enterprise-grade visualization and BI." },
{ type: "Recording", title: "AI & DS Project Sessions", link: "https://nas.io/aiguild/digital-files/gdud", desc: "End-to-end implementation of real projects." },
{ type: "Resource", title: "Knowledge Shorts", link: "https://nas.io/aiguild/digital-files/hgvs", desc: "Bite-sized technical insights for quick learning." }
]
},
{
id: 3, title: "Gen AI & LLMs", desc: "Mastering the world of Large Language Models.",
items: [
{ type: "Course", title: "Large Language Models", link: "https://nas.io/aiguild/digital-files/btcn", desc: "Deep dive into LLM architectures and training." },
{ type: "Recording", title: "RAG (Retrieval-Augmented Gen)", link: "https://nas.io/aiguild/products/sgps", desc: "Advanced RAG implementations for AI products." },
{ type: "Course", title: "Prompt Eng for Devs", link: "https://nas.io/aiguild/digital-files/pqsa", desc: "Programmatic interaction and optimization." },
{ type: "Course", title: "Gen AI with Gemini", link: "https://nas.io/aiguild/digital-files/xghu", desc: "Leverage Google's multimodal AI ecosystem." },
{ type: "Resource", title: "Gen AI & LLM Library", link: "https://nas.io/aiguild/digital-files/wmna", desc: "Advanced research materials and tools." }
]
},
{
id: 4, title: "Agentic Engineering", desc: "Building stateful, autonomous systems.",
items: [
{ type: "Course", title: "Master Langchain", link: "https://nas.io/aiguild/digital-files/yltk", desc: "Orchestration for LLM-powered applications." },
{ type: "Course", title: "LangGraph", link: "https://nas.io/aiguild/digital-files/fait", desc: "State-driven multi-agent workflows." },
{ type: "Course", title: "AI Agents Mastery", link: "https://nas.io/aiguild/digital-files/fqux", desc: "Architecture for autonomous AI agents." },
{ type: "Course", title: "Gen AI for Cybersecurity", link: "https://nas.io/aiguild/digital-files/nviu", desc: "Defending systems using AI models." }
]
}
]
},
nonTechnical: {
title: "AI Business Strategist",
description: "Focus on AI literacy, organizational strategy, and personal branding for the modern AI-driven economy.",
badge: "Business Leader",
color: "orange",
skillData: [30, 40, 95, 80, 70],
phases: [
{
id: 1, title: "Corporate Literacy", desc: "Integrating AI into your professional workflow.",
items: [
{ type: "Course", title: "AI @ Work", link: "https://nas.io/aiguild/digital-files/ebzr", desc: "Maximize daily corporate productivity." },
{ type: "Course", title: "AI for Busy People", link: "https://nas.io/aiguild/digital-files/kmho", desc: "Quick overview for busy executives." },
{ type: "Ebook", title: "Prompt Eng Mastery", link: "https://nas.io/aiguild/digital-files/apqy", desc: "Strategic prompting for business leaders." }
]
},
{
id: 2, title: "Strategic Impact", desc: "Strategy, ROI, and measurable outcomes.",
items: [
{ type: "Course", title: "Gen AI for Business", link: "https://nas.io/aiguild/digital-files/udkn", desc: "Strategy and measurement frameworks." },
{ type: "Recording", title: "Outcome Workshops", link: "https://nas.io/aiguild/digital-files/sgps", desc: "Achieving specific business results sessions." },
{ type: "Recording", title: "MasterClass Series", link: "https://nas.io/aiguild/digital-files/xacb", desc: "Leadership lessons in the AI age." }
]
},
{
id: 3, title: "Branding & Growth", desc: "Building presence and authority.",
items: [
{ type: "Course", title: "Linkedin Growth Mastery", link: "https://nas.io/aiguild/digital-files/ytuf", desc: "Thought leadership and personal branding." },
{ type: "Recording", title: "Meetup Sessions", link: "https://nas.io/aiguild/digital-files/mayg", desc: "Networking and latest community trends." }
]
}
]
}
};
const careerData = [
{ id: 1, type: "Job Strategy", title: "Get an AI & Data Job", link: "https://nas.io/aiguild/digital-files/iqia" },
{ id: 2, type: "Webinar", title: "Webinar Career Series", link: "https://nas.io/aiguild/digital-files/lfrz" },
{ id: 3, type: "LinkedIn", title: "Profile Optimization", link: "https://nas.io/aiguild/digital-files/jnqk" },
{ id: 4, type: "Templates", title: "Resume Templates", link: "https://nas.io/aiguild/digital-files/viad" },
{ id: 5, type: "Samples", title: "Resume Samples", link: "https://nas.io/aiguild/digital-files/ikjg" }
];
// --- STATE & RENDERING ---
let currentPath = 'technical';
let currentPhaseIndex = 0;
const els = {
btnTech: document.getElementById('btn-tech'),
btnNonTech: document.getElementById('btn-nontech'),
pathTitle: document.getElementById('path-title'),
pathBadge: document.getElementById('path-badge'),
pathDesc: document.getElementById('path-desc'),
stepperContainer: document.getElementById('stepper-container'),
phaseTitle: document.getElementById('current-phase-title'),
phaseDesc: document.getElementById('current-phase-desc'),
phaseHeader: document.getElementById('phase-header'),
cardsGrid: document.getElementById('cards-grid'),
careerList: document.getElementById('career-list'),
resourceCtx: document.getElementById('resourceChart').getContext('2d'),
skillCtx: document.getElementById('skillChart').getContext('2d')
};
let resourceChart, skillChart;
function initCharts() {
resourceChart = new Chart(els.resourceCtx, {
type: 'doughnut',
data: {
labels: ['Courses', 'Resources', 'Recordings'],
datasets: [{ data: [1,1,1], backgroundColor: ['#0d9488', '#f59e0b', '#6366f1'], borderWidth: 0 }]
},
options: { responsive: true, maintainAspectRatio: false, cutout: '80%', plugins: { legend: { position: 'bottom', labels: { boxWidth: 6, font: { size: 9, weight: 'bold' } } } } }
});
skillChart = new Chart(els.skillCtx, {
type: 'radar',
data: {
labels: ['Logic', 'Data', 'Business', 'Creativity', 'Architecture'],
datasets: [{ label: 'Focus', data: [0,0,0,0,0], backgroundColor: 'rgba(13, 148, 136, 0.1)', borderColor: '#0d9488', pointRadius: 1, borderWidth: 1.5 }]
},
options: { responsive: true, maintainAspectRatio: false, scales: { r: { beginAtZero: true, max: 100, ticks: { display: false } } }, plugins: { legend: { display: false } } }
});
}
function switchPath(pathKey) {
currentPath = pathKey;
currentPhaseIndex = 0;
if (pathKey === 'technical') {
els.btnTech.className = "px-4 py-2 rounded-xl text-xs font-black transition-all active-tab-tech bg-teal-50";
els.btnNonTech.className = "px-4 py-2 rounded-xl text-xs font-bold text-gray-400 hover:text-gray-700 transition-all";
} else {
els.btnTech.className = "px-4 py-2 rounded-xl text-xs font-bold text-gray-400 hover:text-gray-700 transition-all";
els.btnNonTech.className = "px-4 py-2 rounded-xl text-xs font-black transition-all active-tab-nontech bg-orange-50";
}
renderPathView();
updateCharts(pathKey);
}
function renderPathView() {
const data = pathData[currentPath];
const themeColor = data.color;
els.pathTitle.innerText = data.title;
els.pathDesc.innerText = data.description;
els.pathBadge.innerText = data.badge;
els.pathBadge.className = `px-4 py-1 bg-${themeColor}-100 text-${themeColor}-800 text-[9px] font-black uppercase tracking-widest rounded-full ring-1 ring-${themeColor}-200`;
renderStepper(data.phases, themeColor);
renderPhase(currentPhaseIndex);
}
function renderStepper(phases, themeColor) {
let html = '';
phases.forEach((_, index) => {
const isActive = index === currentPhaseIndex;
const activeClass = isActive
? `bg-${themeColor}-600 text-white border-${themeColor}-600 ring-4 ring-${themeColor}-100 scale-110 shadow-lg`
: `bg-white text-gray-400 border-gray-100 hover:border-${themeColor}-400`;
html += `
<button onclick="changePhase(${index})" class="flex flex-col items-center group z-10 transition-all">
<div class="w-12 h-12 rounded-2xl border flex items-center justify-center font-black text-sm transition-all ${activeClass}">${index + 1}</div>
</button>`;
});
els.stepperContainer.innerHTML = html;
}
function changePhase(index) {
currentPhaseIndex = index;
renderPathView();
}
function renderPhase(index) {
const phase = pathData[currentPath].phases[index];
const themeColor = pathData[currentPath].color;
els.phaseTitle.innerText = phase.title;
els.phaseDesc.innerText = phase.desc;
els.phaseHeader.style.borderColor = themeColor === 'teal' ? '#0f766e' : '#c2410c';
let cardsHtml = '';
phase.items.forEach(item => {
const icon = getIcon(item.title);
cardsHtml += `
<div class="bg-white p-6 rounded-3xl border border-gray-100 card-hover flex flex-col justify-between h-full relative group">
<div class="relative z-10">
<div class="flex justify-between items-start mb-6">
<span class="px-2 py-1 rounded-lg text-[8px] font-black uppercase tracking-widest bg-gray-50 text-gray-400 border border-gray-100">${item.type}</span>
<i class="${icon} text-gray-200 text-xl group-hover:text-${themeColor}-300 transition-colors"></i>
</div>
<h4 class="text-lg font-black text-gray-900 mb-2 leading-tight">${item.title}</h4>
<p class="text-xs text-gray-500 leading-relaxed mb-8 font-medium">${item.desc}</p>
</div>
<div class="relative z-10">
<a href="${item.link}" target="_blank" class="w-full text-center py-3.5 bg-${themeColor}-600 text-white text-[10px] font-black uppercase tracking-widest rounded-2xl hover:bg-${themeColor}-800 transition-all shadow-lg active:scale-95 block">
Access Module <i class="fas fa-arrow-right ml-2 text-[8px]"></i>
</a>
</div>
</div>`;
});
els.cardsGrid.innerHTML = cardsHtml;
}
function updateCharts(pathKey) {
const data = pathData[currentPath];
let counts = { Course: 0, Resource: 0, Recording: 0 };
data.phases.forEach(p => p.items.forEach(i => {
if (i.type.includes('Course')) counts.Course++;
else if (i.type.includes('Recording')) counts.Recording++;
else counts.Resource++;
}));
resourceChart.data.datasets[0].data = [counts.Course, counts.Resource, counts.Recording];
skillChart.data.datasets[0].data = data.skillData;
skillChart.data.datasets[0].borderColor = data.color === 'teal' ? '#0d9488' : '#c2410c';
skillChart.update();
resourceChart.update();
}
function getIcon(title) {
const t = title.toLowerCase();
if (t.includes('sql') || t.includes('excel') || t.includes('statistics')) return 'fas fa-calculator';
if (t.includes('python') || t.includes('git')) return 'fas fa-code';
if (t.includes('masterclass') || t.includes('recording') || t.includes('workshop')) return 'fas fa-play-circle';
if (t.includes('prompt') || t.includes('ai') || t.includes('llm') || t.includes('rag')) return 'fas fa-microchip';
if (t.includes('linkedin')) return 'fab fa-linkedin';
return 'fas fa-book';
}
function renderCareer() {
let html = '';
careerData.forEach(item => {
html += `
<a href="${item.link}" target="_blank" class="flex items-center space-x-4 p-4 bg-white/5 rounded-2xl border border-white/10 hover:bg-white/10 transition-all group block">
<div class="w-8 h-8 rounded-xl bg-teal-500/20 flex items-center justify-center flex-shrink-0 group-hover:rotate-12 transition-transform">
<i class="fas fa-star text-teal-400 text-xs"></i>
</div>
<div class="overflow-hidden">
<h5 class="text-xs font-black text-white leading-tight truncate">${item.title}</h5>
<span class="text-[8px] text-teal-500 uppercase font-black tracking-widest">${item.type}</span>
</div>
</a>`;
});
els.careerList.innerHTML = html;
}
window.onload = function() {
initCharts();
renderCareer();
switchPath('technical');
};
</script>
</body>
</html>