Skip to content

Commit

Permalink
Added achievements page
Browse files Browse the repository at this point in the history
  • Loading branch information
Lavavarshney committed Aug 7, 2024
1 parent 4d6c0c0 commit 7f05400
Show file tree
Hide file tree
Showing 10 changed files with 454 additions and 64 deletions.
302 changes: 245 additions & 57 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@types/three": "^0.149.0",
"@vercel/analytics": "^1.1.1",
"dotenv": "^16.0.1",
"framer-motion": "^10.0.1",
"framer-motion": "^10.18.0",
"hamburger-react": "^2.5.0",
"lottie-react": "^2.4.0",
"lucide-react": "^0.301.0",
Expand Down Expand Up @@ -64,6 +64,10 @@
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.0.0",
"autoprefixer": "^10.4.14",
"css-loader": "^7.1.2",
"postcss-loader": "^8.1.1",
"source-map-loader": "^5.0.0",
"style-loader": "^4.0.0",
"tailwindcss": "^3.3.0"
}
}
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { BrowserRouter, Route, Routes } from "react-router-dom";
import styled from "styled-components";
import AllEvents from "./Pages/AllEvents/AllEvents";
import Achievements from "./Pages/Achievements/Achievements";
import { Web } from "./Pages/AllResources/Web";
import { HTML } from "./Pages/AllResources/webALL/html";
import { Github } from "./Pages/AllResources/webALL/github";
Expand Down Expand Up @@ -118,6 +119,7 @@ function App() {
<Route path="/">
<Route index element={<Hero />} />
<Route path="team" element={<AllTeams />} />
<Route path="achievements" element={<Achievements />} />
<Route path="events" element={<AllEvents />} />
<Route path="programs" element={<Programs />} />
<Route path="projects" element={<Projects />} />
Expand Down
39 changes: 39 additions & 0 deletions src/Pages/Achievements/Achievements.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from 'react';
import AnimatedCard from '../../components/AnimatedCard/AnimatedCard';
import { achievements } from "../../constants/constants";

const Achievements = () => {
return (
<div className="bg-blue-1000 text-white min-h-screen p-8">

<h2 className="text-3xl font-bold leading-tight text-transparent bg-clip-text bg-gradient-to-r from-teal-400 to-yellow-200 sm:text-4xl lg:text-5xl mt-16 items-center text-center">
OUR ACHIEVERS
</h2>

<div className="flex flex-wrap justify-center">
{achievements.map((event, index) => (
<div
key={index}
className="w-full md:w-1/2 p-4 flex justify-center"
>
<div
className={`w-full max-w-2xl ${
index % 2 === 0 ? 'text-left' : 'text-right'
}`}
>
<AnimatedCard
img={event.img}
title={event.name}
date={event.batch}
description={event.achievements}
imageAlignment={index % 2 === 0 ? 'flex-row-reverse' : 'flex-row'}
/>
</div>
</div>
))}
</div>
</div>
);
};

export default Achievements;
2 changes: 1 addition & 1 deletion src/Sections/Founder/Founder.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const Founder = () => {
Looking ahead, we are excited to continue expanding our reach and impact. We are exploring new initiatives, enhancing our existing programs, and constantly seeking ways to better serve our community members. Your feedback and participation are invaluable to us, and I encourage you to stay engaged, share your ideas, and help us shape the future of the nameSpace Community. Thank you for being an integral part of this journey. Together, we will continue to learn, grow, and make a difference in the tech world.
<br />
<br />
~ <a href="https://pradeeptosarkar.netlify.app/" target="_blank" style={{ color: 'lightblue', textDecoration: 'underline', fontSize: '18px' }}>Pradeepto Sarkar</a>
~ <a href="https://pradeeptosarkar.netlify.app/" target="_blank" without rel="noreferrer" style={{ color: 'lightblue', textDecoration: 'underline', fontSize: '18px' }}>Pradeepto Sarkar</a>

</Desc>
</Left>
Expand Down
33 changes: 33 additions & 0 deletions src/components/AnimatedCard/AnimatedCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import { motion } from 'framer-motion';

const AnimatedCard = ({ img, title, date, description, imageAlignment }) => {
return (
<motion.div
className={`bg-blue-900 shadow-card rounded-lg p-6 my-4 w-full min-h-[400px] flex flex-col items-center text-center transition duration-300 ease-in-out transform hover:scale-105 hover:shadow-glow-white`}
style={{ width: '600px', height: '85%' }}
initial={{ opacity: 0, y: -50 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.9 }}
>
{/* Image */}
{img && (
<div>
<img src={img} alt={title} className="w-32 h-36 object-cover rounded-full mx-auto" />
</div>
)}

{/* Content */}
<div className="flex-grow flex flex-col justify-between">
<h3 className="text-center text-4xl font-semibold mt-4 text-white">{title}</h3>
<p className="text-center text-lg text-gray-400">{date}</p>
<div
className="text-center text-white mt-4 text-xl"
dangerouslySetInnerHTML={{ __html: description }}
/>
</div>
</motion.div>
);
};

export default AnimatedCard;
17 changes: 15 additions & 2 deletions src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,18 @@ function Navbar() {
)}
</div>
</NavbarLink>

<NavbarLink
to="/achievements"
className={activeNavLink === "/achievements" ? "active" : ""}
>
<div>
Achievements
{activeNavLink === "/achievements" && (
<hr className="border-3 rounded-full" />
)}
</div>
</NavbarLink>
<NavbarLink
to="#"
className={activeNavLink === "/events" ? "active" : ""}
Expand Down Expand Up @@ -260,7 +272,7 @@ function Navbar() {
</NavbarLink>
<NavbarLink
to="http://blog.namespacecomm.in/"
target="_blank"
target="_blank" without rel="noreferrer"
className={
activeNavLink === "/http://blog.namespacecomm.in/"
? "active"
Expand Down Expand Up @@ -324,6 +336,7 @@ function Navbar() {
<a
href="https://linktr.ee/namespacecomm"
target="_blank"
without rel="noreferrer"
className="w-full"
>
<Button className="w-full">Connect with us</Button>
Expand All @@ -343,7 +356,7 @@ function Navbar() {
<NavbarLinkExtended to="/programs">Programs</NavbarLinkExtended>
<NavbarLinkExtended to="/team">Team</NavbarLinkExtended>
<NavbarLinkExtended to="/resources">Resources</NavbarLinkExtended>
<NavbarLinkExtended to="http://blog.nsccbpit.tech/" target="_blank">
<NavbarLinkExtended to="http://blog.nsccbpit.tech/" target="_blank" without rel="noreferrer" >
Blog
</NavbarLinkExtended>
<NavbarLinkExtended to="/techx">TechXcelerate</NavbarLinkExtended>
Expand Down
98 changes: 97 additions & 1 deletion src/constants/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1144,4 +1144,100 @@ export const allmembers = [
instagram: "null",
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: `
<ul>
<li>Technical Program Associate @ Major League Hacking</li>
<li>MLH SWE Fellow Fall ‘23</li>
<li>2x GSoC Accepted</li>
<li>Harvard Aspire Global Semis</li>
<li>4* Codechef</li>
<li>Specialist CodeForces</li>
</ul>
<br />
`
},
{
img:"https://user-images.githubusercontent.com/75252077/236657010-53641de3-591f-4a61-87c6-c94d2209d52f.jpg",
name: "Kartik Sharma",
batch: "2020-24",
achievements: `
<ul>
<li>SDE @ Physics Wallah</li>
<li>5* Codechef</li>
<li>Expert CodeForces</li>
</ul>
<br />
`
},
{
img:"https://user-images.githubusercontent.com/75252077/236658748-0dd5a22a-52eb-471c-8662-36efa310a38e.jpg",
name: "Vaibhav Goyal",
batch: "2021-25",
achievements: `
<ul>
<li>ICPC Regionalist 2023-24</li>
<li>Expert @ Codeforces</li>
<li>5* Codechef</li>
<li>Ex- VP @ The nameSpace Community</li>
</ul>
<br />
`
},
{
name: "Rishi",
batch: "2021-25",
achievements: `
<ul>
<li>ICPC Regionalist 2023-24</li>
<li>Expert @ Codeforces</li>
<li>[Dont know] Codechef</li>
<li>Ex- JC @ The nameSpace Community</li>
</ul>
<br />
`
},
{
name: "Jaskirat Singh",
batch: "2021-25",
achievements: `
<ul>
<li>MITACS GRI’24</li>
<li>Blockchain Educator @ Decentraclasses</li>
<li>Building OpinioNect</li>
<li>Hackathon Aficionado</li>
</ul>
<br />
`
},
{
img:"https://res.cloudinary.com/df5hitkbj/image/upload/v1693238094/shivank_hglloc.jpg",
name: "Shivank Kapur",
batch: "2022-26",
achievements: `
<ul>
<li>Developer Relations Intern @ Router Protocol</li>
<li>Web3 & Blockchain Head @ The nameSpace Community</li>
<li>Ex- DogeCapital, Ex-PushProtocol</li>
</ul>
<br />
`
},
{
name: "Ankur Sharma",
batch: "2022-26",
achievements: `
<ul>
<li>Security intern @ Delhi Police</li>
<li>Security intern @ Gurugram Police</li>
<li>2nd @ Hackathon Reckon 5.0</li>
<li>3rd @ Hackathon HackHaxards</li>
</ul>
`
}
];
6 changes: 5 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,8 @@ body {

.no-scrollbar::-webkit-scrollbar {
display: none;
}
}
.hover\:shadow-glow-white:hover {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.5);
transition: box-shadow 0.3s ease-in-out;
}
13 changes: 12 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
"./app/**/*.{js,jsx}",
"./pages/**/*.{js,jsx}",
"./components/**/*.{js,jsx}",

// Or if using `src` directory:
"./src/**/*.{js,jsx}",
],
Expand All @@ -20,6 +20,11 @@ module.exports = {
},
boxShadow: {
card: "0px 35px 120px -15px #211e35",
// 'glow-blue': '0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(0, 0, 255, 0.5), 0 0 30px rgba(0, 0, 255, 0.5), 0 0 40px rgba(0, 0, 255, 0.5)', // custom shadow




},
fontFamily :{
Inter : ['Inter', 'sans-serif'],
Expand All @@ -30,6 +35,12 @@ module.exports = {

},
},
variants: {
extend: {
boxShadow: ['hover'], // ensure hover variant is enabled for boxShadow
transform: ['hover'], // ensure hover variant is enabled for transform
},
},
plugins: [],
}
}

0 comments on commit 7f05400

Please sign in to comment.