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

Added Ada Lovelace card #87

Merged
merged 1 commit into from
Oct 31, 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
27 changes: 27 additions & 0 deletions src/cards/lovelaceCard/LovelaceCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from "react";
import './lovelaceCard.scss'
import image from "./lovelace.png";

function LovelaceCard() {
return (
<div className="lovelaceCardContainer">
<div className="card">
<img className="imageContainer" src={image} alt="lovelace-profile"/>
</div>
<div className="card-info">
<h3 className="name-h3">Ada Lovelace</h3>
<p className="text-blue">The first computer programmer</p>
<a
rel="noreferrer"
className="social-link"
target="_blank"
href="https://en.wikipedia.org/wiki/Ada_Lovelace"
>
Wikipedia
</a>
</div>
</div>
);
}

export default LovelaceCard;
Binary file added src/cards/lovelaceCard/lovelace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions src/cards/lovelaceCard/lovelaceCard.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.lovelaceCardContainer {
background-image: linear-gradient(315deg, #ffffff 0%, #ecdbc9 34%);
display: flex;
height: 100%;
padding: 2rem 1rem;
}

.lovelaceCardContainer .card img {
box-shadow: -5px 3px 0 5px #e2a860;
}

.name-h3 {
color: rgb(176, 68, 0);
}

.social-link {
background-color: #E2A860;
margin-right: 5px;
color: #000;
border: solid 1px gray;
padding: 5px;
border-radius: 10px;
}

.text-blue {
color: rgb(29, 50, 89);
}
4 changes: 4 additions & 0 deletions src/cardsDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import JordanCard from "./cards/mjordanCard/jordanCard";
import RonisCard from "./cards/ronisCard/roniCard";
import ParastouCard from "./cards/parastouCard/parastouCard";
import AudreaCard from "./cards/audreasCard/audreaCard"
import LovelaceCard from "./cards/lovelaceCard/LovelaceCard";

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