From f28a76db741c092ac0a542a4ca0528807cf0ca9c Mon Sep 17 00:00:00 2001 From: aishwary jhunjhunwala Date: Sun, 13 Jul 2025 18:13:05 +0530 Subject: [PATCH 1/4] Achievement section Updated --- src/config/achievement.js | 29 ++++++++++++++ src/main.jsx | 10 ++--- src/pages/playground/Achievements.jsx | 54 +++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 5 deletions(-) create mode 100644 src/pages/playground/Achievements.jsx diff --git a/src/config/achievement.js b/src/config/achievement.js index e69de29..6d0bff6 100644 --- a/src/config/achievement.js +++ b/src/config/achievement.js @@ -0,0 +1,29 @@ +import React from "react"; + +export const achievementsData = [ + { + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + }, + { + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + }, + { + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + }, + { + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + }, + { + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + }, +]; diff --git a/src/main.jsx b/src/main.jsx index 2a0bd58..d3d211b 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -6,16 +6,16 @@ import App from "./App.jsx"; import Playground from "./Playground.jsx"; import Test from "./components/playground/Test.jsx"; import Home from "./pages/playground/landing-page/Home.jsx"; - +import Achievements from "./pages/playground/Achievements.jsx"; createRoot(document.getElementById("root")).render( }> - }> - } /> - } /> - + } /> + } /> + } /> + } /> , diff --git a/src/pages/playground/Achievements.jsx b/src/pages/playground/Achievements.jsx new file mode 100644 index 0000000..26d953d --- /dev/null +++ b/src/pages/playground/Achievements.jsx @@ -0,0 +1,54 @@ +import React from "react"; +import { achievementsData } from "../../config/achievement"; + +export default function Achievements() { + return ( +
+
+

+ Our Achievements +

+

+ ASME NIT Rourkela excels in fostering innovation and leadership + through workshops, competitions, and expert lectures. Recognized for + achievements in events like the Student Design Challenge and HPVC, the + chapter addresses real-world problems with engineering creativity. + Their STEM outreach initiatives further enhance their impact, + solidifying their reputation for excellence in mechanical engineering. +

+ +
+ +
+
+
+ +
+ {achievementsData.map((item, index) => ( +
+ { +
+ } + +
+

{item.title}

+

{item.description}

+
+
+ ))} +
+
+
+ ); +} From e1b09ba1d98aa7343a9d45e2ca3832486b3fb5b3 Mon Sep 17 00:00:00 2001 From: aishwary jhunjhunwala Date: Sun, 13 Jul 2025 18:47:40 +0530 Subject: [PATCH 2/4] Achievement section Updated --- src/pages/playground/Achievements.jsx | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pages/playground/Achievements.jsx b/src/pages/playground/Achievements.jsx index 26d953d..6af8ca4 100644 --- a/src/pages/playground/Achievements.jsx +++ b/src/pages/playground/Achievements.jsx @@ -22,24 +22,22 @@ export default function Achievements() {
-
-
+
+
-
+
{achievementsData.map((item, index) => (
- { -
- } +

{item.title}

From 07d2037f29edc2979d9abbe7251fb5499d55a4ba Mon Sep 17 00:00:00 2001 From: aishwary jhunjhunwala Date: Sun, 13 Jul 2025 19:05:47 +0530 Subject: [PATCH 3/4] Achievement Section Update --- src/config/achievement.js | 2 -- src/pages/playground/Achievements.jsx | 1 - 2 files changed, 3 deletions(-) diff --git a/src/config/achievement.js b/src/config/achievement.js index 6d0bff6..5ed2000 100644 --- a/src/config/achievement.js +++ b/src/config/achievement.js @@ -1,5 +1,3 @@ -import React from "react"; - export const achievementsData = [ { title: "Name", diff --git a/src/pages/playground/Achievements.jsx b/src/pages/playground/Achievements.jsx index 6af8ca4..5c00d6b 100644 --- a/src/pages/playground/Achievements.jsx +++ b/src/pages/playground/Achievements.jsx @@ -1,4 +1,3 @@ -import React from "react"; import { achievementsData } from "../../config/achievement"; export default function Achievements() { From 848af1587cb62607e292229372e840c8bde7557a Mon Sep 17 00:00:00 2001 From: aishwary jhunjhunwala Date: Tue, 15 Jul 2025 00:48:48 +0530 Subject: [PATCH 4/4] Achievement page Added --- package-lock.json | 10 ++ package.json | 1 + src/config/achievement.js | 27 ----- src/config/achievement.jsx | 49 +++++++++ src/config/achievementCard.jsx | 54 ++++++++++ src/config/timeline.jsx | 130 +++++++++++++++++++++++ src/main.jsx | 2 + src/pages/playground/AchievementPage.jsx | 13 +++ src/pages/playground/Achievements.jsx | 10 +- 9 files changed, 267 insertions(+), 29 deletions(-) delete mode 100644 src/config/achievement.js create mode 100644 src/config/achievement.jsx create mode 100644 src/config/achievementCard.jsx create mode 100644 src/config/timeline.jsx create mode 100644 src/pages/playground/AchievementPage.jsx diff --git a/package-lock.json b/package-lock.json index 9ad577c..034241a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "@tailwindcss/vite": "^4.1.11", + "lucide-react": "^0.525.0", "react": "^19.1.0", "react-dom": "^19.1.0", "react-router": "^7.6.3", @@ -3082,6 +3083,15 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-react": { + "version": "0.525.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.525.0.tgz", + "integrity": "sha512-Tm1txJ2OkymCGkvwoHt33Y2JpN5xucVq1slHcgE6Lk0WjDfjgKWor5CdVER8U6DvcfMwh4M8XxmpTiyzfmfDYQ==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/magic-string": { "version": "0.30.17", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", diff --git a/package.json b/package.json index 294f4ea..fda287c 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "@tailwindcss/vite": "^4.1.11", + "lucide-react": "^0.525.0", "react": "^19.1.0", "react-dom": "^19.1.0", "react-router": "^7.6.3", diff --git a/src/config/achievement.js b/src/config/achievement.js deleted file mode 100644 index 5ed2000..0000000 --- a/src/config/achievement.js +++ /dev/null @@ -1,27 +0,0 @@ -export const achievementsData = [ - { - title: "Name", - description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", - }, - { - title: "Name", - description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", - }, - { - title: "Name", - description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", - }, - { - title: "Name", - description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", - }, - { - title: "Name", - description: - "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", - }, -]; diff --git a/src/config/achievement.jsx b/src/config/achievement.jsx new file mode 100644 index 0000000..99d69f0 --- /dev/null +++ b/src/config/achievement.jsx @@ -0,0 +1,49 @@ +const achievementsData = [ + { + id: 1, + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + image: + "https://images.unsplash.com/photo-1593376853899-fbb47a057fa0?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cm9ib3RzfGVufDB8fDB8fHww", + date: "December 2023", + }, + { + id: 2, + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + image: + "https://images.unsplash.com/photo-1593376853899-fbb47a057fa0?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cm9ib3RzfGVufDB8fDB8fHww", + date: "December 2023", + }, + { + id: 3, + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + image: + "https://images.unsplash.com/photo-1593376853899-fbb47a057fa0?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cm9ib3RzfGVufDB8fDB8fHww", + date: "December 2023", + }, + { + id: 4, + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + image: + "https://images.unsplash.com/photo-1593376853899-fbb47a057fa0?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cm9ib3RzfGVufDB8fDB8fHww", + date: "December 2023", + }, + { + id: 5, + title: "Name", + description: + "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique.", + image: + "https://images.unsplash.com/photo-1593376853899-fbb47a057fa0?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cm9ib3RzfGVufDB8fDB8fHww", + date: "December 2023", + }, +]; + +export default achievementsData; diff --git a/src/config/achievementCard.jsx b/src/config/achievementCard.jsx new file mode 100644 index 0000000..665c1ae --- /dev/null +++ b/src/config/achievementCard.jsx @@ -0,0 +1,54 @@ +import { Calendar } from "lucide-react"; + +const AchievementCard = ({ + title, + description, + image, + date, + isLeft, + index, +}) => { + return ( +
+
+ {/* Image */} +
+ {title} +
+
+ + {/* Content */} +
+
+ + {date} +
+ +

+ {title} +

+ +

{description}

+ + {/* Decorative element */} +
+
+
+
+ ); +}; + +export default AchievementCard; diff --git a/src/config/timeline.jsx b/src/config/timeline.jsx new file mode 100644 index 0000000..8123be8 --- /dev/null +++ b/src/config/timeline.jsx @@ -0,0 +1,130 @@ +import { useEffect, useRef, useState } from "react"; +import AchievementCard from "./achievementCard"; +import achievementsData from "./achievement"; + +const Timeline = () => { + const timelineRef = useRef(null); + const [visibleDots, setVisibleDots] = useState(new Set()); + + useEffect(() => { + const observer = new IntersectionObserver( + (entries) => { + entries.forEach((entry) => { + if (entry.isIntersecting) { + const index = parseInt( + entry.target.getAttribute("data-index") || "0", + ); + setVisibleDots((prev) => new Set([...prev, index])); + } + }); + }, + { threshold: 0.5 }, + ); + + const cards = document.querySelectorAll("[data-index]"); + cards.forEach((card) => observer.observe(card)); + + return () => observer.disconnect(); + }, []); + + return ( +
+
+ {/* Header */} +
+

+ Our Achievements +

+

+ ASME NIT Rourkela excels in fostering innovation and leadership + through workshops, competitions, and expert lectures. Recognized for + achievements in events like the Student Design Challenge and HPVC, + the chapter addresses real-world problems with engineering + creativity. Their STEM outreach initiatives further enhance their + impact, solidifying their reputation for excellence in mechanical + engineering. +

+
+ {/* Timeline */} +
+
+ {achievementsData.map((achievement, index) => ( +
+ {/* Left card */} + + {/* Timeline line and dot */} +
+ {/* Vertical line */} +
+ + {/* Timeline dot */} +
+
+
+
+ {/* Right card */} + + {/* Mobile view: single column, card below dot/line */} +
+
+ +
+
+
+ ))} +
+
+
+
+ ); +}; + +export default Timeline; diff --git a/src/main.jsx b/src/main.jsx index d3d211b..56373c7 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -7,6 +7,7 @@ import Playground from "./Playground.jsx"; import Test from "./components/playground/Test.jsx"; import Home from "./pages/playground/landing-page/Home.jsx"; import Achievements from "./pages/playground/Achievements.jsx"; +import AchievementPage from "./pages/playground/AchievementPage.jsx"; createRoot(document.getElementById("root")).render( @@ -16,6 +17,7 @@ createRoot(document.getElementById("root")).render( } /> } /> } /> + } /> , diff --git a/src/pages/playground/AchievementPage.jsx b/src/pages/playground/AchievementPage.jsx new file mode 100644 index 0000000..8c2e704 --- /dev/null +++ b/src/pages/playground/AchievementPage.jsx @@ -0,0 +1,13 @@ +import Timeline from "../../config/timeline"; + +const AchievementPage = () => { + return ( +
+
+ +
+
+ ); +}; + +export default AchievementPage; diff --git a/src/pages/playground/Achievements.jsx b/src/pages/playground/Achievements.jsx index 5c00d6b..b2b423b 100644 --- a/src/pages/playground/Achievements.jsx +++ b/src/pages/playground/Achievements.jsx @@ -1,6 +1,9 @@ -import { achievementsData } from "../../config/achievement"; +import { useNavigate } from "react-router"; +import achievementsData from "../../config/achievement"; export default function Achievements() { + const navigate = useNavigate(); + return (
@@ -15,7 +18,10 @@ export default function Achievements() { Their STEM outreach initiatives further enhance their impact, solidifying their reputation for excellence in mechanical engineering.

-