swiper and clean

This commit is contained in:
2026-07-12 19:27:47 +00:00
parent 5cd55c096d
commit db9370f916
15 changed files with 250 additions and 2025 deletions

View File

@@ -1,16 +1,13 @@
import { BrowserRouter, Routes, Route, Link } from 'react-router-dom'
import { lazy, Suspense } from 'react'
import Layout from './components/Layout'
import Loading from './components/Loading'
import ErrorBoundary from './components/ErrorBoundary'
import { BRAND_PRIMARY } from './config'
const Home = lazy(() => import('./pages/Home'))
const About = lazy(() => import('./pages/About'))
const Services = lazy(() => import('./pages/Services'))
const ServiceDetail = lazy(() => import('./pages/ServiceDetail'))
const Project = lazy(() => import('./pages/Project'))
const Contact = lazy(() => import('./pages/Contact'))
import Home from './pages/Home'
import About from './pages/About'
import Services from './pages/Services'
import ServiceDetail from './pages/ServiceDetail'
import Project from './pages/Project'
import Contact from './pages/Contact'
function NotFound() {
return (
@@ -26,19 +23,17 @@ export default function App() {
return (
<BrowserRouter>
<ErrorBoundary>
<Suspense fallback={<Loading />}>
<Routes>
<Route element={<Layout />}>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/service" element={<Services />} />
<Route path="/service/:slug" element={<ServiceDetail />} />
<Route path="/project" element={<Project />} />
<Route path="/contact" element={<Contact />} />
<Route path="*" element={<NotFound />} />
</Route>
</Routes>
</Suspense>
<Routes>
<Route element={<Layout />}>
<Route path="/" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/service" element={<Services />} />
<Route path="/service/:slug" element={<ServiceDetail />} />
<Route path="/project" element={<Project />} />
<Route path="/contact" element={<Contact />} />
<Route path="*" element={<NotFound />} />
</Route>
</Routes>
</ErrorBoundary>
</BrowserRouter>
)