Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago MAC committed Jul 14, 2024
1 parent 8ab82eb commit 53b71f4
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const App = () => {
<Experience />
<Tech />
<Works />
<Feedbacks />
<div className ="relative z-0">
<Contact />
<StarsCanvas />
Expand Down
11 changes: 10 additions & 1 deletion src/components/Contact.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import React from 'react'
import { useState, useRef } from 'react';
import { motion } from 'framer-motion';
import emailjs from '@emailjs/browser';


import { styles } from '../styles';
import { EarthCanvas } from './canvas';




const Contact = () => {
return (
Expand Down
87 changes: 82 additions & 5 deletions src/components/Works.jsx
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, "");

0 comments on commit 53b71f4

Please sign in to comment.