Skip to content

Commit 4628149

Browse files
committed
styles(proyect): add cards
1 parent 227ecb9 commit 4628149

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/components/App.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ export default function App() {
55
<main>
66
<PokemonCard name="pikachu" />
77
<PokemonCard name="raichu" />
8+
<PokemonCard name="pichu" />
9+
<PokemonCard name="snorlax" />
810
<PokemonCard name="charmander" />
911
<PokemonCard name="charmeleon" />
1012
<PokemonCard name="charizard" />
13+
<PokemonCard name="jigglypuff" />
1114
<PokemonCard name="squirtle" />
1215
<PokemonCard name="wartortle" />
1316
<PokemonCard name="blastoise" />
17+
<PokemonCard name="ditto" />
1418
<PokemonCard name="bulbasaur" />
1519
<PokemonCard name="ivysaur" />
1620
<PokemonCard name="venusaur" />
17-
<PokemonCard name="caterpie" />
1821
<PokemonCard name="weedle" />
1922
<PokemonCard name="pidgey" />
20-
<PokemonCard name="rattata" />
21-
<PokemonCard name="jigglypuff" />
2223
<PokemonCard name="meowth" />
2324
<PokemonCard name="psyduck" />
24-
<PokemonCard name="snorlax" />
2525
<PokemonCard name="mewtwo" />
2626
</main>
2727
);

src/components/PokemonCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default function PokemonCard({ name = "pikachu" }) {
4343
<h2 className="card__title"> {data.name.toUpperCase()} #{data.id}</h2>
4444
<img src={sprite} alt={data.name} width={200} height={200} />
4545
<p><b>Types:</b> {data.types.map(t => t.type.name).join(", ")}</p>
46-
<p><b>Height:</b> {data.height} | <b>Weight:</b> {data.weight}</p>
46+
<p><b>Height:</b> {data.height * 10}cm | <b>Weight:</b> {data.weight*0.1}kg </p>
4747
<ul className="list">
4848
{data.stats.map(s => (
4949
<li className="list-item" key={s.stat.name}>

0 commit comments

Comments
 (0)