Skip to content

Commit

Permalink
Merge pull request #84 from AudTheCodeWitch/4/create-card
Browse files Browse the repository at this point in the history
Issue4/Add my card
  • Loading branch information
domsbytes authored Oct 30, 2021
2 parents 5e19daa + ae371c8 commit 8cb4c84
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/cards/audreasCard/audreaCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react';
import './audreaCard.scss';
import image from './audrea_headshot.jpg';

//

function AudreaCard() {
return (
<div className="cardContainer">

<div className="card">
<img className="imageContainer" src={image} alt="Headshot of Audrea Cook" />
</div>

<div className="card">
<h3>Audrea Cook</h3>
<p>Software Engineer</p>
<a href="https://codewitch.dev">CodeWitch.dev</a>
<br></br>
<a href="https://www.github.com/audthecodewitch">GitHub</a>
<br></br>
<a href="https://www.linkedin.com/in/audreacook">LinkedIn</a>
</div>

</div>
);
}

export default AudreaCard;
23 changes: 23 additions & 0 deletions src/cards/audreasCard/audreaCard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.cardContainer {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto;
align-items: center;
}
.card {
margin: auto;
//padding: 1rem 1rem 1rem 1rem;
//align-items: right;
text-align: center;
//border: 2px solid white;
}
.image {
background-image: url(./audrea_headshot.jpg);
}
.imageContainer {
//align-items: left;
width: 120px;
height: auto;
margin: auto;
border-radius: 50%;
}
Binary file added src/cards/audreasCard/audrea_headshot.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 @@ -19,6 +19,7 @@ import DomsCard from "./cards/domsCard/domsCard";
import JordanCard from "./cards/mjordanCard/jordanCard";
import RonisCard from "./cards/ronisCard/roniCard";
import ParastouCard from "./cards/parastouCard/parastouCard";
import AudreaCard from "./cards/audreasCard/audreaCard"

function CardsDisplay() {
const contributors = useContext(CardContext);
Expand Down Expand Up @@ -70,6 +71,9 @@ function CardsDisplay() {
<div>
<ParastouCard />
</div>
<div>
<AudreaCard />
</div>
{Object.keys(contributors).map((contributor) => {
if (
contributor !== "brielle" &&
Expand Down

0 comments on commit 8cb4c84

Please sign in to comment.