diff options
Diffstat (limited to 'app/views/pdfresources/index.html.erb')
-rw-r--r-- | app/views/pdfresources/index.html.erb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/app/views/pdfresources/index.html.erb b/app/views/pdfresources/index.html.erb index 158e505..880fb90 100644 --- a/app/views/pdfresources/index.html.erb +++ b/app/views/pdfresources/index.html.erb @@ -9,10 +9,15 @@ <h1 class="font-bold text-4xl m-12">Featured Resources</h1> </div> - <div id="pdfresources" class="flex flex-wrap justify-between"> - <% @pdfresources.where("feature_slot < 4").each do |pdfresource| %> - <%= render pdfresource %> - <% end %> + <div id="pdfresources" class="max-w-7xl mx-auto"> + <% featured_resources = @pdfresources.where("feature_slot < 4").order(:feature_slot) %> + <div class="flex flex-col md:flex-row gap-6"> + <% featured_resources.each do |pdfresource| %> + <div class="flex-1"> + <%= render pdfresource %> + </div> + <% end %> + </div> </div> <% if Current.session.user.is_admin %> |