From 90261452a97e0eeee1d30c10d4d3b763cab61748 Mon Sep 17 00:00:00 2001 From: pradeeptosarkar Date: Thu, 29 Aug 2024 19:25:18 +0530 Subject: [PATCH 1/2] Achievements page update chal raha hai --- src/Pages/Achievements/Achievements.jsx | 17 +- src/components/AnimatedCard/AnimatedCard.jsx | 45 ++- src/constants/achievementConstants.js | 334 +++++++++++++++++++ src/constants/constants.js | 97 ------ 4 files changed, 367 insertions(+), 126 deletions(-) create mode 100644 src/constants/achievementConstants.js diff --git a/src/Pages/Achievements/Achievements.jsx b/src/Pages/Achievements/Achievements.jsx index 89bedbe..bd16d8f 100644 --- a/src/Pages/Achievements/Achievements.jsx +++ b/src/Pages/Achievements/Achievements.jsx @@ -1,6 +1,6 @@ -import React from 'react'; +import React from 'react'; import AnimatedCard from '../../components/AnimatedCard/AnimatedCard'; -import { achievements } from "../../constants/constants"; +import { achievements } from "../../constants/achievementConstants"; const Achievements = () => { return ( @@ -11,21 +11,16 @@ const Achievements = () => {

- At nameSpace, we take pride in the remarkable accomplishments of our members, who consistently push the boundaries of innovation and excellence. This section celebrates the dedication, hard work, and success of those who have made significant contributions both within our society and beyond. From pioneering projects to winning prestigious awards, our achievers exemplify the true spirit of nameSpace. Explore the milestones and achievements that define our journey and inspire future generations. -

+ At nameSpace, we take pride in the remarkable accomplishments of our members, who consistently push the boundaries of innovation and excellence. This section celebrates the dedication, hard work, and success of those who have made significant contributions both within our society and beyond. From pioneering projects to winning prestigious awards, our achievers exemplify the true spirit of nameSpace. Explore the milestones and achievements that define our journey and inspire future generations. +

-
{achievements.map((event, index) => (
-
+
{ +const AnimatedCard = ({ img, title, date, description }) => { return ( - {/* Image */} - {img && ( -
- {title} -
- )} - - {/* Content */} -
-

{title}

-

{date}

-
+ {/* Image or Placeholder */} +
+ {img ? ( + {`${title} + ) : ( +
+ No Image +
+ )} +
+ + {/* Name */} +

{title}

+ + {/* Batch */} +

{date}

+ + {/* Achievements */} +
+ {description.split('|').map((achievement, index) => ( +

{achievement.trim()}

+ ))}
); }; export default AnimatedCard; - diff --git a/src/constants/achievementConstants.js b/src/constants/achievementConstants.js new file mode 100644 index 0000000..5043a4d --- /dev/null +++ b/src/constants/achievementConstants.js @@ -0,0 +1,334 @@ +export const achievements = [ + { + img: "https://res.cloudinary.com/df5hitkbj/image/upload/v1693141355/WhatsApp_Image_2023-08-27_at_18.31.44_bcdpq4.jpg", + name: "Pradeepto Sarkar", + batch: "2020-24", + achievements: ` + Technical Program Associate @ Major League Hacking | MLH SWE Fellow Fall ‘23 | 2x GSoC Accepted | Harvard Aspire Global Semis | 4* Codechef | Specialist CodeForces + `, + }, + { + img: "https://user-images.githubusercontent.com/75252077/236657010-53641de3-591f-4a61-87c6-c94d2209d52f.jpg", + name: "Kartik Sharma", + batch: "2020-24", + achievements: ` + SDE @ Physics Wallah | 5* Codechef | Expert CodeForces + `, + }, + { + img: "https://user-images.githubusercontent.com/75252077/236658748-0dd5a22a-52eb-471c-8662-36efa310a38e.jpg", + name: "Vaibhav Goyal", + batch: "2021-25", + achievements: ` + ICPC Regionalist 2023-24 | Expert @ Codeforces | 5* Codechef | Ex- VP @ The nameSpace Community + `, + }, + { + img: "", + name: "Rishi", + batch: "2021-25", + achievements: ` + ICPC Regionalist 2023-24 | Expert @ Codeforces | [Dont know] Codechef | Ex- JC @ The nameSpace Community + `, + }, + { + img: "", + name: "Jaskirat Singh", + batch: "2021-25", + achievements: ` + MITACS GRI’24 | Blockchain Educator @ Decentraclasses | Building OpinioNect | Hackathon Aficionado + `, + }, + { + img: "https://res.cloudinary.com/df5hitkbj/image/upload/v1693238094/shivank_hglloc.jpg", + name: "Shivank Kapur", + batch: "2022-26", + achievements: ` + Developer Relations Intern @ Router Protocol | Web3 & Blockchain Head @ The nameSpace Community | Ex- DogeCapital, Ex-PushProtocol + `, + }, + { + img: "", + name: "Ankur Sharma", + batch: "2022-26", + achievements: ` + Security intern @ Delhi Police | Security intern @ Gurugram Police | 2nd @ Hackathon Reckon 5.0 | 3rd @ Hackathon HackHazards + `, + }, + // New Entries for Batch 2020-24 + { + img: "", + name: "Ankur Sharma", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Ashutosh Kumar", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Deepanshu Dua", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Deepti Mittal", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Harsh Kumar", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Himank Jain", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Manan Khandelwal", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Nishant Mittal", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Shekhar Mishra", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Shivang Gautam", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Siddhant Singh", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Simran Panjwani", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Surbhi Sinha", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Tushar Rai", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Udit Soni", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Vaibhav Soni", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Vishakha Aggarwal", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Yuvah L Kumar", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Zardam Hussain", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Deepika", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Prishita Aggarwal", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Vishesh Khare", + batch: "2020-24", + achievements: "", + }, + { + img: "", + name: "Prasuk Jain", + batch: "2020-24", + achievements: "", + }, + + // New Entries for Batch 2021-25 + { + img: "", + name: "Akkul Gautam", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Anushka Singh", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Arjun Bhardwaj", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Ataf Ali", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Dhruv", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Himanshu Rawat", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Jaskirat Singh", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Jyoti Saha", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Pawas Goyal", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Rishi Jha", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Saransh Khandelwal", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "V V Anup Sreeram", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Vibhuti Gupta", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Akshit Shroff", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Gautam Gupta", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Lavanshi Bansal", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Raj Verma", + batch: "2021-25", + achievements: "", + }, + { + img: "", + name: "Rishav Raj", + batch: "2021-25", + achievements: "", + }, + + // New Entries for Batch 2022-26 + { + img: "", + name: "Diksha Sharma", + batch: "2022-26", + achievements: "", + }, + { + img: "", + name: "Pranav Barthwal", + batch: "2022-26", + achievements: "", + }, + { + img: "", + name: "Sahil Tyagi", + batch: "2022-26", + achievements: "", + }, + { + img: "", + name: "Garv Khurana", + batch: "2022-26", + achievements: "", + }, + ]; + \ No newline at end of file diff --git a/src/constants/constants.js b/src/constants/constants.js index 42df4bd..d7b7941 100644 --- a/src/constants/constants.js +++ b/src/constants/constants.js @@ -1117,100 +1117,3 @@ export const allmembers = [ twitter: "https://twitter.com/__vxibhxv", }, ]; -export const achievements = [ - { - img: "https://res.cloudinary.com/df5hitkbj/image/upload/v1693141355/WhatsApp_Image_2023-08-27_at_18.31.44_bcdpq4.jpg", - name: "Pradeepto Sarkar", - batch: "2020-24", - achievements: ` -
    -
  • Technical Program Associate @ Major League Hacking
  • -
  • MLH SWE Fellow Fall ‘23
  • -
  • 2x GSoC Accepted
  • -
  • Harvard Aspire Global Semis
  • -
  • 4* Codechef
  • -
  • Specialist CodeForces
  • -
-
- ` - }, - { - img: "https://user-images.githubusercontent.com/75252077/236657010-53641de3-591f-4a61-87c6-c94d2209d52f.jpg", - name: "Kartik Sharma", - batch: "2020-24", - achievements: ` -
    -
  • SDE @ Physics Wallah
  • -
  • 5* Codechef
  • -
  • Expert CodeForces
  • -
-
- ` - }, - { - img: "https://user-images.githubusercontent.com/75252077/236658748-0dd5a22a-52eb-471c-8662-36efa310a38e.jpg", - name: "Vaibhav Goyal", - batch: "2021-25", - achievements: ` -
    -
  • ICPC Regionalist 2023-24
  • -
  • Expert @ Codeforces
  • -
  • 5* Codechef
  • -
  • Ex- VP @ The nameSpace Community
  • -
-
- ` - }, - { - name: "Rishi", - batch: "2021-25", - achievements: ` -
    -
  • ICPC Regionalist 2023-24
  • -
  • Expert @ Codeforces
  • -
  • [Dont know] Codechef
  • -
  • Ex- JC @ The nameSpace Community
  • -
-
- ` - }, - { - name: "Jaskirat Singh", - batch: "2021-25", - achievements: ` -
    -
  • MITACS GRI’24
  • -
  • Blockchain Educator @ Decentraclasses
  • -
  • Building OpinioNect
  • -
  • Hackathon Aficionado
  • -
-
- ` - }, - { - img: "https://res.cloudinary.com/df5hitkbj/image/upload/v1693238094/shivank_hglloc.jpg", - name: "Shivank Kapur", - batch: "2022-26", - achievements: ` -
    -
  • Developer Relations Intern @ Router Protocol
  • -
  • Web3 & Blockchain Head @ The nameSpace Community
  • -
  • Ex- DogeCapital, Ex-PushProtocol
  • -
-
- ` - }, - { - name: "Ankur Sharma", - batch: "2022-26", - achievements: ` -
    -
  • Security intern @ Delhi Police
  • -
  • Security intern @ Gurugram Police
  • -
  • 2nd @ Hackathon Reckon 5.0
  • -
  • 3rd @ Hackathon HackHazards
  • -
- - ` - } -]; From 9d3d3fba07493b30b555cca14559401ee1c8a849 Mon Sep 17 00:00:00 2001 From: pradeeptosarkar Date: Thu, 29 Aug 2024 19:27:39 +0530 Subject: [PATCH 2/2] Achievements page update chal raha hai --- src/constants/achievementConstants.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/constants/achievementConstants.js b/src/constants/achievementConstants.js index 5043a4d..6abd905 100644 --- a/src/constants/achievementConstants.js +++ b/src/constants/achievementConstants.js @@ -25,7 +25,7 @@ export const achievements = [ }, { img: "", - name: "Rishi", + name: "Rishi Jha", batch: "2021-25", achievements: ` ICPC Regionalist 2023-24 | Expert @ Codeforces | [Dont know] Codechef | Ex- JC @ The nameSpace Community @@ -250,12 +250,6 @@ export const achievements = [ batch: "2021-25", achievements: "", }, - { - img: "", - name: "Rishi Jha", - batch: "2021-25", - achievements: "", - }, { img: "", name: "Saransh Khandelwal",