-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
53 lines (42 loc) · 1.56 KB
/
App.tsx
File metadata and controls
53 lines (42 loc) · 1.56 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
43
44
45
46
47
48
49
50
51
52
53
import React, { useState, useEffect } from 'react';
import Navbar from './components/Navbar.tsx';
import Hero from './components/Hero.tsx';
import Features from './components/Features.tsx';
import Roadmap from './components/Roadmap.tsx';
import IsingSimulator from './components/IsingSimulator.tsx';
import TechnicalAssistant from './components/TechnicalAssistant.tsx';
import Footer from './components/Footer.tsx';
const App: React.FC = () => {
const [scrolled, setScrolled] = useState(false);
useEffect(() => {
const handleScroll = () => {
setScrolled(window.scrollY > 50);
};
window.addEventListener('scroll', handleScroll);
return () => window.removeEventListener('scroll', handleScroll);
}, []);
return (
<div className="min-h-screen selection:bg-amber-500/30">
<div className="fixed inset-0 pointer-events-none z-0">
{/* Subtle atmospheric glow instead of bright circles */}
<div className="absolute top-0 left-0 w-full h-full bg-black/40"></div>
</div>
<Navbar scrolled={scrolled} />
<main className="relative z-10">
<Hero />
<section id="simulator" className="py-32 px-4 border-y border-white/5">
<IsingSimulator />
</section>
<section id="features" className="py-32 px-4">
<Features />
</section>
<section id="roadmap" className="py-32 px-4 border-t border-white/5 bg-black/20">
<Roadmap />
</section>
</main>
<TechnicalAssistant />
<Footer />
</div>
);
};
export default App;