chore: adjust website structure

This commit is contained in:
Simon
2026-03-05 16:21:58 +08:00
parent 6b2ab73d65
commit ff31b0c03e
3 changed files with 7 additions and 7 deletions

View File

@@ -62,7 +62,7 @@ Located in `src/components/ui/`:
src/ src/
├── pages/ ├── pages/
│ ├── home/ │ ├── home/
│ │ ├── HomeContent.tsx # Homepage sections │ │ ├── index.tsx # Homepage
│ │ └── ...Section.tsx │ │ └── ...Section.tsx
│ └── docs/ │ └── docs/
│ ├── index.tsx # Docs route switch │ ├── index.tsx # Docs route switch

View File

@@ -1,10 +1,10 @@
import { Suspense, lazy } from 'react' import { Suspense, lazy } from 'react'
import HeroSection from './home/HeroSection' import HeroSection from './HeroSection'
const FeaturesSection = lazy(() => import('./home/FeaturesSection')) const FeaturesSection = lazy(() => import('./FeaturesSection'))
const ScenariosSection = lazy(() => import('./home/ScenariosSection')) const ScenariosSection = lazy(() => import('./ScenariosSection'))
const OneMoreThingSection = lazy(() => import('./home/OneMoreThingSection')) const OneMoreThingSection = lazy(() => import('./OneMoreThingSection'))
export default function HomePage() { export default function HomePage() {
return ( return (

View File

@@ -3,9 +3,9 @@ import { Route, Switch, useLocation } from 'wouter'
import Footer from './components/Footer' import Footer from './components/Footer'
import Header from './components/Header' import Header from './components/Header'
import HomePage from './pages/Home' import HomePage from './pages/home'
const docsImport = () => import('./pages/docs/index') const docsImport = () => import('./pages/docs')
const DocsPages = lazy(docsImport) const DocsPages = lazy(docsImport)
function ScrollToTop() { function ScrollToTop() {