Basic styling of sections page

This commit is contained in:
Charlotte Van Petegem 2025-05-23 16:25:25 +02:00
parent 156caecb21
commit 7656f2a277
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
9 changed files with 134 additions and 25 deletions

View file

@ -1,5 +1,8 @@
<% @sections.each do |section| %>
<p>
<%= link_to section.title, section_url(section) %>
</p>
<% end %>
<div class="title-card-grid">
<% @sections.each do |section| %>
<%= link_to(section_url(section), html_options = { class: 'title-card-container' }) do %>
<h4><%= section.title %></h4>
<p><%= section.description %></p>
<% end %>
<% end %>
</div>