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

View File

@@ -1,6 +1,11 @@
<%= sanitize alphabetical_links, tags: ["a"] %>
<h1 class="text-center">Index</h1>
<%= render "alphabetical_links" %>
<p><%= @parts_of_speech.count %> parts of speech entries in database</p>
<p><%= @words.count %> word entries in database</p>
<div class="p-4">
<p><%= @parts_of_speech.count %> parts of speech entries in database</p>
<p><%= @words.count %> word entries in database</p>
</div>
<%= render "partsofspeech", parts_of_speech: @parts_of_speech %>
<div class="p-4">
<%= render "partsofspeech", parts_of_speech: @parts_of_speech %>
</div>

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>