-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
44 changed files
with
240 additions
and
54 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,6 5,7 @@ | |
"version": "0.0.1", | ||
"author": "Saurabh Dutta <[email protected]>", | ||
"dependencies": { | ||
"@crossfield/react-read-more": "^0.2.0", | ||
"@fortawesome/fontawesome-free": "^5.15.1", | ||
"@sanity/block-content-to-react": "^2.0.7", | ||
"@sanity/client": "^2.1.0", | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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 |
---|---|---|
@@ -0,0 1,60 @@ | ||
import React from 'react'; | ||
import PropTypes from "prop-types"; | ||
import Img from "gatsby-image"; | ||
import ReadMore from "@crossfield/react-read-more"; | ||
import { BsChevronCompactDown } from "react-icons/bs"; | ||
|
||
const PortfolioCard = ({ portfolio }) => { | ||
return ( | ||
<div className="portfolio-card card my-5"> | ||
<Img | ||
fluid={portfolio.image.asset.fluid} | ||
className="card-img-top portfolio-image-card" | ||
alt="Smart Coaching Portfolio" | ||
style={{ background: portfolio.background }} | ||
/> | ||
<ReadMore initialHeight={400} readMore={props => ( | ||
<button onClick={props.onClick}> | ||
{props.open ? 'Read Less' : 'Read More'} | ||
<span className="px-2"> | ||
<BsChevronCompactDown style={{ | ||
transform: `rotate( ${props.open ? '180deg' : '0deg'})`, | ||
transition: 'transform 0.25s', | ||
}} /> | ||
</span> | ||
</button> | ||
)}> | ||
<div className="card-body portfolio-body" style={{ paddingTop: "30px" }}> | ||
<div className="row"> | ||
<div className="col-12 col-md-6"> | ||
<h3 className="card-title"> | ||
<a href={portfolio.link} target="__blank">{portfolio.name}</a> | ||
</h3> | ||
<p>{portfolio.description}</p> | ||
</div> | ||
<div className="col-12 col-md-6 project-info"> | ||
<span className="portfolio-summary">Project Summary</span> | ||
<ul class="portfolio-aside-list"> | ||
<li> | ||
<span class="t-left">Role:</span> | ||
<span class="t-right text-primary">{portfolio.role}</span> | ||
</li> | ||
<li> | ||
<span class="t-left">Skills:</span> | ||
<div class="t-right cate-link"> | ||
{portfolio.tags.map((tag) => (<span className="badge">{tag}</span>))} | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
</ReadMore> | ||
</div > | ||
); | ||
} | ||
|
||
|
||
export default PortfolioCard; |
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
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
Oops, something went wrong.