// Sample AI tools data const aiTools = [ { id: 1, name: "ChatGPT", category: "Text Generation", description: "Advanced AI chatbot that can engage in conversation, answer questions, and assist with various text-based tasks.", image: "http://static.photos/technology/640x360/1", pricing: "Freemium", website: "https://chat.openai.com", bestFor: [ "General knowledge questions", "Content creation", "Coding assistance", "Idea generation" ], limitations: [ "Knowledge cutoff in 2023", "Can sometimes hallucinate facts", "Limited context window" ], tags: ["chat", "text", "productivity"] }, { id: 2, name: "Midjourney", category: "Image Generation", description: "AI-powered image generation tool that creates stunning visuals from text prompts.", image: "http://static.photos/art/640x360/2", pricing: "Paid", website: "https://www.midjourney.com", bestFor: [ "Concept art", "Marketing visuals", "Creative inspiration", "Digital artwork" ], limitations: [ "Requires Discord to use", "No free tier", "Limited control over output" ], tags: ["images", "art", "design"] }, { id: 3, name: "GitHub Copilot", category: "Code Assistance", description: "AI pair programmer that suggests code and entire functions in real-time right from your editor.", image: "http://static.photos/code/640x360/3", pricing: "Paid", website: "https://github.com/features/copilot", bestFor: [ "Code completion", "Learning new languages", "Boosting productivity", "Reducing boilerplate" ], limitations: [ "Can suggest incorrect code", "Requires careful review", "Subscription cost" ], tags: ["coding", "developer", "productivity"] }, { id: 4, name: "DALL-E 3", category: "Image Generation", description: "Advanced AI system that can create realistic images and art from a description in natural language.", image: "http://static.photos/art/640x360/4", pricing: "Freemium", website: "https://openai.com/dall-e", bestFor: [ "Quick concept visualization", "Marketing materials", "Creative projects", "Prototyping" ], limitations: [ "Limited free generations", "Output resolution constraints", "Prompt interpretation can vary" ], tags: ["images", "art", "design"] }, { id: 5, name: "Claude", category: "Text Generation", description: "AI assistant focused on being helpful, harmless, and honest in conversations.", image: "http://static.photos/technology/640x360/5", pricing: "Freemium", website: "https://claude.ai", bestFor: [ "Detailed analysis", "Content summarization", "Ethical considerations", "Long document processing" ], limitations: [ "More conservative outputs", "Smaller user base than ChatGPT", "Fewer integrations" ], tags: ["chat", "text", "analysis"] }, { id: 6, name: "ElevenLabs", category: "Audio Tools", description: "AI voice generation platform that creates natural sounding speech from text.", image: "http://static.photos/audio/640x360/6", pricing: "Freemium", website: "https://elevenlabs.io", bestFor: [ "Voiceovers", "Audiobook narration", "Podcast production", "Accessibility features" ], limitations: [ "Limited free characters", "Some voices sound artificial", "Emotional range can be limited" ], tags: ["audio", "voice", "speech"] }, { id: 7, name: "RunwayML", category: "Video Tools", description: "Creative toolkit that makes it easy to experiment with AI for video generation and editing.", image: "http://static.photos/video/640x360/7", pricing: "Freemium", website: "https://runwayml.com", bestFor: [ "Video editing automation", "Special effects", "AI-generated video", "Creative experimentation" ], limitations: [ "Steep learning curve", "Limited free credits", "Processing can be slow" ], tags: ["video", "editing", "creative"] }, { id: 8, name: "Notion AI", category: "Productivity", description: "AI-powered workspace that helps with writing, summarization, and organization.", image: "http://static.photos/office/640x360/8", pricing: "Paid", website: "https://www.notion.so/product/ai", bestFor: [ "Note organization", "Document summarization", "Task management", "Knowledge bases" ], limitations: [ "Requires Notion subscription", "Limited standalone features", "Best within Notion ecosystem" ], tags: ["productivity", "writing", "organization"] }, { id: 9, name: "Canva AI", category: "Design", description: "Design platform with AI tools for image generation, editing, and layout suggestions.", image: "http://static.photos/design/640x360/9", pricing: "Freemium", website: "https://www.canva.com/ai-tools/", bestFor: [ "Quick graphic design", "Social media content", "Presentations", "Non-designers" ], limitations: [ "Limited customization", "Watermark on free tier", "Generic templates" ], tags: ["design", "images", "marketing"] }, { id: 10, name: "Perplexity", category: "Research", description: "AI-powered answer engine that provides accurate, sourced answers to complex questions.", image: "http://static.photos/research/640x360/10", pricing: "Freemium", website: "https://www.perplexity.ai", bestFor: [ "Research questions", "Fact-checking", "Learning new topics", "Up-to-date information" ], limitations: [ "Smaller model than some competitors", "Fewer creative capabilities", "Limited conversation memory" ], tags: ["research", "answers", "knowledge"] } ]; // Load tools on page load document.addEventListener('DOMContentLoaded', function() { renderTools(aiTools); setupEventListeners(); }); function renderTools(tools) { const container = document.getElementById('tools-container'); container.innerHTML = ''; tools.forEach(tool => { const toolCard = document.createElement('div'); toolCard.className = 'tool-card bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg cursor-pointer'; toolCard.innerHTML = ` ${tool.name}

${tool.name}

${tool.category}

${tool.description}

`; container.appendChild(toolCard); }); feather.replace(); } function setupEventListeners() { // View details buttons document.querySelectorAll('.view-details').forEach(button => { button.addEventListener('click', function() { const toolId = parseInt(this.getAttribute('data-id')); const tool = aiTools.find(t => t.id === toolId); showToolDetails(tool); }); }); // Close modal button document.getElementById('close-modal').addEventListener('click', function() { document.getElementById('tool-modal').classList.add('hidden'); }); // Modal backdrop click document.getElementById('tool-modal').addEventListener('click', function(e) { if (e.target === this) { this.classList.add('hidden'); } }); } function showToolDetails(tool) { document.getElementById('modal-title').textContent = tool.name; document.getElementById('modal-category').textContent = tool.category; document.getElementById('modal-image').src = tool.image; document.getElementById('modal-image').alt = tool.name; document.getElementById('modal-description').textContent = tool.description; document.getElementById('modal-pricing').textContent = tool.pricing; document.getElementById('modal-website').href = tool.website; const bestForList = document.getElementById('modal-best-for'); bestForList.innerHTML = ''; tool.bestFor.forEach(item => { const li = document.createElement('li'); li.textContent = item; bestForList.appendChild(li); }); const limitationsList = document.getElementById('modal-limitations'); limitationsList.innerHTML = ''; tool.limitations.forEach(item => { const li = document.createElement('li'); li.textContent = item; limitationsList.appendChild(li); }); document.getElementById('tool-modal').classList.remove('hidden'); feather.replace(); }