Skip to content

Commit 8373396

Browse files
committed
[feat]: compiled all section together;
- hero - about - experience - education - projects - faq - publications - patents - awards - skills - footer
1 parent 83195e2 commit 8373396

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

src/App.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { useEffect, useState } from 'react';
2+
import Hero from './components/Hero';
3+
import About from './components/About';
4+
import Experience from './components/Experience';
5+
import Education from './components/Education';
6+
import Projects from './components/Projects';
7+
import FAQ from './components/FAQ';
8+
import Publications from './components/Publications';
9+
import Patents from './components/Patents';
10+
import Awards from './components/Awards';
11+
import Skills from './components/Skills';
12+
import Footer from './components/Footer';
13+
14+
function App() {
15+
const [scrollProgress, setScrollProgress] = useState(0);
16+
17+
useEffect(() => {
18+
const handleScroll = () => {
19+
const totalScroll = document.documentElement.scrollHeight - window.innerHeight;
20+
const currentScroll = window.scrollY;
21+
setScrollProgress((currentScroll / totalScroll) * 100);
22+
};
23+
24+
window.addEventListener('scroll', handleScroll);
25+
return () => window.removeEventListener('scroll', handleScroll);
26+
}, []);
27+
28+
return (
29+
<div className="min-h-screen bg-gray-100 text-gray-900 scroll-smooth font-roboto">
30+
<Hero />
31+
<About />
32+
<Experience />
33+
<Education />
34+
<Projects />
35+
<FAQ />
36+
<Publications />
37+
<Patents />
38+
<Awards />
39+
<Skills />
40+
<Footer />
41+
</div>
42+
);
43+
}
44+
45+
export default App;
46+

0 commit comments

Comments
 (0)