diff options
author | Matthew Lemon <y@yulqen.org> | 2024-11-21 11:53:54 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-11-21 11:53:57 +0000 |
commit | 8ea33a576682005ffaf406541bf21b1be27e19f9 (patch) | |
tree | d20b97db6550bee5d822faf4a5de88afb77ee6d5 | |
parent | f5e1e7c579a1b0c31168cfc2473c776fa6d13dfe (diff) |
Adds nicer title to list page
-rw-r--r-- | app/views/pdfresources/index.html.erb | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/app/views/pdfresources/index.html.erb b/app/views/pdfresources/index.html.erb index 880fb90..0d79beb 100644 --- a/app/views/pdfresources/index.html.erb +++ b/app/views/pdfresources/index.html.erb @@ -5,10 +5,16 @@ <% content_for :title, "Alphabet Learning - Resources" %> - <div class="text-center"> - <h1 class="font-bold text-4xl m-12">Featured Resources</h1> + <div class="relative py-12 mb-8"> + <div class="absolute inset-0 bg-gradient-to-r from-violet-100 to-indigo-100 opacity-50 transform skew-y-[-2deg]"></div> + <div class="relative text-center"> + <h1 class="text-4xl md:text-5xl font-extrabold bg-clip-text text-transparent bg-gradient-to-r from-violet-600 to-indigo-600 tracking-tight"> + Featured Resources + </h1> + <div class="h-1 w-24 bg-gradient-to-r from-violet-500 to-indigo-500 mx-auto mt-4 rounded-full"></div> + </div> </div> - + <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"> @@ -19,7 +25,7 @@ <% end %> </div> </div> - + <% if Current.session.user.is_admin %> <%= link_to "Add new resource", new_pdfresource_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %> <% end %> |