Last active
November 11, 2020 15:22
-
-
Save kristianpedersen/7e8200293efef67e331626a0cf55f0af to your computer and use it in GitHub Desktop.
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
import clock from "../img/clock.svg" | |
import diaphragm from "../img/diaphragm.svg" | |
import money from "../img/money.svg" | |
import teamwork from "../img/teamwork.svg" | |
const cards = [ | |
{ icon: clock, h1Text: "Efficient", pText: "So efficient!" }, | |
{ icon: teamwork, h1Text: "Teamwork", pText: "Such teamwork" }, | |
{ icon: diaphragm, h1Text: "Diaphragm", pText: "Diaphphgraprhagm" }, | |
{ icon: money, h1Text: "Money", pText: "Money > No money" }, | |
] | |
function servicesSection() { | |
return ( | |
<div className="services"> | |
<div className="description"> | |
<h2>High <span>quality</span> services</h2> | |
<div className="cards"> | |
{cards.map(card => { | |
return ( | |
<div className="card"> | |
<div className="icon"> | |
<h1>{card.h1Text}</h1> | |
<div className="image"> | |
<img src={card.icon} alt="lol" /> | |
</div> | |
<p>{card.pText}</p> | |
</div> | |
</div> | |
) | |
})} | |
</div> | |
</div> | |
</div> | |
) | |
} | |
export default servicesSection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment