Implemented pokedex list style
This commit is contained in:
parent
2857b1d131
commit
10442f9dc8
@ -55,7 +55,8 @@ const Pokedex = () => {
|
|||||||
{isLoadingPokemons ? (
|
{isLoadingPokemons ? (
|
||||||
<Loading />
|
<Loading />
|
||||||
) : (
|
) : (
|
||||||
sortedFilteredPokemonCardList.map(pokemonCard => (
|
<div className="all__pokemons">
|
||||||
|
{sortedFilteredPokemonCardList.map(pokemonCard => (
|
||||||
<PokemonCard
|
<PokemonCard
|
||||||
key={pokemonCard.id}
|
key={pokemonCard.id}
|
||||||
id={pokemonCard.id}
|
id={pokemonCard.id}
|
||||||
@ -63,7 +64,8 @@ const Pokedex = () => {
|
|||||||
image={pokemonCard.image}
|
image={pokemonCard.image}
|
||||||
types={pokemonCard.types}
|
types={pokemonCard.types}
|
||||||
/>
|
/>
|
||||||
))
|
))}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
@ -44,3 +44,10 @@ code {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.all__pokemons {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user