Skip to content

Commit

Permalink
Add icons
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhengg authored and KevinMulhern committed Feb 9, 2023
1 parent 1a8d865 commit 72b697f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/views/lessons/installation_lessons/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
<% @lessons.each do |lesson| %>
<li class="max-w-md mx-auto my-4 rounded-lg shadow transition bg-white hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700">
<%= link_to lesson_path(lesson) do %>
<p class="text-1xl text-center p-4 text-gray-600 dark:text-gray-300">
<%= lesson.title %>
</p>
<div class="p-4 flex items-center gap-3">
<%= inline_svg "icons/book.svg", alt: 'lesson icon', class: 'w-6 dark:text-gray-500 text-gray-400 shrink-0', title: 'Lesson' %>

<p class="text-1xl text-gray-600 dark:text-gray-300">
<%= lesson.title %>
</p>
</div>
<% end %>
</li>
<% end %>
Expand Down

0 comments on commit 72b697f

Please sign in to comment.