wip sidebar

This commit is contained in:
drusepth 2022-03-21 17:24:16 -07:00
parent 1a044abadc
commit cc8e6bdbc6

View File

@ -52,10 +52,10 @@
<div x-spread="collapse" x-cloak class="pl-1">
<% @activated_content_types.each do |content_type| %>
<% content_type_klass = content_class_from_name(content_type) %>
<%= link_to main_app.polymorphic_path(content_type_klass), class: 'flex items-center px-4 py-3 cursor-pointer group hover:bg-blue-100 hover:text-gray-900 rounded-l-full' do %>
<%= link_to main_app.polymorphic_path(content_type_klass), class: 'flex items-center px-4 py-2 cursor-pointer group hover:bg-notebook-blue hover:text-white rounded-l-full' do %>
<i class="material-icons <%= content_type_klass.text_color %> shrink-0 w-6 h-6 mr-2"><%= content_type_klass.icon %></i>
<span class="flex-grow text-sm"><%= content_type.pluralize %></span>
<span class="bg-gray-100 rounded px-2 text-xs group-hover:bg-blue-100">
<span class="bg-gray-100 rounded px-1 text-xs group-hover:bg-notebook-blue">
<%= number_with_delimiter @current_user_content.fetch(content_type, []).count %>
</span>
<% end %>
@ -79,6 +79,7 @@
<a class="flex items-center py-2 pl-12 pr-4 transition cursor-pointer hover:bg-gray-100 hover:text-gray-900" href="#">Shopify</a>
<a class="flex items-center py-2 pl-12 pr-4 transition cursor-pointer hover:bg-gray-100 hover:text-gray-900" href="#">Slack</a>
<a class="flex items-center py-2 pl-12 pr-4 transition cursor-pointer hover:bg-gray-100 hover:text-gray-900" href="#">Zapier</a>
<a class="flex items-center py-2 pl-12 pr-4 transition cursor-pointer hover:bg-gray-100 hover:text-gray-900" href="#">Review</a>
</div>
</div>