<%= @featured_story.title %>
@@ -310,19 +310,19 @@
<%
- # Define color mapping for different categories
+ # Define color mapping for different categories with translucent overlays
category_colors = {
- "Self-Care & Personal Growth" => "bg-blue-600",
- "Schools & Universities" => "bg-purple-600",
- "Grief & Loss" => "bg-purple-600",
- "Community Engagement" => "bg-teal-600",
- "Domestic Violence" => "bg-pink-600",
- "Social Justice" => "bg-green-600",
- "Facilitator Spotlights" => "bg-purple-600"
+ "Self-Care & Personal Growth" => "bg-blue-600/70",
+ "Schools & Universities" => "bg-purple-600/70",
+ "Grief & Loss" => "bg-purple-600/70",
+ "Community Engagement" => "bg-teal-600/70",
+ "Domestic Violence" => "bg-pink-600/70",
+ "Social Justice" => "bg-green-600/70",
+ "Facilitator Spotlights" => "bg-purple-600/70"
}
# Default color for categories not in the mapping
- default_color = "bg-gray-600"
+ default_color = "bg-gray-600/70"
%>
<% @popular_stories.first(4).each do |story| %>
@@ -333,18 +333,20 @@
%>
<%= link_to story_path(story), class: "group block relative aspect-[3/4] overflow-hidden hover:opacity-90 transition-opacity" do %>
+
<%= render "assets/display_image",
resource: story,
variant: :hero %>
-
-
+
+
+