File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments