diff --git a/app/assets/stylesheets/content_types.scss b/app/assets/stylesheets/content_types.scss index a5460d31..d4ed612c 100644 --- a/app/assets/stylesheets/content_types.scss +++ b/app/assets/stylesheets/content_types.scss @@ -25,3 +25,12 @@ right: 7px; z-index: 3; } + +.centered-card-content { + margin: 0; + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -80%); + text-align: center; +} diff --git a/app/views/content/list/_cards.html.erb b/app/views/content/list/_cards.html.erb index 882340f0..f63962b4 100644 --- a/app/views/content/list/_cards.html.erb +++ b/app/views/content/list/_cards.html.erb @@ -52,10 +52,10 @@ slug: PageTagService.slug_for(tag.tag) ) do %> - + <% end %> <% else %> - + <% end %> <% end %>

@@ -70,4 +70,20 @@ <% end %> + +
+ <%= link_to new_polymorphic_path(content_type), class: 'white-text' do %> +
+
+ + New
+ <%= content_type.name %> +
+

+ add +

+
+
+ <% end %> +