-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpokemon-item.html
44 lines (43 loc) · 1.06 KB
/
pokemon-item.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-item/paper-icon-item.html">
<link rel="import" href="../paper-item/paper-item-body.html">
<dom-module id="pokemon-item">
<template>
<style>
:host {
display: flex;
}
img {
width: 72px;
height: 72px;
}
paper-icon-item {
padding: 0;
}
paper-item-body {
min-height: 0;
padding-left: 16px;
}
.name {
text-transform: capitalize
}
</style>
<paper-icon-item>
<img src="https://img.pokemondb.net/sprites/omega-ruby-alpha-sapphire/dex/normal/[[pokemon.pokemon_species.name]].png" item-icon>
<paper-item-body two-line>
<div class="name">[[pokemon.pokemon_species.name]]</div>
<div secondary>#[[pokemon.entry_number]]</div>
</paper-item-body>
</paper-icon-item>
</template>
<script>
Polymer({
is: 'pokemon-item',
properties: {
pokemon: {
type: Object
}
}
});
</script>
</dom-module>