From 72a1569396e4bcb48dd9eda4d86fed8d9e3c8462 Mon Sep 17 00:00:00 2001 From: "Anwesha.28" Date: Sun, 10 Aug 2025 19:12:35 +0530 Subject: [PATCH] Event_data --- src/components/EventCard.jsx | 16 +++++++--------- src/components/Footer.jsx | 35 ++++++----------------------------- src/config/events.js | 28 ++++++++++++++++++++++++++++ src/pages/events/Events.jsx | 36 ++---------------------------------- 4 files changed, 43 insertions(+), 72 deletions(-) create mode 100644 src/config/events.js diff --git a/src/components/EventCard.jsx b/src/components/EventCard.jsx index ebc1eed..c004578 100644 --- a/src/components/EventCard.jsx +++ b/src/components/EventCard.jsx @@ -1,21 +1,19 @@ import React from "react"; -const EventCard = () => { +const EventCard = ({ title, description, image }) => { return (
Event
-

Sample Event

-

- Placeholder description for the event. -

-

Date: 25 Aug 2025

+

{title}

+

{description}

); }; + export default EventCard; diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 5658527..29667b5 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -12,10 +12,8 @@ const Footer = ({ description = "The American Society of Mechanical Engineers Student Chapter at NIT Rourkela, fostering a culture of innovation and technical learning through innovation, collaboration, and hands-on learning.", social = { - facebook: "#", - twitter: "#", - instagram: "#", - linkedin: "#", + instagram: "https://www.instagram.com/asme.nitrkl/", + linkedin: "https://www.linkedin.com/company/asme-nit-rourkela", }, year = new Date().getFullYear(), }) => { @@ -35,22 +33,6 @@ const Footer = ({

{description}

- - - - - - -

Quick Links

+

Quick Links

    -
  • - - About us - -
  • Team @@ -104,15 +81,15 @@ const Footer = ({ {/* Right Section */}
    -

    Contact Info

    +

    Contact Info

    - contact@asmenitrkl.ac.in {/* To be added */} + asme.nitrkl@gmail.com
    - +91-1234567890 {/* To be added */} + +91-1234567890
    diff --git a/src/config/events.js b/src/config/events.js new file mode 100644 index 0000000..53150ba --- /dev/null +++ b/src/config/events.js @@ -0,0 +1,28 @@ +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: + "https://res.cloudinary.com/dswk9scro/image/upload/v1754816191/Dart-a-thon_z29oj0.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: + "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: + "https://res.cloudinary.com/dswk9scro/image/upload/v1754816159/3D_printing_workshop_nrxkho.jpg", + type: "past", + }, +]; + +export default events; diff --git a/src/pages/events/Events.jsx b/src/pages/events/Events.jsx index 1aec0a2..9e90c83 100644 --- a/src/pages/events/Events.jsx +++ b/src/pages/events/Events.jsx @@ -1,33 +1,9 @@ import { useState } from "react"; import EventCard from "../../components/EventCard"; - +import events from "../../config/events"; const Events = () => { const [filter, setFilter] = useState("all"); - const events = [ - { - title: "AI Workshop", - date: "2025-07-10", - description: "Intro to AI, ML, and real-world applications.", - image: "/images/ai.jpg", - type: "past", - }, - { - title: "Autonomous Bot Hackathon", - date: "2025-08-01", - description: "Build bots and compete in challenges.", - image: "/images/bot.jpg", - type: "upcoming", - }, - { - title: "CAD Design Contest", - date: "2025-06-20", - description: "Show off your SolidWorks skills.", - image: "/images/cad.jpg", - type: "past", - }, - ]; - const renderCards = () => { const filteredEvents = filter === "all" ? events : events.filter((e) => e.type === filter); @@ -49,18 +25,10 @@ const Events = () => { return (
    - events

    Our Organised Events

    -

    - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare. -

    {/* Filter Buttons */}
    @@ -70,7 +38,7 @@ const Events = () => { onClick={() => setFilter(type)} className={`px-4 py-2 rounded transition ${ filter === type - ? "bg-[#51B8F2] text-white" + ? "bg-[#0B2044] text-white" : "border border-[#0B2044] text-[#0B2044]" }`} >