Created
July 1, 2018 06:55
-
-
Save xeoneux/1edda5dde863bb0e4419fb4abbf8e1fb 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
<main> | |
<section className="jumbotron"> | |
<h1 className="jumbotron-heading">GenB Crypto Tracker</h1> | |
<p className="lead text-muted">Track your favourite cryptocurrencies</p> | |
<div className="row"> | |
<ul> | |
{Data.map(coin => ( | |
<li key={coin.id} className="coin-item"> | |
<div className="coin-image"> | |
<div className="coin-remove" /> | |
<img | |
alt={coin.name} | |
src={require(`cryptocurrency-icons/dist/svg/color/${ | |
coin.symbol | |
}.svg`)} | |
/> | |
</div> | |
<div className="coin-name"> | |
<p>{coin.name}</p> | |
</div> | |
<div className="coin-info"> | |
<h4>${coin.price_usd}</h4> | |
<p>{coin.price_btc}</p> | |
</div> | |
<div className="coin-rank"> | |
<p>#{coin.rank}</p> | |
</div> | |
</li> | |
))} | |
</ul> | |
</div> | |
</section> | |
<section> | |
<h3 className="coin-available">Available Cryptocurrencies</h3> | |
<div className="container"> | |
<div className="row"> | |
{Data.map(coin => ( | |
<div key={coin.id} className="coin-select col-md-1"> | |
<img | |
alt={coin.name} | |
src={require(`cryptocurrency-icons/dist/svg/color/${ | |
coin.symbol | |
}.svg`)} | |
/> | |
<p>{coin.name}</p> | |
</div> | |
))} | |
</div> | |
</div> | |
</section> | |
</main> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment