diff --git a/src/components/EventCard.jsx b/src/components/EventCard.jsx index c004578..0518c71 100644 --- a/src/components/EventCard.jsx +++ b/src/components/EventCard.jsx @@ -1,13 +1,41 @@ -import React from "react"; +import React, { useState, useEffect } from "react"; + +const EventCard = ({ title, description, images }) => { + const [currentImageIndex, setCurrentImageIndex] = useState(0); + + // Auto-change image every 3 seconds + useEffect(() => { + if (!images || images.length <= 1) return; // skip if 0 or 1 image + const interval = setInterval(() => { + setCurrentImageIndex((prevIndex) => (prevIndex + 1) % images.length); + }, 3000); + return () => clearInterval(interval); + }, [images]); -const EventCard = ({ title, description, image }) => { return (
- {title} +
+
+ {`${title} +
+ + {images?.length > 1 && ( +
+ {images.map((_, idx) => ( + + ))} +
+ )} +

{title}

{description}

diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 326e20a..ca85714 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -13,15 +13,15 @@ const Footer = ({ year = new Date().getFullYear(), }) => { return ( -
+
{/* Logo and Description Section */}
-
+
ASME Logo

{title}

@@ -47,14 +47,9 @@ const Footer = ({
{/* Middle Section */} -
-

Quick Links

-
    -
  • - - About us - -
  • +
    +

    Quick Links

    +
    • Team @@ -79,12 +74,17 @@ const Footer = ({
    {/* Contact Info Section */} -
    +

    Contact Info

    - asme.nitrkl@gmail.com + + asme.nitrkl@gmail.com +
    @@ -100,9 +100,17 @@ const Footer = ({
    - -
    - © {year} {title}. All rights reserved. +
    +

    + © {year} {title}. All rights reserved. +

    + + Architected with ♥ by Team OpenCode +
); diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx index adf542e..c8d31c6 100644 --- a/src/components/Navbar.jsx +++ b/src/components/Navbar.jsx @@ -27,7 +27,7 @@ export default function Navbar() { Logo
diff --git a/src/config/events.js b/src/config/events.js index 53150ba..a2e5728 100644 --- a/src/config/events.js +++ b/src/config/events.js @@ -3,24 +3,30 @@ const events = [ title: "Dart-a-Thon", description: "Dart-a-Thon was an exciting hands-on challenge where participants were provided with simple DIY materials—such as stretchable rubber bands, ice cream sticks, and more—to design their own dart-launching mechanism. Using their creations, they aimed at a target board to score points. The participant with the highest score emerged as the champion, combining creativity, engineering, and precision in one thrilling competition.", - image: + images: [ "https://res.cloudinary.com/dswk9scro/image/upload/v1754816191/Dart-a-thon_z29oj0.jpg", + "https://res.cloudinary.com/dswk9scro/image/upload/v1755101733/dart_a_thon_2_fzykjn.jpg", + ], type: "past", }, { title: "Turbogen X", description: "Turbogen-X put participants' ingenuity to the test as they crafted custom wind blades from simple DIY materials. With limited resources and unlimited imagination, they raced to create designs capable of capturing the wind most efficiently, turning a simple build into a battle of innovation and aerodynamics.", - image: + images: [ "https://res.cloudinary.com/dswk9scro/image/upload/v1754816173/Turbogen_x_ozbic4.jpg", + ], type: "past", }, { title: "3D Printing Workshop", description: "An interactive 3D Printing Workshop was hosted, showcasing real-world applications and hands-on training with industry-standard software. Professionals and teachers from nearby schools attended to promote awareness of the technology. A live highlight was the 3D-printing of a chess pawn in just 30 minutes, captivating the audience.", - image: + images: [ "https://res.cloudinary.com/dswk9scro/image/upload/v1754816159/3D_printing_workshop_nrxkho.jpg", + "https://res.cloudinary.com/dswk9scro/image/upload/v1755101758/3d_2_ccbovp.jpg", + "https://res.cloudinary.com/dswk9scro/image/upload/v1755101776/3d_3_chypdi.jpg", + ], type: "past", }, ]; diff --git a/src/config/navbarHero.js b/src/config/navbarHero.js index f9345df..94b0eff 100644 --- a/src/config/navbarHero.js +++ b/src/config/navbarHero.js @@ -1,6 +1,6 @@ export const siteConfig = { navigation: { - logo: "https://res.cloudinary.com/dwjcki9ey/image/upload/v1752133616/Group2_e25wne.png", + logo: "https://res.cloudinary.com/dswk9scro/image/upload/v1755092284/ASME_NIT_Rourkela_Student_Section_Blue_ldskye.png", links: [ { name: "Home", href: "/" }, { name: "Team", href: "/team" }, diff --git a/src/pages/events/Events.jsx b/src/pages/events/Events.jsx index 9e90c83..a095621 100644 --- a/src/pages/events/Events.jsx +++ b/src/pages/events/Events.jsx @@ -15,9 +15,13 @@ const Events = () => { )) ) : ( -

- No events found. -

+ )}
);