Files
ai-stack-deployer/client/src/App.tsx
Oussama Douhou 8977a6fdee New design v0.2
New design and framework
2026-01-13 10:49:47 +01:00

32 lines
834 B
TypeScript

import { lazy, Suspense } from 'react'
import { Routes, Route } from 'react-router-dom'
import DeployPage from './pages/DeployPage'
// Lazy load the sign-in page (includes Three.js - large bundle)
const SignInPage = lazy(() => import('./components/ui/sign-in-flow-1').then(m => ({ default: m.SignInPage })))
// Loading fallback for lazy-loaded routes
const PageLoader = () => (
<div className="min-h-screen bg-black flex items-center justify-center">
<div className="animate-pulse text-white/50">Loading...</div>
</div>
)
function App() {
return (
<Routes>
<Route path="/" element={<DeployPage />} />
<Route
path="/auth"
element={
<Suspense fallback={<PageLoader />}>
<SignInPage />
</Suspense>
}
/>
</Routes>
)
}
export default App