-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
42 lines (37 loc) · 1.18 KB
/
Copy pathApp.tsx
File metadata and controls
42 lines (37 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React, { useState, useEffect } from 'react';
import Navbar from './components/Navbar';
import Hero from './components/Hero';
import Problem from './components/Problem';
import DemoVideo from './components/DemoVideo';
import Features from './components/Features';
import CTA from './components/CTA';
import Footer from './components/Footer';
import AuthPage from './components/AuthPage';
import BackgroundFlowAnimation from './components/BackgroundFlowAnimation';
export default function App() {
const [mounted, setMounted] = useState(false);
const [view, setView] = useState<'landing' | 'auth'>('landing');
useEffect(() => {
setMounted(true);
}, []);
if (!mounted) return null;
if (view === 'auth') {
return <AuthPage onBack={() => setView('landing')} />;
}
return (
<div className="relative min-h-screen bg-[#030303] text-slate-200 selection:bg-emerald-500/30">
<BackgroundFlowAnimation />
<div className="relative z-10">
<Navbar onSignIn={() => setView('auth')} />
<main>
<Hero />
<Problem />
<DemoVideo />
<Features />
<CTA />
</main>
<Footer />
</div>
</div>
);
}