From 11e82ebf953f68770cb1bc6ed760fdfdd31fff79 Mon Sep 17 00:00:00 2001
From: Andrew Brown
Date: Mon, 18 Mar 2019 18:54:35 -0500
Subject: [PATCH] add this comically large cta
---
app/assets/stylesheets/content_types.scss | 9 +++++++++
app/views/content/list/_cards.html.erb | 20 ++++++++++++++++++--
2 files changed, 27 insertions(+), 2 deletions(-)
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 %>
+