diff --git a/src/components/AboutSection.jsx b/src/components/AboutSection.jsx index 03c6d3d..dd8cc10 100644 --- a/src/components/AboutSection.jsx +++ b/src/components/AboutSection.jsx @@ -1,22 +1,44 @@ -import Button from "./shared/Button"; +import { useState, useEffect } from "react"; import { siteConfig } from "../config/navbarHero"; export default function AboutSection() { + const [showFirst, setShowFirst] = useState(true); + + useEffect(() => { + const interval = setInterval(() => setShowFirst((prev) => !prev), 4000); + return () => clearInterval(interval); + }, []); + return (
-
-
+
+
+ About image 1 + ASME NIT Rourkela team members + About image 2 fade
-
+

{siteConfig.about.button} diff --git a/src/components/HeroSection.jsx b/src/components/HeroSection.jsx index 1601dee..8eb6d10 100644 --- a/src/components/HeroSection.jsx +++ b/src/components/HeroSection.jsx @@ -1,9 +1,17 @@ +import { useState, useEffect } from "react"; import Button from "./shared/Button"; import { siteConfig } from "../config/navbarHero"; export default function HeroSection() { + const [showFirst, setShowFirst] = useState(true); + + useEffect(() => { + const interval = setInterval(() => setShowFirst((prev) => !prev), 4000); + return () => clearInterval(interval); + }, []); + return ( -
+

{siteConfig.hero.title}

-

{siteConfig.hero.subtitle}

-

{siteConfig.hero.description}

-
-
- ASME NIT Rourkela team members +
+
+ Hero image 1 + + + + +
-