From 018affc145e0b3c823e3e7dcaaada39858f5c8b3 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 13 Nov 2024 10:07:50 +0000 Subject: Very ghetto resource featured card layout --- app/views/pdfresources/_pdfresource.html.erb | 29 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'app/views/pdfresources/_pdfresource.html.erb') diff --git a/app/views/pdfresources/_pdfresource.html.erb b/app/views/pdfresources/_pdfresource.html.erb index d947dd1..2e0d86c 100644 --- a/app/views/pdfresources/_pdfresource.html.erb +++ b/app/views/pdfresources/_pdfresource.html.erb @@ -1,7 +1,16 @@ -
+

- Name: - <%= pdfresource.name %> +

+ <%= image_tag url_for(pdfresource.thumbnails.first), class: "object-cover"%> +
+

+ +

+ <%= pdfresource.name %> +

+ +

+ <%= pdfresource.card_description %>

@@ -16,12 +25,6 @@ <% end %>

-

- Thumbnails: - <% pdfresource.thumbnails.each do |thumbnail| %> -

<%= link_to thumbnail.filename, thumbnail %>
- <% end %> -

Price: @@ -48,9 +51,7 @@ <%= pdfresource.description %>

-

- Card description: - <%= pdfresource.card_description %> +

+ <%= link_to "Show this pdfresource", pdfresource, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>

- -
+
\ No newline at end of file -- cgit v1.2.3