import { useState, useRef } from 'react' import { motion, useScroll, useTransform, useInView } from 'framer-motion' import { Menu, X, Code, GitBranch, Shield, ArrowRight, Sparkles, Target, Rocket, Lock, Cpu, } from 'lucide-react' import { CryptoFeatureCard } from './CryptoFeatureCard' import Typewriter from './Typewriter' // Animation variants const fadeInUp = { initial: { opacity: 0, y: 60 }, animate: { opacity: 1, y: 0 }, transition: { duration: 0.6, ease: [0.6, -0.05, 0.01, 0.99] }, } const fadeInScale = { initial: { opacity: 0, scale: 0.8 }, animate: { opacity: 1, scale: 1 }, transition: { duration: 0.5 }, } const staggerContainer = { animate: { transition: { staggerChildren: 0.1, }, }, } const floatingAnimation = { y: [0, -20, 0], transition: { duration: 3, repeat: Infinity, }, } export function LandingPage() { const [mobileMenuOpen, setMobileMenuOpen] = useState(false) const [showLoginModal, setShowLoginModal] = useState(false) const { scrollYProgress } = useScroll() const opacity = useTransform(scrollYProgress, [0, 0.2], [1, 0]) const scale = useTransform(scrollYProgress, [0, 0.2], [1, 0.8]) return (
{/* Navbar */} {/* Hero Section */}
{/* Left Content */} 3 天内 2.5K+ GitHub Stars

Read the Market.
Write the Trade.

NOFX 是 AI 交易的未来标准——一个开放、社区驱动的代理式交易操作系统。支持 Binance、Aster DEX 等交易所,自托管、多代理竞争,让 AI 为你自动决策、执行和优化交易。
GitHub Stars GitHub Forks GitHub Contributors
由 Aster DEX 和 Binance 提供支持,Amber.ac 战略投资。
{/* Right Content - Visual */}
{/* Scroll Indicator removed for cleaner Binance-like style */}
{/* About Section */}
关于 NOFX

什么是 NOFX?

NOFX 不是另一个交易机器人,而是 AI 交易的 'Linux' —— 一个透明、可信任的开源 OS,提供统一的 '决策-风险-执行' 层,支持所有资产类别。

从加密市场起步(24/7、高波动性完美测试场),未来扩展到股票、期货、外汇。核心:开放架构、AI 达尔文主义(多代理自竞争、策略进化)、CodeFi 飞轮(开发者 PR 贡献获积分奖励)。

你 100% 掌控
完全掌控 AI 提示词和资金
{/* Features Section */}
核心功能

为什么选择 NOFX?

开源、透明、社区驱动的 AI 交易操作系统

} title='100% 开源与自托管' description='你的框架,你的规则。非黑箱,支持自定义提示词和多模型。' features={[ '完全开源代码', '支持自托管部署', '自定义 AI 提示词', '多模型支持(DeepSeek、Qwen)', ]} delay={0} /> } title='多代理智能竞争' description='AI 策略在沙盒中高速战斗,最优者生存,实现策略进化。' features={[ '多 AI 代理并行运行', '策略自动优化', '沙盒安全测试', '跨市场策略移植', ]} delay={0.1} /> } title='安全可靠交易' description='企业级安全保障,完全掌控你的资金和交易策略。' features={[ '本地私钥管理', 'API 权限精细控制', '实时风险监控', '交易日志审计', ]} delay={0.2} />
{/* How It Works Section */}

如何开始使用 NOFX

四个简单步骤,开启 AI 自动交易之旅

{[ { number: 1, title: '拉取 GitHub 仓库', description: 'git clone https://github.com/tinkle-community/nofx 并切换到 dev 分支测试新功能。', }, { number: 2, title: '配置环境', description: '前端设置交易所 API(如 Binance、Hyperliquid)、AI 模型和自定义提示词。', }, { number: 3, title: '部署与运行', description: '一键 Docker 部署,启动 AI 代理。注意:高风险市场,仅用闲钱测试。', }, { number: 4, title: '优化与贡献', description: '监控交易,提交 PR 改进框架。加入 Telegram 分享策略。', }, ].map((step, index) => ( ))}
⚠️
重要风险提示

dev 分支不稳定,勿用无法承受损失的资金。NOFX 非托管,无官方策略。交易有风险,投资需谨慎。

{/* Community Section */}
{/* CTA Section */}
准备好定义 AI 交易的未来吗? 从加密市场起步,扩展到 TradFi。NOFX 是 AgentFi 的基础架构。 setShowLoginModal(true)} className='flex items-center gap-2 px-10 py-4 rounded-lg font-semibold text-lg' style={{ background: 'var(--brand-yellow)', color: 'var(--brand-black)', }} variants={fadeInScale} whileHover={{ scale: 1.05, boxShadow: '0 20px 60px rgba(240, 185, 11, 0.4)', }} whileTap={{ scale: 0.95 }} > 立即开始 查看源码
{/* Footer */} {/* Login Modal */} {showLoginModal && ( setShowLoginModal(false)} /> )}
) } function AnimatedSection({ children, id, backgroundColor = 'var(--brand-black)', }: any) { const ref = useRef(null) const isInView = useInView(ref, { once: true, margin: '-100px' }) return ( {children} ) } // Removed unused FeatureCard component function StepCard({ number, title, description, delay }: any) { return ( {number}

{title}

{description}

) } function TestimonialCard({ quote, author, delay }: any) { return (

"{quote}"

{author}
) } function LoginModal({ onClose }: { onClose: () => void }) { return ( e.stopPropagation()} >

访问 NOFX 平台

请选择登录或注册以访问完整的 AI 交易平台

{ window.history.pushState({}, '', '/login') window.dispatchEvent(new PopStateEvent('popstate')) onClose() }} className='block w-full px-6 py-3 rounded-lg font-semibold text-center' style={{ background: 'var(--brand-yellow)', color: 'var(--brand-black)', }} whileHover={{ scale: 1.05, boxShadow: '0 10px 30px rgba(240, 185, 11, 0.4)', }} whileTap={{ scale: 0.95 }} > 登录 { window.history.pushState({}, '', '/register') window.dispatchEvent(new PopStateEvent('popstate')) onClose() }} className='block w-full px-6 py-3 rounded-lg font-semibold text-center' style={{ background: 'var(--brand-dark-gray)', color: 'var(--brand-light-gray)', border: '1px solid rgba(240, 185, 11, 0.2)', }} whileHover={{ scale: 1.05, borderColor: 'var(--brand-yellow)' }} whileTap={{ scale: 0.95 }} > 注册新账号
) }