chore: adjust website structure
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 (
|
||||||
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user