Skip to content

Commit

Permalink
キャラクター一覧画面のレイアウトを修正 #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ishi720 committed Jun 5, 2024
1 parent d0bad31 commit ebecfa2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@
color: #ffffff;
border-radius: 3px;
}
}

.ui.cards>.card{
width: 270px;
}
20 changes: 13 additions & 7 deletions app/views/characters/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
<h1 class="ui header">キャラクター一覧</h1>

<div>
<div style="padding-bottom: 10px;">
<%= link_to "カレンダーへ", root_path =%>
</div>

<%= form_tag(characters_path, method: "get") do %>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "検索" %>
<% end %>
<div class="ui grid" style="padding-bottom: 10px;">
<div class="eight wide column">
<%= form_tag(characters_path, method: "get", class: "ui form") do %>
<div class="ui action input">
<%= text_field_tag :search, params[:search], placeholder: "キーワードを指定" %>
<button type="submit" class="ui icon button primary"><i class="search icon"></i></button>
</div>
<% end %>
</div>

<div>
<div class="eight wide column" style="text-align: end;">
<%= link_to new_character_path, class: "ui button primary" do %>
<i class="plus icon"></i>新規登録
<% end %>
</div>
</div>

<div style="text-aline: center;">
<div style="text-align: center; padding-bottom: 10px;">
<%= paginate @characters %>
</div>

Expand Down

0 comments on commit ebecfa2

Please sign in to comment.