-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Santiago MAC
committed
Jul 14, 2024
1 parent
8ab82eb
commit 53b71f4
Showing
3 changed files
with
92 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,95 @@ | ||
import Tilt from "react-tilt"; | ||
import React from "react"; | ||
import { Tilt } from "react-tilt"; | ||
import { motion } from "framer-motion"; | ||
|
||
import { styles } from "../styles"; | ||
|
||
import { styles } from '../styles' | ||
import { github } from "../assets"; | ||
import { SectionWrapper } from "../hoc"; | ||
import { SectionWraper } from "../hoc"; | ||
import { projects } from "../constants"; | ||
import { fadeIn, textVariant } from "../utils/motion"; | ||
|
||
|
||
const ProjectCard = ({ index, name, description, tags, image, source_code_link }) => { | ||
return( | ||
<motion.div variants={fadeIn("up", "spring", index * 0.5, 0.75)}> | ||
<Tilt | ||
options={{ max: 25, | ||
scale:1, | ||
speed: 450 | ||
}} | ||
className="bg-tertiary p-5 rounded-2x1 sm:w-[360px] w-full"> | ||
<div className="relative w-full h-[230px]"> | ||
<img | ||
src={image} | ||
alt={name} | ||
className="w-full h-full object-cover rounded-2xl" | ||
/> | ||
<div className="absolute inset-0 flex justify-end m-3 card-img_hover"> | ||
<div | ||
onClick={() => window.open(source_code_link, "_blank")} | ||
className="black-gradient w-10 h-10 rounded-full flex justify-center items-center cursor-pointer"> | ||
<img | ||
src={github} | ||
alt="github" | ||
className="w-1/2 h-1/2 object-contain" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="mt-5"> | ||
<h3 className="text-white font-bold text-[24px]">{name}</h3> | ||
<p className="mt-2 text-secondary text-[14px]">{description}</p> | ||
</div> | ||
|
||
<div className="mt-4 flex flex-wrap gap-2"> | ||
{tags.map((tag) => ( | ||
<p key={tag.name} className={`text-[14px] ${tag.color}`}> | ||
#{tag.name} | ||
</p> | ||
|
||
))} | ||
</div> | ||
|
||
</Tilt> | ||
|
||
</motion.div> | ||
) | ||
|
||
} | ||
|
||
const Works = () => { | ||
return ( | ||
<> | ||
< > | ||
<motion.div variants={textVariant()}> | ||
<p className ={styles.sectionSubText} > | ||
My Work | ||
</p> | ||
<h2 className={styles.sectionHeadText}> | ||
Projects | ||
</h2> | ||
</motion.div> | ||
|
||
<div className="w-full flex"> | ||
<motion.p | ||
variants={fadeIn("","",0.1,1)} | ||
className = "mt-3 text-secondary text-[17px] max-w-3xl leading-[30px]"> | ||
The following projects showcase my skills and passion for data science, machine learning, and software development. | ||
Each project is unique and is breifly described with links to the code repositories in either GitHub or HuggingFace. | ||
</motion.p> | ||
</div> | ||
<div className="mt-20 flex flex-wrap gap-7"> | ||
{projects.map((project, index) => ( | ||
<ProjectCard | ||
key={`project-${index}`} | ||
{...project} | ||
/> | ||
))} | ||
|
||
</div> | ||
</> | ||
) | ||
} | ||
|
||
export default SectionWrapper(Works,""); | ||
export default SectionWraper(Works, ""); |