This commit is contained in:
2026-01-07 18:22:50 +00:00
commit abab9c2673
23 changed files with 2724 additions and 0 deletions

47
App.tsx Normal file
View File

@@ -0,0 +1,47 @@
import React, { useState, useEffect } from 'react';
import Navbar from './components/Navbar';
import Hero from './components/Hero';
import Features from './components/Features';
import HowItWorks from './components/HowItWorks';
import CallToAction from './components/CallToAction';
import Footer from './components/Footer';
import PrivacyPolicy from './components/PrivacyPolicy';
const App: React.FC = () => {
const [currentPage, setCurrentPage] = useState<'home' | 'privacy'>('home');
useEffect(() => {
window.scrollTo(0, 0);
}, [currentPage]);
const navigateToPrivacy = (e?: React.MouseEvent) => {
e?.preventDefault();
setCurrentPage('privacy');
};
const navigateToHome = (e?: React.MouseEvent) => {
e?.preventDefault();
setCurrentPage('home');
};
return (
<div className="bg-background-dark text-text-light font-sans min-h-screen selection:bg-primary selection:text-background-dark">
<Navbar onLogoClick={navigateToHome} />
<main>
{currentPage === 'home' ? (
<>
<Hero />
<Features />
<HowItWorks />
<CallToAction />
</>
) : (
<PrivacyPolicy onBack={navigateToHome} />
)}
</main>
<Footer onPrivacyClick={navigateToPrivacy} />
</div>
);
};
export default App;