2023-02-24 13:54:17 +00:00
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row">
|
2023-02-27 14:01:42 +00:00
|
|
|
|
<app-search-pokemon></app-search-pokemon>
|
2023-02-24 13:54:17 +00:00
|
|
|
|
<div
|
|
|
|
|
*ngFor="let pokemon of pokemonList"
|
|
|
|
|
class="col m4 s6"
|
|
|
|
|
(click)="goToPokemon(pokemon)"
|
|
|
|
|
>
|
|
|
|
|
<div class="card horizontal" pkmnBorderCard>
|
|
|
|
|
<div class="card-image">
|
|
|
|
|
<img [alt]="pokemon.name" [src]="pokemon.picture" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-stacked">
|
|
|
|
|
<div class="card-content">
|
|
|
|
|
<p>
|
|
|
|
|
{{ pokemon.name }}
|
|
|
|
|
</p>
|
|
|
|
|
<p>
|
|
|
|
|
<small>{{ pokemon.created | date : "yyyy-MM-dd" }}</small>
|
|
|
|
|
</p>
|
|
|
|
|
<span
|
|
|
|
|
*ngFor="let type of pokemon.types"
|
|
|
|
|
class="{{ type | pokemonTypeColor }}"
|
|
|
|
|
>
|
|
|
|
|
{{ type }}
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2023-02-27 13:23:58 +00:00
|
|
|
|
<a
|
|
|
|
|
class="btn-floating btn-large waves-effect waves-ligth red z-depth-3"
|
|
|
|
|
style="position: fixed; bottom: 25px; right: 25px"
|
|
|
|
|
routerLink="/pokemon/add"
|
|
|
|
|
>➕</a
|
|
|
|
|
>
|