]> git.openstreetmap.org Git - rails.git/commitdiff
Improve styling of help page
authorTom Hughes <tom@compton.nu>
Fri, 26 Jan 2024 18:11:04 +0000 (18:11 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 26 Jan 2024 18:11:49 +0000 (18:11 +0000)
Drop the redundant links in the footer and turn the title
into a header and extend it to cover the whole card.

app/views/site/help.html.erb

index ade1e9437d71b929272b38728c7e984e1621bbb8..be7ff1724684996999aac774948e968885426362 100644 (file)
   <% sites.each do |site| %>
     <div class="col">
       <div class='<%= site %> help-item card h-100'>
+        <h6 class='card-header'>
+          <a href='<%= t ".#{site}.url" %>' class='stretched-link'>
+            <%= t ".#{site}.title" %>
+          </a>
+        </h6>
         <div class='card-body'>
-          <h6 class='card-title'>
-            <a href='<%= t ".#{site}.url" %>'>
-              <%= t ".#{site}.title" %>
-            </a>
-          </h6>
           <p class='card-text'><%= t ".#{site}.description" %></p>
         </div>
-        <div class="card-footer">
-          <small>
-            <a href='<%= t ".#{site}.url" %>'>
-              <%= t ".#{site}.url" %>
-            </a>
-          </small>
-        </div>
       </div>
     </div>
   <% end %>