diff --git a/app/views/folders/show.html.erb b/app/views/folders/show.html.erb index 6fde4e6a..dd31adaa 100644 --- a/app/views/folders/show.html.erb +++ b/app/views/folders/show.html.erb @@ -2,7 +2,7 @@ showNewFolderModal: false, showEditFolderModal: false, sidebarOpen: false, - showContentSidebar: false, + showContentSidebar: <%= @child_folders.any? || @content.any? %>, viewMode: 'grid', searchQuery: '' }" class="h-screen flex bg-gray-50"> @@ -207,8 +207,60 @@
+ + +
+
+ <%= image_tag asset_path("card-headers/folders.jpg"), class: 'h-32 w-full object-cover lg:h-48' %> +
+
@@ -248,9 +300,13 @@

<%= @folder.title %>

@@ -266,15 +322,39 @@
-
+
+ +
@@ -286,8 +366,8 @@

Folders

<% @child_folders.each do |folder| %> - <%= link_to folder, class: "bg-white rounded-lg border border-gray-200 hover:shadow-md transition-shadow duration-200 p-4 flex items-center" do %> -
+ <%= link_to folder, class: "bg-white rounded-lg border border-gray-200 hover:shadow-lg hover:-translate-y-1 transition-all duration-200 p-4 flex items-center group" do %> +
<%= Folder.icon %>
@@ -313,7 +393,7 @@

Empty folder

<% end %>
- chevron_right + chevron_right <% end %> <% end %>
@@ -322,7 +402,10 @@
-

Contents <%= @content.count %>

+
+

Contents

+ <%= @content.count %> +
<% if @content.any? %> @@ -331,12 +414,26 @@
search
- +
+ +
+ +
+
+ + +
+ Press ⌘K to focus search +
+
@@ -353,12 +450,56 @@
<% if @content.any? %> + + +
<% @content.each do |content_item| %>
<%= link_to (content_item.respond_to?(:view_path) ? content_item.view_path : content_item), class: "block" do %>
@@ -389,6 +530,17 @@
<% end %> + <% if content_item.respond_to?(:favorite?) %> + + <% end %>
<% end %>
@@ -397,8 +549,32 @@ <% else %> -
-
- folder_open +
+
+ folder_open
-

This folder is empty

-

Add content to this folder by selecting "Move to folder" when viewing any page.

-
+

This folder is empty

+

Add content to this folder by selecting "Move to folder" when viewing any page, or create new content directly.

+
<% Rails.application.config.content_types[:free].each do |content_type| %> <%= link_to new_polymorphic_path(content_type) do %> - @@ -458,4 +645,103 @@
<%= render partial: 'folders/tailwind_edit_modal', locals: { folder: @folder } %>
+ + +