blob: 0d79bebbd23e3f883c2234a62575b08f8476ec3e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<div class="w-full">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p>
<% end %>
<% content_for :title, "Alphabet Learning - Resources" %>
<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">
<% featured_resources.each do |pdfresource| %>
<div class="flex-1">
<%= render pdfresource %>
</div>
<% 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 %>
</div>
|