Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion app/assets/stylesheets/pokemon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
color: rgba(0,0,0,.46);
}
.pokemon-card {
height: 25rem;
height: 27rem;
position: relative;
table {
width: 100%;
Expand Down Expand Up @@ -63,6 +63,13 @@
font-size: 1.4rem;
}
}
.nickname {
margin-top: 0px;
margin-bottom: 0px;
font-size: 2.0rem;
font-weight: bold;
position: relative;
}
.name {
margin-top: 0px;
margin-bottom: 0px;
Expand Down
1 change: 1 addition & 0 deletions app/models/pokemon.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Pokemon < ApplicationRecord
belongs_to :user, dependent: :destroy
validates :poke_id, presence: true
validates :nickname, presence: true
validates :move_1, presence: true
validates :move_2, presence: true
validates :max_health, presence: true
Expand Down
3 changes: 3 additions & 0 deletions app/views/pokemons/_pokemon.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
</div>
<div class="caption data">
<table>
<tr>
<td class="nickname"><%=pokemon[:nickname]%></td>
</tr>
<tr>
<td class="name"><%=pokemon[:poke_id]%></td>
<td class="CP"><%=pokemon[:cp]%></td>
Expand Down