Skip to content

Commit

Permalink
Add Eklavya 2024 Initiative and fixed bug on info button (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
5iri authored Oct 4, 2024
1 parent f3d3c88 commit 827e2c8
Show file tree
Hide file tree
Showing 14 changed files with 121 additions and 48 deletions.
91 changes: 43 additions & 48 deletions components/Projects/EklavyaProjects/EklavyaProjects.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React, { useRef, useState, useEffect } from 'react';
import styles from './EklavyaProjects.module.scss';
import Link from 'next/link';
import { EklavyaProjectList } from '../../../data';
import { faGithub, faLinkedinIn } from '@fortawesome/free-brands-svg-icons';
import { faGithub } from '@fortawesome/free-brands-svg-icons';
import Hero from '../../Hero/Hero';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useRef, useState } from 'react';

const EklavyaProjects = () => {
return (
<>
<div className={styles.eklavyaProjectsContainer}>
<Hero
imgName={'eklavya-hero.jpg'}
backgroundPosition={'center top'}
Expand All @@ -18,59 +18,54 @@ const EklavyaProjects = () => {
/>
<div className={styles.eklavyaTotal} id='is'>
<div className={styles.eklavyaYearCloud}>
{EklavyaProjectList.map((year, idx) => {
return (
<a
key={`year_${idx}`}
className={styles.eklavyaYearTag}
href={`#${year.year}`}
>
{year.year}
</a>
);
})}
{EklavyaProjectList.map((year, idx) => (
<a
key={`year_${idx}`}
className={styles.eklavyaYearTag}
href={`#${year.year}`}
>
{year.year}
</a>
))}
</div>
</div>

{EklavyaProjectList.map((year, idx) => {
return (
<div
className={styles.eklavyaYear}
id={year.year}
key={`eklavya_projects_${year.year}`}
>
<h2>{year.year}</h2>
<div className={styles.eklavyaYearList}>
{year.projects.map((proj, idx) => {
return (
<ProjectCard
{...proj}
key={`eklavya_project_${year.year}_${idx}`}
/>
);
})}
</div>
{EklavyaProjectList.map((year) => (
<div
className={styles.eklavyaYear}
id={year.year}
key={`eklavya_projects_${year.year}`}
>
<h2>{year.year}</h2>
<div className={styles.eklavyaYearList}>
{year.projects.map((proj, idx) => (
<ProjectCard
{...proj}
key={`eklavya_project_${year.year}_${idx}`}
/>
))}
</div>
);
})}
</>
</div>
))}
</div>
);
};

const ProjectCard = ({ name, imgName, sub, githubLink }) => {
const cardRef = useRef();
const [isOpen, setIsOpen] = useState(false);

const onIClick = () => {
if (isOpen) {
cardRef.current.style.clipPath = 'circle(4% at 90.75% 8%)';
setIsOpen(false);
} else {
cardRef.current.style.clipPath = 'circle(120% at 90.75% 8%)';
setIsOpen(true);
}
const toggleCard = () => {
setIsOpen(!isOpen);
};

useEffect(() => {
if (cardRef.current) {
cardRef.current.style.clipPath = isOpen
? 'circle(120% at 50% 50%)'
: 'circle(4% at 90.75% 8%)';
}
}, [isOpen]);

return (
<div className={styles.eklavyaProj}>
<div
Expand All @@ -80,10 +75,10 @@ const ProjectCard = ({ name, imgName, sub, githubLink }) => {
<div className={styles.projName}>{name}</div>
<div
ref={cardRef}
className={styles.iCard}
onMouseEnter={onIClick}
onMouseLeave={onIClick}
onClick={onIClick}
className={`${styles.iCard} ${isOpen ? styles.open : ''}`}
onClick={toggleCard}
onMouseEnter={toggleCard}
onMouseLeave={toggleCard}
>
<div className={styles.iButton}>i</div>
<div className={styles.iInfo}>{sub}</div>
Expand Down
78 changes: 78 additions & 0 deletions data/eklavyaprojects.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,82 @@
const EklavyaProjectList = [
{
year: '2024',
projects: [
{
name: 'ApexCore',
imgName: 'Eklavya/Eklavya2024/ApexCore.png',
sub: 'A single core cpu based on RV32 ISA',
githubLink: 'https://github.com/LOuLOu-THEKing/ApexCore_RISC-V_CPU',
},
{
name: 'Emg-Armband',
imgName: 'Eklavya/Eklavya2024/Emg-armband.jpg',
sub: 'The EMG-Armband project predicts hand gestures using EMG sensor data and machine learning for precise gesture recognition. It captures electrical signals from forearm muscle movements to identify gestures. Potential applications include assistive devices, robotics, and interactive systems.',
githubLink: 'https://github.com/vovw/emgband',
},
{
name: 'Titan Quadruped',
imgName: 'Eklavya/Eklavya2024/Titan Quadruped.png',
sub: 'The project focuses on designing, testing, and controlling quadruped robot legs, assessing torque, load, and shock capacities. It involves CAD software like SOLIDWORKS, ONSHAPE, or FUSION360 for assembly. Testing includes various terrains and environmental constraints.',
githubLink: 'https://github.com/Krusshhnnaa/Titan_quadruped_sra',
},
{
name: 'Video Card on FPGA',
imgName: 'Eklavya/Eklavya2024/Video card on FPGA.jpg',
sub: 'This project focuses on the design and implementation of a video card using FPGA technology, capable of displaying images with up to 64 colors through an analog VGA interface. ',
githubLink: 'https://github.com/MrCheese260/Eklavya-Video-Card-Project',
},
{
name: 'Voice-Video-Manipulator',
imgName: 'Eklavya/Eklavya2024/Video voice manipulator.png',
sub: 'Takes in video input via a camera,processes the images it captures and calculates the distance and the coordinates of the particular object and reaches out that particular point in the space',
githubLink: 'https://github.com/MASQUERADE-2005/SRA_VVM',
},
{
name: 'Raytracer from Scratch',
imgName: 'Eklavya/Eklavya2024/RayTracer From Scratch.png',
sub: 'A Raytracing application built entirely from scratch using C++ and OpenGL',
githubLink: 'https://github.com/JaytidaA/SRA-Ray_Tracer_from_Scratch/',
},
{
name: 'Vision Transformers From Scratch',
imgName: 'Eklavya/Eklavya2024/vision transformers from scratch.png',
sub: 'Implement vision transformers(ViTs) model from scratch and generate descriptive captions for images by combining the power of Vision Transformers and computer vision.',
githubLink:
'https://github.com/sneha31415/vision_transformers_from_scratch/',
},
{
name: 'Convolution on FPGA',
imgName: 'Eklavya/Eklavya2024/Convolution On FPGA.png',
sub: 'Implementing convolution on FPGA',
githubLink: 'https://github.com/5usu/convolutions-on-fpga',
},
{
name: 'LQR BALANCER',
imgName: 'Eklavya/Eklavya2024/LQR Balancer.jpeg',
sub: 'SELF BALANCING BOT (WALL E) USING LINEAR QUADRATIC REGULATOR',
githubLink: 'https://github.com/crisiumnih/LQR_Balancer',
},
{
name: 'Gymmaster',
imgName: 'Eklavya/Eklavya2024/gym master.jpg',
sub: 'Our project focuses on understanding and implementation of concepts of Reinforcement learning through various control problems',
githubLink: 'https://github.com/De-funkd/gym_master-Sra-.git',
},
{
name: 'Gyro Glider',
imgName: 'Eklavya/Eklavya2024/Gyro Glider.png',
sub: 'Project Gyroglider is to revolutionise the Evobourne bot by equipping it with self-balancing capabilities. By harnessing the power of two BLDC motors as thrusters and two N20 motors as wheels. ',
githubLink: 'https://github.com/AmeyaTikhe/Gyroglider',
},
{
name: 'Micromouse',
imgName: 'Eklavya/Eklavya2024/MicroMouse.png',
sub: 'Micromouse is a small, autonomous robot designed to navigate and solve a maze. It is a popular robotics competition where participants build and program a robot (“mouse”) to autonomously find its way from a starting point to the center of a maze in the shortest possible time. The competition combines aspects of robotics, algorithm development, and engineering design, making it a challenging and educational project for students, hobbyists, and professionals alike.',
githubLink: 'https://github.com/Ojasp21/Micromouse/',
},
],
},
{
year: '2023',
projects: [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 827e2c8

Please sign in to comment.