mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-14 16:26:57 +08:00
refactor(web): 引入 pages 目录并迁移 LandingPage;修正 App 引用与相对路径,保持构建通过
This commit is contained in:
@@ -6,7 +6,7 @@ import { AITradersPage } from './components/AITradersPage';
|
|||||||
import { LoginPage } from './components/LoginPage';
|
import { LoginPage } from './components/LoginPage';
|
||||||
import { RegisterPage } from './components/RegisterPage';
|
import { RegisterPage } from './components/RegisterPage';
|
||||||
import { CompetitionPage } from './components/CompetitionPage';
|
import { CompetitionPage } from './components/CompetitionPage';
|
||||||
import { LandingPage } from './components/LandingPage';
|
import { LandingPage } from './pages/LandingPage';
|
||||||
import AILearning from './components/AILearning';
|
import AILearning from './components/AILearning';
|
||||||
import { LanguageProvider, useLanguage } from './contexts/LanguageContext';
|
import { LanguageProvider, useLanguage } from './contexts/LanguageContext';
|
||||||
import { AuthProvider, useAuth } from './contexts/AuthContext';
|
import { AuthProvider, useAuth } from './contexts/AuthContext';
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import {
|
|||||||
Lock,
|
Lock,
|
||||||
Cpu,
|
Cpu,
|
||||||
} from 'lucide-react'
|
} from 'lucide-react'
|
||||||
import { CryptoFeatureCard } from './CryptoFeatureCard'
|
import { CryptoFeatureCard } from '../components/CryptoFeatureCard'
|
||||||
import Typewriter from './Typewriter'
|
import Typewriter from '../components/Typewriter'
|
||||||
|
|
||||||
// Animation variants
|
// Animation variants
|
||||||
const fadeInUp = {
|
const fadeInUp = {
|
||||||
@@ -37,13 +37,7 @@ const staggerContainer = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const floatingAnimation = {
|
// removed floatingAnimation to match simplified style
|
||||||
y: [0, -20, 0],
|
|
||||||
transition: {
|
|
||||||
duration: 3,
|
|
||||||
repeat: Infinity,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export function LandingPage() {
|
export function LandingPage() {
|
||||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false)
|
||||||
Reference in New Issue
Block a user