"use client"; import Link from "next/link"; import Image from "next/image"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/components/ui/card"; import { AgentFlowDiagram } from "@/components/AgentFlowDiagram"; import { useLanguage } from "@/contexts/LanguageContext"; export default function HomePage() { const { t } = useLanguage(); return (
{/* Hero Section */}
TradingAgentsX Logo

{t.home.title}

{t.nav.tagline}

{/* Core Features Section */}

{t.home.coreFeatures}

{t.home.coreFeaturesDesc}

{/* 12 Professional Agents Section */}

{t.home.professionalAgents}

{t.home.professionalAgentsDesc}

{/* Analyst Team */}

{t.home.analystsTeamTitle}

{/* Research Team */}

{t.home.researchTeamTitle}

{/* Trading Team */}

{t.home.tradingTeamTitle}

{/* Risk Management Team */}

{t.home.riskTeamTitle}

{/* Agent Flow Diagram Section */}

{t.home.workflowTitle}

{t.home.workflowDescription}

{/* LLM Support Section */}

{t.home.llmSupport}

{t.home.llmSupportDesc}

{t.home.llmFeatures}

{/* Workflow Section */}

⚙️ {t.home.workflowTitle}

{t.home.coreFeaturesDesc}

{/* Technical Highlights */}

{t.home.techHighlights}

{/* Call to Action Section */}

{t.home.readyToStart}

{t.home.ctaDescription}

); } function FeatureCard({ title, description, icon, }: { title: string; description: string; icon: string; }) { return (
{icon}
{title}

{description}

); } function AgentCard({ name, role, description, }: { name: string; role: string; description: string; }) { return ( {name} {role}

{description}

); } function LLMProviderCard({ name, models, icon, }: { name: string; models: string[]; icon: string; }) { const logoMap: Record = { OpenAI: "/logos/openai.svg", Anthropic: "/logos/claude-color.svg", "Google Gemini": "/logos/gemini-color.svg", "Grok (xAI)": "/logos/grok.svg", DeepSeek: "/logos/deepseek-color.svg", "Qwen (Alibaba)": "/logos/qwen-color.svg", }; const logoSrc = logoMap[name]; return (
{logoSrc ? (
{`${name}
) : ( {icon} )} {name}
    {models.map((model, index) => (
  • {model}
  • ))}
); } function TechnicalCard({ title, features, }: { title: string; features: string[]; }) { return ( {title}
    {features.map((feature, index) => (
  • {feature}
  • ))}
); } function WorkflowStep({ number, title, description, }: { number: number; title: string; description: string; }) { return (
{number}

{title}

{description}

); }