From 5cd4cb5f434666d56080480459cef863d9b63176 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 16:12:40 +0000 Subject: [PATCH] Update src/app/tool/[id]/page.tsx --- src/app/tool/[id]/page.tsx | 280 ++----------------------------------- 1 file changed, 14 insertions(+), 266 deletions(-) diff --git a/src/app/tool/[id]/page.tsx b/src/app/tool/[id]/page.tsx index 6d2c381..035b174 100644 --- a/src/app/tool/[id]/page.tsx +++ b/src/app/tool/[id]/page.tsx @@ -1,117 +1,13 @@ "use client"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import Link from "next/link"; -import { useParams } from "next/navigation"; import NavbarStyleApple from "@/components/navbar/NavbarStyleApple/NavbarStyleApple"; import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal"; -import { ArrowLeft, ExternalLink, Star, Check } from "lucide-react"; - -// Mock tool database -const toolsDatabase: Record = { - "chat-gpt": { - name: "ChatGPT", - category: "Chatbots & AI Chat", - description: "ChatGPT is an AI-powered conversational model that can help you with writing, coding, math, creative projects, and much more. The free version provides access to GPT-3.5 with a web interface.", - image: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Al7jyxM8sHalQ2EcbERIFxTIFv/free-ai-chatbot-interface-showing-conver-1773157941901-6080a83c.png", - url: "https://chat.openai.com", - tags: ["No Credit Card", "100% Free", "Browser Based", "No Login Required"], - rating: 4.9, - reviews: 2847, - features: [ - "Conversational AI responses", - "Code generation and debugging", - "Essay writing assistance", - "Math problem solving", - "Creative writing help", - "Research and brainstorming" - ], - verified: true, - updatedDate: "2025-01-08", - pros: [ - "Highly capable language model", - "User-friendly interface", - "Fast response times", - "Supports multiple languages" - ], - cons: [ - "Limited free access during peak hours", - "Sometimes provides inaccurate information" - ] - }, - "midjourney": { - name: "Midjourney", - category: "Image Generation", - description: "Midjourney is an AI image generator that creates high-quality images from text prompts. The free trial provides a limited number of generations to try the service.", - image: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Al7jyxM8sHalQ2EcbERIFxTIFv/category-image-generation.png", - url: "https://www.midjourney.com", - tags: ["Free Trial", "Image Generation", "Discord Based", "AI Art"], - rating: 4.8, - reviews: 3241, - features: [ - "Text-to-image generation", - "Style customization", - "Upscaling and variations", - "Multiple art styles", - "Batch processing", - "Community showcase" - ], - verified: true, - updatedDate: "2025-01-08", - pros: [ - "Produces high-quality images", - "Intuitive prompt system", - "Active community", - "Regular model updates" - ], - cons: [ - "Free trial limited to 25 images", - "Requires Discord access", - "Steep learning curve for advanced features" - ] - }, - "copilot": { - name: "GitHub Copilot", - category: "Coding Assistants", - description: "GitHub Copilot is an AI-powered code assistant that helps you write code faster. Students and educators can use it free, and there's a 60-day free trial for others.", - image: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Al7jyxM8sHalQ2EcbERIFxTIFv/free-ai-coding-assistant-interface-showi-1773157942636-e83a2185.png", - url: "https://github.com/features/copilot", - tags: ["Coding", "Free for Students", "IDE Integration", "Open Source"], - rating: 4.7, - reviews: 2156, - features: [ - "Code completion suggestions", - "Function generation", - "Test writing assistance", - "Multiple language support", - "Context-aware suggestions", - "Documentation generation" - ], - verified: true, - updatedDate: "2025-01-08", - pros: [ - "Accelerates coding workflow", - "Works with popular IDEs", - "Free for students", - "Supports 14+ programming languages" - ], - cons: [ - "Paid subscription required for individuals", - "May suggest suboptimal code", - "Requires careful review of suggestions" - ] - } -}; - -export default function ToolDetailPage() { - const params = useParams(); - const toolId = params.id as string; - - const tool = toolsDatabase[toolId] || toolsDatabase["chat-gpt"]; +export default function ToolDetailPage({ params }: { params: { id: string } }) { const navItems = [ { name: "Explore", id: "tools" }, - { name: "Categories", id: "/categories" }, + { name: "Categories", id: "categories" }, { name: "How It Works", id: "features" }, { name: "Suggest Tool", id: "contact" }, { name: "Blog", id: "https://blog.example.com" }, @@ -131,173 +27,25 @@ export default function ToolDetailPage() { headingFontWeight="medium" > -
-
- - - Back to Categories - -
-
- -
-
-
- {/* Main Content */} -
- {/* Tool Header */} -
-
-
- {tool.name} -
-
-
-

{tool.name}

- {tool.verified && ( -
- - Verified -
- )} -
-

{tool.category}

-
-
- {[...Array(5)].map((_, i) => ( - - ))} -
- {tool.rating} - ({tool.reviews.toLocaleString()} reviews) -
-
-
- - {/* Tags */} -
- {tool.tags.map((tag: string, idx: number) => ( - - {tag} - - ))} -
- - {/* Main CTA Button */} - - Visit {tool.name} - - -
- - {/* Description */} -
-

About This Tool

-

- {tool.description} -

-
- - {/* Features */} -
-

Key Features

-
- {tool.features.map((feature: string, idx: number) => ( -
- - {feature} -
- ))} -
-
- - {/* Pros and Cons */} -
-
-

Pros

-
    - {tool.pros.map((pro: string, idx: number) => ( -
  • - - {pro} -
  • - ))} -
-
-
-

Cons

-
    - {tool.cons.map((con: string, idx: number) => ( -
  • -
    - {con} -
  • - ))} -
-
-
-
- - {/* Sidebar */} -
-
-

Quick Info

- -
-

Verified on:

-

{tool.updatedDate}

-
- -
-

Pricing:

-
- 100% Free -
-
- - -
-
-
-
+
+
+

+ Tool Details +

+

+ Loading tool information for ID: {params.id} +

+