main create

This commit is contained in:
2026-06-13 16:06:24 +07:00
parent 3bb7649533
commit 568cb0e0bc
69 changed files with 9551 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
import React, { useState } from 'react';
import { LandingPage } from './LandingPage';
import { TourDetailPage } from './TourDetailPage';
import { ExploreMap } from './ExploreMap';
import { SignupPage } from './SignupPage';
const App = () => {
type View = 'landing' | 'explore' | 'detail' | 'signup';
const [view, setView] = useState<View>('landing');
return (
<div className="app-container">
{view === 'landing' && (
<LandingPage
onContinue={() => setView('explore')}
onGoToSignup={() => setView('signup')}
/>
)}
{view === 'signup' && (
<SignupPage
onBack={() => setView('landing')}
onSuccess={() => setView('landing')}
/>
)}
{view === 'explore' && (
<ExploreMap onBack={() => setView('landing')} />
)}
{view === 'detail' && (
<TourDetailPage />
)}
</div>
);
};
export default App;