Dictionary index and show styling

This commit is contained in:
maddiebaka
2023-10-23 11:37:20 -04:00
parent 366921b1d3
commit e73a6b3fc9
5 changed files with 62 additions and 8 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
<div>
<h1><%= @letter.to_s %></h1>
<h1 class="text-center"><b><%= @letter.to_s %></b></h1>
</div>
<%= render "alphabetical_links", letter: @letter %>
<% @words.each do |word| %>
<div>
<div class="dictionary-entry p-4">
<h2><%= word.word %></h2>
<%= render "definitions", word: word %>
</div>