import { motion } from 'framer-motion' import { Download, Rocket, TrendingUp, AlertTriangle } from 'lucide-react' import { t, Language } from '../../i18n/translations' interface HowItWorksSectionProps { language: Language } export default function HowItWorksSection({ language }: HowItWorksSectionProps) { const steps = [ { icon: Download, number: '01', title: language === 'zh' ? 'One-Click Deploy' : 'One-Click Deploy', desc: language === 'zh' ? 'Run a single command on your server to deploy' : 'Run a single command on your server to deploy', code: 'curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash', }, { icon: Rocket, number: '02', title: language === 'zh' ? 'Access Dashboard' : 'Access Dashboard', desc: language === 'zh' ? 'Access your server via browser' : 'Access your server via browser', code: 'http://YOUR_SERVER_IP:3000', }, { icon: TrendingUp, number: '03', title: language === 'zh' ? 'Start Trading' : 'Start Trading', desc: language === 'zh' ? 'Create trader, let AI do the work' : 'Create trader, let AI do the work', code: language === 'zh' ? 'Configure Model → Exchange → Create Trader' : 'Configure Model → Exchange → Create Trader', }, ] return (
{/* Background Decoration */}
{/* Header */}

{t('howToStart', language)}

{t('fourSimpleSteps', language)}

{/* Steps Timeline */}
{/* Connecting Line */}
{steps.map((step, index) => (
{/* Number Circle */}
{/* Content */}
{step.number}

{step.title}

{step.desc}

{/* Code Block */}
$ {step.code}
))}
{/* Risk Warning */}
{t('importantRiskWarning', language)}

{t('riskWarningText', language)}

) }