-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
577 lines (532 loc) · 27.9 KB
/
index.html
File metadata and controls
577 lines (532 loc) · 27.9 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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Minimal Viable AI Toolkit | Decoding Data Science</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png">
<!-- Tailwind CSS for styling -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
<!-- FontAwesome for Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
body { font-family: 'Inter', sans-serif; }
.gradient-text {
background: linear-gradient(to right, #2563EB, #9333EA);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.pulse-dot {
box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
transform: scale(1);
animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
</style>
</head>
<body class="bg-slate-50 text-slate-800 flex flex-col min-h-screen">
<!-- Navbar / Header -->
<header class="bg-white border-b border-slate-200 sticky top-0 z-50 shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-20 flex items-center justify-between">
<div class="flex items-center gap-3">
<!-- Decoding Data Science Logo -->
<img src="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png"
alt="Decoding Data Science Logo"
class="h-12 w-auto object-contain">
<div class="hidden md:block">
<h1 class="text-xl font-bold text-slate-900 leading-tight">AI Toolkit</h1>
<p class="text-xs text-slate-500 font-medium">Minimal Viable Application Suite</p>
</div>
</div>
<div class="flex items-center gap-3">
<!-- Social Share Buttons -->
<div class="hidden sm:flex gap-2 mr-2">
<button onclick="shareSocial('linkedin')" class="text-slate-400 hover:text-[#0077b5] transition" title="Share on LinkedIn"><i class="fab fa-linkedin text-lg"></i></button>
<button onclick="shareSocial('twitter')" class="text-slate-400 hover:text-black transition" title="Share on X"><i class="fab fa-twitter text-lg"></i></button>
<button onclick="shareSocial('whatsapp')" class="text-slate-400 hover:text-[#25D366] transition" title="Share on WhatsApp"><i class="fab fa-whatsapp text-lg"></i></button>
</div>
<a href="https://decodingdatascience.com" target="_blank" class="text-sm font-semibold text-blue-600 hover:text-blue-800 transition flex items-center gap-2 bg-blue-50 px-4 py-2 rounded-full hover:bg-blue-100">
Visit Academy <i class="fas fa-arrow-right text-xs"></i>
</a>
</div>
</div>
</header>
<!-- Hero Section -->
<div class="bg-white pb-12 pt-12 border-b border-slate-100">
<div class="max-w-4xl mx-auto px-4 text-center">
<div class="inline-block px-3 py-1 mb-4 text-xs font-semibold tracking-wider text-blue-600 uppercase bg-blue-100 rounded-full">
Curated Resource
</div>
<h2 class="text-4xl md:text-5xl font-extrabold mb-4 text-slate-900 leading-tight">
Build your <span class="gradient-text">AI Tool Stack</span>
</h2>
<!-- Update Notice -->
<p class="text-xs text-slate-400 font-medium mb-6 uppercase tracking-wide">
<i class="fas fa-sync-alt mr-1"></i> Updated every month • As of 23 Feb 2026
</p>
<p class="text-lg text-slate-600 mb-8 max-w-2xl mx-auto leading-relaxed">
Select your professional need below to discover the best minimal viable AI tools for your workflow, curated specifically for the Rio Scale framework.
</p>
<!-- CTAs: Community & Call -->
<div class="flex flex-col sm:flex-row justify-center items-center gap-4 mb-10">
<a href="https://nas.io/artificialintelligence/community" target="_blank"
class="group relative inline-flex items-center justify-center px-8 py-3 text-base font-medium text-white bg-slate-900 rounded-full hover:bg-slate-800 transition-all shadow-lg hover:shadow-xl">
<i class="fas fa-users mr-2"></i> Join the Community
</a>
<div class="flex flex-col items-center">
<a href="https://nas.io/artificialintelligence/community" target="_blank"
class="relative inline-flex items-center justify-center px-8 py-3 text-base font-bold text-white bg-gradient-to-r from-red-600 to-pink-600 rounded-full hover:from-red-700 hover:to-pink-700 transition-all shadow-lg hover:shadow-xl hover:scale-105">
<span class="absolute -top-2 -right-2 h-4 w-4 bg-red-500 rounded-full pulse-dot"></span>
<i class="fas fa-video mr-2"></i> Join Weekly Call
</a>
<!-- Countdown Section -->
<div class="text-xs font-bold text-red-600 mt-2 flex items-center gap-1">
<i class="fas fa-clock animate-pulse"></i> Free for next <span id="countdown" class="font-mono text-sm ml-1 bg-red-50 px-1 rounded text-red-700 border border-red-100">30:00</span>
</div>
</div>
</div>
<!-- Interactive Filter Buttons -->
<div class="flex flex-wrap justify-center gap-3" id="filter-container">
<button onclick="filterTools('all')" class="filter-btn active bg-slate-900 text-white px-6 py-2.5 rounded-full text-sm font-medium transition-all shadow-lg ring-2 ring-slate-900 ring-offset-2 hover:scale-105">
All Tools
</button>
<button onclick="filterTools('coding')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
💻 Coding
</button>
<button onclick="filterTools('writing')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
✍️ Writing
</button>
<button onclick="filterTools('image')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
🎨 Images
</button>
<button onclick="filterTools('video')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
🎥 Video
</button>
<button onclick="filterTools('music')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
🎵 Music
</button>
<button onclick="filterTools('app')" class="filter-btn bg-white text-slate-600 hover:bg-slate-50 border border-slate-200 px-6 py-2.5 rounded-full text-sm font-medium transition-all hover:shadow-md hover:border-blue-200">
📱 App/UI
</button>
</div>
</div>
</div>
<!-- Tool Grid Section -->
<main class="flex-grow max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 w-full">
<!-- Search Bar -->
<div class="max-w-md mx-auto mb-10 relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-search text-slate-400"></i>
</div>
<input type="text" id="searchInput" onkeyup="searchTools()" placeholder="Search tools (e.g., 'avatar', 'python')..."
class="block w-full pl-10 pr-3 py-3 border border-slate-200 rounded-xl leading-5 bg-white placeholder-slate-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 sm:text-sm shadow-sm transition-shadow">
</div>
<div id="tools-grid" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Cards will be injected here by JavaScript -->
</div>
<!-- Empty State -->
<div id="empty-state" class="hidden text-center py-20">
<div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-slate-100 mb-4">
<i class="fas fa-search text-slate-400 text-2xl"></i>
</div>
<h3 class="text-lg font-medium text-slate-900">No tools found</h3>
<p class="text-slate-500 mt-2">Try adjusting your search or filter.</p>
</div>
</main>
<!-- Footer -->
<footer class="bg-slate-900 text-slate-300 py-12 mt-auto">
<div class="max-w-7xl mx-auto px-4 text-center">
<div class="flex justify-center mb-6">
<img src="https://raw.githubusercontent.com/Decoding-Data-Science/airesidency/main/dds-logo-removebg-preview.png"
alt="DDS Logo" class="h-12 bg-white rounded-lg p-2 opacity-90">
</div>
<h4 class="text-white font-semibold text-lg mb-2">Decoding Data Science</h4>
<p class="mb-6 text-slate-400 text-sm max-w-md mx-auto">Empowering professionals with the minimal viable AI toolkit for the future of work.</p>
<div class="flex justify-center gap-6 mb-8">
<button onclick="shareSocial('linkedin')" class="text-slate-400 hover:text-white transition"><i class="fab fa-linkedin text-xl"></i></button>
<button onclick="shareSocial('twitter')" class="text-slate-400 hover:text-white transition"><i class="fab fa-twitter text-xl"></i></button>
<button onclick="shareSocial('whatsapp')" class="text-slate-400 hover:text-white transition"><i class="fab fa-whatsapp text-xl"></i></button>
</div>
<div class="border-t border-slate-800 pt-8 flex flex-col md:flex-row justify-center items-center gap-4 text-xs text-slate-500">
<p>© 2025 Decoding Data Science. All rights reserved.</p>
</div>
</div>
</footer>
<!-- JavaScript Data & Logic -->
<script>
// Countdown Timer Logic
function startCountdown(durationInMinutes) {
let timer = durationInMinutes * 60;
const display = document.querySelector('#countdown');
const interval = setInterval(function () {
const minutes = parseInt(timer / 60, 10);
const seconds = parseInt(timer % 60, 10);
display.textContent =
(minutes < 10 ? "0" + minutes : minutes) + ":" +
(seconds < 10 ? "0" + seconds : seconds);
if (--timer < 0) {
// Reset loop for demo purposes (or handle expiry)
timer = durationInMinutes * 60;
}
}, 1000);
}
// Start countdown on load (30 minutes)
startCountdown(30);
// Social Share Logic
function shareSocial(platform) {
const url = window.location.href;
const text = "Check out this Minimal Viable AI Toolkit by Decoding Data Science! 🚀";
let shareUrl = "";
if (platform === 'linkedin') {
shareUrl = `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(url)}`;
} else if (platform === 'twitter') {
shareUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(text)}&url=${encodeURIComponent(url)}`;
} else if (platform === 'whatsapp') {
shareUrl = `https://api.whatsapp.com/send?text=${encodeURIComponent(text + " " + url)}`;
}
if(shareUrl) window.open(shareUrl, '_blank', 'width=600,height=400');
}
// Data derived strictly from the PDF content
const tools = [
// CODING
{
name: "GitHub Copilot",
category: "coding",
price: "Paid",
domain: "github.com",
desc: "AI pair-programmer integrated into code editors. Suggests whole lines or functions as you type."
},
{
name: "AWS Q Developer",
category: "coding",
price: "Free/Paid",
domain: "aws.amazon.com",
desc: "AWS coding companion focused on cloud/backend. Includes security scanning and AWS integration."
},
{
name: "Codeium",
category: "coding",
price: "Free",
domain: "codeium.com",
desc: "Fast, free AI code completion supporting 70+ languages with minimal latency."
},
{
name: "Tabnine",
category: "coding",
price: "Freemium",
domain: "tabnine.com",
desc: "Privacy-focused AI coding assistant that can run locally or on-cloud for secure development."
},
{
name: "ChatGPT (Coding)",
category: "coding",
price: "Free/Paid",
domain: "openai.com",
desc: "Powerful aide for generating snippets, debugging, and explaining code logic in plain English."
},
// WRITING
{
name: "ChatGPT (Writing)",
category: "writing",
price: "Free/Paid",
domain: "openai.com",
desc: "Versatile AI writer for blogs, marketing copy, social posts, and brainstorming ideas."
},
{
name: "Copy.ai",
category: "writing",
price: "Freemium",
domain: "copy.ai",
desc: "Generates ready-to-publish drafts for blogs and social media with minimal editing required."
},
{
name: "Jasper",
category: "writing",
price: "Paid",
domain: "jasper.ai",
desc: "Marketing-focused AI with templates and 'brand voice' features for consistent team content."
},
{
name: "Writesonic",
category: "writing",
price: "Freemium",
domain: "writesonic.com",
desc: "All-in-one platform with real-time web search capabilities (ChatSonic) and SEO tools."
},
{
name: "GrammarlyGO",
category: "writing",
price: "Freemium",
domain: "grammarly.com",
desc: "AI writing assistant integrated into your workflow for polishing text, tone, and clarity in-place."
},
// IMAGE
{
name: "Midjourney",
category: "image",
price: "Paid",
domain: "midjourney.com",
desc: "Benchmark for artistic quality, producing highly detailed, cinematic visuals via Discord."
},
{
name: "DALL-E 3",
category: "image",
price: "Free/Paid",
domain: "bing.com",
desc: "Excels at understanding nuanced prompts and following specific instructions accurately."
},
{
name: "Stable Diffusion",
category: "image",
price: "Free (Local)",
domain: "stability.ai",
desc: "Open-source generator prized for unlimited customization, local hosting, and community models."
},
{
name: "Adobe Firefly",
category: "image",
price: "Freemium",
domain: "adobe.com",
desc: "Commercially safe AI integrated into Photoshop for generative fill and editing."
},
{
name: "Canva Magic",
category: "image",
price: "Freemium",
domain: "canva.com",
desc: "Easy-to-use AI image generation directly inside design templates for quick social assets."
},
// VIDEO
{
name: "Descript",
category: "video",
price: "Freemium",
domain: "descript.com",
desc: "Edit video by editing text. Includes transcription, voice cloning, and filler word removal."
},
{
name: "Synthesia",
category: "video",
price: "Paid",
domain: "synthesia.io",
desc: "Create professional videos with realistic AI avatars - no cameras, actors, or studios needed."
},
{
name: "Runway ML",
category: "video",
price: "Paid",
domain: "runwayml.com",
desc: "Advanced creative toolkit for VFX, text-to-video generation, and cinematic editing."
},
{
name: "Lumen5",
category: "video",
price: "Freemium",
domain: "lumen5.com",
desc: "Turns text articles or blog posts into engaging video snippets automatically with stock footage."
},
{
name: "Wisecut",
category: "video",
price: "Freemium",
domain: "wisecut.video",
desc: "Automates jump cuts, silences, and background music for punchy talking-head videos."
},
// MUSIC
{
name: "Suno AI",
category: "music",
price: "Free/Paid",
domain: "suno.ai",
desc: "Generates full songs with vocals and lyrics from simple text prompts in seconds."
},
{
name: "Boomy",
category: "music",
price: "Freemium",
domain: "boomy.com",
desc: "Instant song generation for beginners; allows releasing tracks to streaming platforms."
},
{
name: "AIVA",
category: "music",
price: "Freemium",
domain: "aiva.ai",
desc: "Powerful composer for instrumental and cinematic scores with deep MIDI control."
},
{
name: "Mubert",
category: "music",
price: "Freemium",
domain: "mubert.com",
desc: "Generates continuous ambient/background music streams tailored to a specific mood."
},
{
name: "Riffusion",
category: "music",
price: "Free",
domain: "riffusion.com",
desc: "Generates music by visualizing sound as spectrogram images. Fun and experimental."
},
// APP & UI
{
name: "Power Apps Copilot",
category: "app",
price: "Paid",
domain: "microsoft.com",
desc: "Builds functional business apps and databases from natural language descriptions."
},
{
name: "Uizard",
category: "app",
price: "Freemium",
domain: "uizard.io",
desc: "Turns text prompts or hand-drawn sketches into multi-screen UI wireframes."
},
{
name: "Galileo AI",
category: "app",
price: "Paid",
domain: "galileo.ai",
desc: "High-fidelity UI design generator that exports directly to Figma for designers."
},
{
name: "Bubble AI",
category: "app",
price: "Freemium",
domain: "bubble.io",
desc: "No-code web app builder that generates page components and workflow logic from text."
},
{
name: "Wix ADI",
category: "app",
price: "Freemium",
domain: "wix.com",
desc: "Artificial Design Intelligence that automatically builds complete websites based on questions."
}
];
const grid = document.getElementById('tools-grid');
const emptyState = document.getElementById('empty-state');
const buttons = document.querySelectorAll('.filter-btn');
let currentFilter = 'all';
function renderTools(filterCategory, searchTerm = '') {
grid.innerHTML = ''; // Clear grid
// 1. Filter by Category
let filteredTools = filterCategory === 'all'
? tools
: tools.filter(tool => tool.category === filterCategory);
// 2. Filter by Search Term
if (searchTerm) {
const term = searchTerm.toLowerCase();
filteredTools = filteredTools.filter(tool =>
tool.name.toLowerCase().includes(term) ||
tool.desc.toLowerCase().includes(term)
);
}
// 3. Handle Empty State
if (filteredTools.length === 0) {
emptyState.classList.remove('hidden');
} else {
emptyState.classList.add('hidden');
}
// 4. Render Cards
filteredTools.forEach((tool, index) => {
// Dynamically fetch logo using Clearbit API
// Using a fallback strategy in the onerror
const logoUrl = `https://logo.clearbit.com/${tool.domain}`;
const card = document.createElement('div');
card.className = 'bg-white rounded-xl border border-slate-200 p-6 transition-all duration-300 card-hover flex flex-col h-full opacity-0 animate-fade-in';
card.style.animationDelay = `${index * 50}ms`;
card.style.animationFillMode = 'forwards';
// Color coding for price tags
let priceColorClass = 'bg-slate-100 text-slate-800';
if(tool.price.toLowerCase().includes('free')) priceColorClass = 'bg-green-100 text-green-800';
if(tool.price.toLowerCase().includes('paid')) priceColorClass = 'bg-blue-100 text-blue-800';
if(tool.price.toLowerCase().includes('freemium')) priceColorClass = 'bg-purple-100 text-purple-800';
card.innerHTML = `
<div class="flex items-start justify-between mb-4">
<div class="bg-white p-2 rounded-lg border border-slate-100 shadow-sm w-16 h-16 flex items-center justify-center overflow-hidden">
<img src="${logoUrl}" alt="${tool.name}" class="max-w-full max-h-full object-contain"
onerror="this.onerror=null; this.src='https://ui-avatars.com/api/?name=${encodeURIComponent(tool.name)}&background=random&color=fff&size=64'">
</div>
<span class="inline-flex items-center px-2.5 py-1 rounded-md text-xs font-bold uppercase tracking-wide ${priceColorClass}">
${tool.price}
</span>
</div>
<div class="mb-2">
<h3 class="text-xl font-bold text-slate-900 leading-snug">${tool.name}</h3>
<a href="https://${tool.domain}" target="_blank" class="text-xs text-slate-400 hover:text-blue-600 transition truncate block hover:underline">${tool.domain}</a>
</div>
<p class="text-slate-600 text-sm mb-6 flex-grow leading-relaxed border-t border-slate-50 pt-3 mt-1">
${tool.desc}
</p>
<a href="https://${tool.domain}" target="_blank" class="mt-auto w-full inline-flex justify-center items-center px-4 py-2.5 border border-transparent text-sm font-semibold rounded-lg text-white bg-gradient-to-r from-blue-600 to-indigo-600 hover:from-blue-700 hover:to-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-all shadow-sm hover:shadow">
Try Tool <i class="fas fa-external-link-alt ml-2 text-xs"></i>
</a>
`;
grid.appendChild(card);
});
}
function filterTools(category) {
currentFilter = category;
// Update buttons visual state
buttons.forEach(btn => {
btn.classList.remove('bg-slate-900', 'text-white', 'ring-2', 'ring-slate-900', 'ring-offset-2', 'active', 'scale-105');
btn.classList.add('bg-white', 'text-slate-600', 'border', 'border-slate-200');
// Add click handler logic for visual active state
if(btn.getAttribute('onclick').includes(category)) {
btn.classList.remove('bg-white', 'text-slate-600', 'border', 'border-slate-200');
btn.classList.add('bg-slate-900', 'text-white', 'ring-2', 'ring-slate-900', 'ring-offset-2', 'active', 'scale-105');
}
});
// Reset search when changing category for cleaner UX
document.getElementById('searchInput').value = '';
renderTools(category);
}
function searchTools() {
const searchTerm = document.getElementById('searchInput').value;
renderTools(currentFilter, searchTerm);
}
// Add custom animation styles
const style = document.createElement('style');
style.innerHTML = `
@keyframes fade-in {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation-name: fade-in;
animation-duration: 0.4s;
}
`;
document.head.appendChild(style);
// Initial render
renderTools('all');
</script>
</body>
</html>