Skip to content

Commit

Permalink
Update App.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiShankar93 authored Feb 29, 2024
1 parent e2cfca9 commit 86cc795
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ import About2 from "./components/About2"
import Events from "./components/Events"
import Intro from "./components/Intro"
function App() {
const [showIntro, setShowIntro] = useState(true);

useEffect(() => {
const timer = setTimeout(() => {
setShowIntro(false);
}, 4000);

return () => clearTimeout(timer);
}, []);
return (
<>
<Intro/>
{showIntro && <Intro />}
<Navbar/>
<About/>
<Events/>
Expand Down

0 comments on commit 86cc795

Please sign in to comment.