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

Light version of Allie's card #120

Merged
Merged
Show file tree
Hide file tree
Changes from 2 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
25 changes: 25 additions & 0 deletions src/cards/AlliesCard/AlliesCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react";
import "./AlliesCard.scss";
import image from "./allies_headshot.JPG";

function AlliesCard() {
return (
<div className="cardContainer">
<div className="card">
<img
className="allieImageContainer"
src={image}
alt="example headshot of a woman"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a good follow up PR would be issue #95

/>
</div>

<div className="card">
<h3>Allie LeFever</h3>
<p>Software Engineer</p>
<a href="https://www.linkedin.com/in/allie-lefever/">LinkedIn</a>
</div>
</div>
);
}

export default AlliesCard;
24 changes: 24 additions & 0 deletions src/cards/AlliesCard/AlliesCard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.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(./allies_headshot.JPG);
}
.allieImageContainer {
//align-items: left;
width: 120px;
height: auto;
margin: auto;
border-radius: 50%;
box-shadow: 5px 10px #00ffff44;
}
Binary file added src/cards/AlliesCard/allies_headshot.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 15 additions & 3 deletions src/cardsDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import AudreaCard from "./cards/audreasCard/audreaCard";
import LovelaceCard from "./cards/lovelaceCard/LovelaceCard";
import KatyaCard from "./cards/katyaCard/katyaCard";
import ExampleCard from "./cards/exampleCard/exampleCard";
import AlliesCard from "./cards/AlliesCard/AlliesCard";
import AshleighCard from "./cards/aHalverstadtCard/aHalverstadtCard";
import RachelCard from "./cards/rachelCard/rachelCard";
import JamesKCard from "./cards/jamesKCard/JamesKCard";
Expand Down Expand Up @@ -49,6 +50,7 @@ function CardsDisplay() {
{ name: "Parastou", component: <ParastouCard /> },
{ name: "Audrea", component: <AudreaCard /> },
{ name: "Ada", component: <LovelaceCard /> },
{ name: "Allie", component: <AlliesCard /> },
{ name: "Ashleigh", component: <AshleighCard /> },
{ name: "Rachel", component: <RachelCard /> },
{ name: "Katya", component: <KatyaCard /> },
Expand Down Expand Up @@ -106,11 +108,21 @@ function CardsDisplay() {
return (
<>
<div className="sort-by-bar">
<button className="btn btn-main" onClick={() => setDisplayedCards(initialCards)}>Initial</button>
<button className="btn btn-main" onClick={() => setDisplayedCards(sortedCards)}>
<button
className="btn btn-main"
onClick={() => setDisplayedCards(initialCards)}
>
Initial
</button>
<button
className="btn btn-main"
onClick={() => setDisplayedCards(sortedCards)}
>
Alphabetical
</button>
<button className="btn btn-main" onClick={() => randomizeCards()}>Randomize</button>
<button className="btn btn-main" onClick={() => randomizeCards()}>
Randomize
</button>
</div>
<div className="cardholder">
{displayedCards.map((card, i) => {
Expand Down