diff --git a/Events.jsx b/Events.jsx new file mode 100644 index 0000000..9e90c83 --- /dev/null +++ b/Events.jsx @@ -0,0 +1,58 @@ +import { useState } from "react"; +import EventCard from "../../components/EventCard"; +import events from "../../config/events"; +const Events = () => { + const [filter, setFilter] = useState("all"); + + const renderCards = () => { + const filteredEvents = + filter === "all" ? events : events.filter((e) => e.type === filter); + + return ( +
+ {filteredEvents.length > 0 ? ( + filteredEvents.map((event, index) => ( + + )) + ) : ( +

+ No events found. +

+ )} +
+ ); + }; + + return ( +
+
+

+ Our Organised Events +

+ + {/* Filter Buttons */} +
+ {["all", "past", "upcoming"].map((type) => ( + + ))} +
+
+ + {renderCards()} +
+ ); +}; + +export default Events; diff --git a/Footer.jsx b/Footer.jsx new file mode 100644 index 0000000..983dd23 --- /dev/null +++ b/Footer.jsx @@ -0,0 +1,130 @@ +import { Link } from "react-router-dom"; +import { + FaFacebookF, + FaTwitter, + FaInstagram, + FaLinkedinIn, +} from "react-icons/fa"; +import { FiMail, FiPhone } from "react-icons/fi"; +import { GoLocation } from "react-icons/go"; +const Footer = ({ + title = "ASME NIT Rourkela Chapter", + 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: "#", + }, + year = new Date().getFullYear(), +}) => { + return ( + + ); +}; + +export default Footer; diff --git a/events.js b/events.js new file mode 100644 index 0000000..4b93e1b --- /dev/null +++ b/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/events/Events.jsx b/events/Events.jsx new file mode 100644 index 0000000..c006fe9 --- /dev/null +++ b/events/Events.jsx @@ -0,0 +1,89 @@ +import { useState } from "react"; +import EventCard from "../../components/EventCard"; + +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); + + return ( +
+ {filteredEvents.length > 0 ? ( + filteredEvents.map((event, index) => ( + + )) + ) : ( +

+ No events found. +

+ )} +
+ ); + }; + + return ( +
+
+
+
+
+
+

+ Our Organised Events +

+

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

+ + {/* Filter Buttons */} +
+ {["all", "past", "upcoming"].map((type) => ( + + ))} +
+
+ + {renderCards()} +
+ ); +}; + +export default Events; diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 5658527..983dd23 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -74,11 +74,6 @@ const Footer = ({

Quick Links