blob: 4d5545bf3f9e3ddf1e98e46ad5e4b48601e8a454 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<div class="space-y-4">
<h1>Pokédex</h1>
<div class="flex flex-wrap gap-4">
<% Pokemon.order(:pokedex_num).each do |pokemon| %>
<% break if pokemon.pokedex_num.to_i > 251 %>
<div class="flex flex-col flex-auto items-center w-[100px] bg-white
border border-orange-900 rounded shadow">
<div class="flex-1 text-display text-center">No. <%= pokemon.pokedex_num %></div>
<div class="flex-grow flex flex-col justify-around">
<%= image_tag "sprites/pokemon/#{pokemon.pokedex_num}.png" %>
</div>
<div class="flex-1"><%= pokemon.name %></div>
</div>
<% end %>
</div>
</div>
|