Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds my card #56

Merged
merged 1 commit into from
Oct 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/cardData.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
"work": "www.paypal.com"
}
}
},
"rhonda": {
"component": "RhondaCard",
"data": {
"name": "Rhonda Kremer",
"title": "Software Engineer @ Invitae",
"email": "[email protected]",
"linkedin": "http://www.linkedin.com/in/rhondakremer",
"github": "https://github.com/rhondakremer"
}
}
}
}
28 changes: 28 additions & 0 deletions src/cards/rhondaCard/rhondaCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React, { useContext } from 'react';
import { CardContext } from '../../App';
import image from './rhondapicture.jpg';
import './rhondaCard.scss';

const RhondaCard = () => {
const { rhonda } = useContext(CardContext);

return (
<div className="rhondaCardContainer">
<div className="centered">
<img className="image" src={image} alt="rhonda's face" />
</div>

<div className="centered">
<h3>{rhonda.data.name}</h3>
<p>{rhonda.data.title}</p>
<p>{rhonda.data.email}</p>
<div>
<a href={rhonda.data.linkedin} rel="noreferrer" target="_blank">LinkedIn</a>&nbsp;&nbsp;
<a href={rhonda.data.github} rel="noreferrer" target="_blank">Github</a>
</div>
</div>
</div>
)
}

export default RhondaCard;
37 changes: 37 additions & 0 deletions src/cards/rhondaCard/rhondaCard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.rhondaCardContainer {
align-items: center;
background: #FEAC5E; /* fallback for old browsers */
background: -webkit-linear-gradient(to left, #4bc0c8be, #C779D0, #FEAC5E); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to left, #4bc0c8d3, #C779D0, #FEAC5E); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: whitesmoke;
display: flex;
font-weight: 600;
height: 100%;
justify-content: space-around;
text-shadow: 4px 2px 6px #000000;

h3 {
margin-top: 0!important;
}

a {
color: hsl(204, 100%, 75%);
font-weight: bold;
}

.centered {
text-align: center;
}

.image {
border-radius: 50% 20% / 10% 50%;
height: 130px;
filter:saturate(200%) sepia(30%);
}

@media only screen and (max-width: 768px) {
.image {
height: 110px;
}
}
}
Binary file added src/cards/rhondaCard/rhondapicture.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/cardsDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import RachaelCard from "./cards/rachael-tCard/rachael-tCard";
import ChumleyCard from "./cards/chumleyCard/chumleyCard";
import BriesCard from './cards/briesCard/briesCard';
import PalesaCard from './cards/PalesaCard/PalesaCard';
import RhondaCard from './cards/rhondaCard/rhondaCard';

function CardsDisplay(props) {
return (
Expand Down Expand Up @@ -49,6 +50,9 @@ function CardsDisplay(props) {
<div>
<BriesCard />
</div>
<div>
<RhondaCard />
</div>
</div>

);
Expand Down