Skip to content

Commit

Permalink
Merge pull request #4 from spencer-rafada/spencer/projects
Browse files Browse the repository at this point in the history
project section
  • Loading branch information
spencer-rafada authored Aug 2, 2023
2 parents c0ee0fd + 4e20b9a commit 9de3c1d
Show file tree
Hide file tree
Showing 13 changed files with 161 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React from 'react'
import InfoSection from './components/InfoSection'
import About from './components/About'
import Experience from './components/Experience'
import FeaturedProjects from './components/FeaturedProjects'
import Footer from './components/Footer'

export default function App() {
return (
Expand All @@ -11,6 +13,8 @@ export default function App() {
<div className='displaySection'>
<About />
<Experience />
<FeaturedProjects />
<Footer />
</div>
</div>
</div>
Expand Down
Binary file added src/assets/arkad_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/korastreat_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/mathninja_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/spruce_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/weddingwebsite_thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/components/FeaturedProjects.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react'
import projectsData from '../data/PROJECTS'
import Item from './Item'

export default function FeaturedProjects() {
console.log(projectsData)
return (
<div className='displaySection__projects'>
<h2>Featured Projects</h2>
{projectsData.map((item) => {
return <Item cardType={'proj'} data={item} />
})}
</div>
)
}
12 changes: 12 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react'

export default function Footer() {
return (
<div className='displaySection__footer'>
<p>
This portfolio was created by yours truly, but heavily inspired by{' '}
<a href='https://brittanychiang.com/'>Brittany Chiang</a>
</p>
</div>
)
}
13 changes: 11 additions & 2 deletions src/components/Item.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react'

export default function Item({ cardType, data }) {
const [type, setType] = useState('exp')
console.log(data)

useEffect(() => {
if (cardType === 'exp') setType('exp')
Expand All @@ -17,11 +16,21 @@ export default function Item({ cardType, data }) {
<div className='item__card' onClick={handleItemClick}>
<div className='item__card__left'>
{type === 'exp' && <p>{data.date}</p>}
{type === 'proj' && data.image && (
<div className='imgContainer'>
<img
src={data.image}
alt={`Image of Featured Project ${data.title}`}
/>
</div>
)}
</div>
<div className='item__card__right'>
<div className='item__card__rightJob'>
<a href={data.link}>
{data.position} - {data.company}
{type === 'exp'
? `${data.position} - ${data.company}`
: `${data.title}`}
</a>
<p>{data.description}</p>
</div>
Expand Down
61 changes: 61 additions & 0 deletions src/data/PROJECTS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
const projects = [
{
date: '2023',
title: 'Arkad',
description:
'Full Stack Web App that guides user to grow their wealth and finances through smart goals, financial tracker, and surrounding yourself with like minded people.',
madeAt: 'Personal Project',
tools: [
'react',
'TDD',
'jest',
'GitHub Actions',
'NodeJS',
'Express',
'MongoDB',
],
link: 'https://arkad-4hz9.onrender.com/',
image: '/src/assets/arkad_thumbnail.png',
},
{
date: '2023',
title: 'My Own Wedding Website',
description: `Full Stack Web app for my wife and I's wedding. View details about our wedding, RSVP, contacting us, and sending us notes`,
madeAt: 'Personal Project',
tools: ['react', 'NodeJS', 'Express', 'MongoDB', 'SCSS', 'Trello'],
link: 'https://hanaandspencer.onrender.com/',
image: '/src/assets/weddingwebsite_thumbnail.png',
},
{
date: '2022',
title: `KoRa's Treats`,
description:
'Web App that features baking products that my wife has made. This web app utilizes Vanilla JavaScript and CSS',
madeAt: 'BYU-I',
tools: ['JavaScript', 'CSS'],
link: 'https://spencer-rafada.github.io/kora-s-treats/',
image: '/src/assets/korastreat_thumbnail.png',
},
{
date: '2022',
title: 'Math Ninja',
description:
'Single Page Application that gamifies mathematics into Fruit Ninja. I was part of a group when we created this app.',
madeAt: 'BYU-I',
tools: ['react', 'Firebase', 'Canvas', 'Trello'],
link: '',
image: '/src/assets/mathninja_thumbnail.png',
},
{
date: '2023',
title: 'Spruce Moose',
description:
'REST API application that allowed local nursery to have their own server for managing and storing plant.',
madeAt: 'BYU-I',
tools: ['REST', 'NodeJS', 'Express', 'MongoDB', 'Trello'],
link: 'https://youtu.be/lFlTZcN_cKs',
image: '/src/assets/spruce_thumbnail.png',
},
]

export default projects
28 changes: 27 additions & 1 deletion src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,24 @@ body {
flex-direction: column;
gap: 1.5rem;
padding: 0.15rem;
margin-bottom: 3rem;
margin-bottom: 4rem;
}
.displaySection .displaySection__experience .view__resume:hover {
color: #75c8ff;
cursor: pointer;
}
.displaySection .displaySection__projects {
margin-bottom: 4rem;
}
.displaySection .displaySection__footer p {
text-align: center;
font-size: 0.8rem;
color: #c7c7c7;
}
.displaySection .displaySection__footer p a, .displaySection .displaySection__footer p a:visited {
color: #75c8ff;
text-decoration: none;
}

.item__card {
border-radius: 0.5rem;
Expand All @@ -138,6 +150,19 @@ body {
font-size: 0.8rem;
color: #c7c7c7;
}
.item__card .item__card__left .imgContainer {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.item__card .item__card__left .imgContainer img {
width: 100%;
-o-object-fit: cover;
object-fit: cover;
border-radius: 0.5rem;
}
.item__card .item__card__right {
grid-column: 2/3;
}
Expand All @@ -155,6 +180,7 @@ body {
.item__card .item__card__right .item__card__toolsContainer {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.item__card .item__card__right .item__card__toolsContainer .item__card__tools {
background-color: #062c47;
Expand Down
2 changes: 1 addition & 1 deletion src/main.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 30 additions & 1 deletion src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,28 @@ body {
flex-direction: column;
gap: 1.5rem;
padding: 0.15rem;
margin-bottom: 3rem;
margin-bottom: 4rem;
.view__resume:hover {
color: #75c8ff;
cursor: pointer;
}
}

.displaySection__projects {
margin-bottom: 4rem;
}

.displaySection__footer {
p {
text-align: center;
font-size: 0.8rem;
color: $textColorGray;
a, a:visited {
color: #75c8ff;
text-decoration: none;
}
}
}
}

// Item Card
Expand All @@ -153,6 +169,18 @@ body {
font-size: 0.8rem;
color: $textColorGray;
}
.imgContainer {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
img {
width: 100%;
object-fit: cover;
border-radius: 0.5rem;
}
}
}
.item__card__right {
grid-column: 2/3;
Expand All @@ -172,6 +200,7 @@ body {
.item__card__toolsContainer {
display: flex;
gap: 1rem;
flex-wrap: wrap;
.item__card__tools {
background-color: $secondaryColor;
color: #75c8ff;
Expand Down

0 comments on commit 9de3c1d

Please sign in to comment.