diff --git a/priv/static/images/elixirweekly-thumb.png b/priv/static/images/elixirweekly-thumb.png new file mode 100755 index 0000000..0cd369f Binary files /dev/null and b/priv/static/images/elixirweekly-thumb.png differ diff --git a/web/static/css/app/component.post.scss b/web/static/css/app/component.post.scss index 61b9456..42780f0 100644 --- a/web/static/css/app/component.post.scss +++ b/web/static/css/app/component.post.scss @@ -28,10 +28,9 @@ .post--sign-in-to-post { background: transparent; border: none; - margin-top: 0; padding-top: 0; a.btn { - margin-top: 10px; + vertical-align: middle; } } diff --git a/web/static/css/app/component.sidebar.scss b/web/static/css/app/component.sidebar.scss index 9475e61..53ce34e 100644 --- a/web/static/css/app/component.sidebar.scss +++ b/web/static/css/app/component.sidebar.scss @@ -183,3 +183,15 @@ a.sidebar-nav-item:focus { border: none; } } + +.badge { + font-size: 0.675rem; + padding: 3px; + border-radius: 3px; + vertical-align: text-top; +} + +.badge--new { + background: #e2d20b; + color: #6d561b; +} diff --git a/web/templates/posting/index.html.eex b/web/templates/posting/index.html.eex index c924292..912b9dd 100644 --- a/web/templates/posting/index.html.eex +++ b/web/templates/posting/index.html.eex @@ -57,7 +57,7 @@ just_created_by_me?: @created_posting == posting %> <%= if index == 2 do %> - <%= render ElixirStatus.SharedView, "promo_credo.html", conn: @conn %> + <%= render ElixirStatus.SharedView, "promo_elixirweekly.html", conn: @conn %> <% end %> <% end %> diff --git a/web/templates/posting/show.html.eex b/web/templates/posting/show.html.eex index c38598b..13bfec9 100644 --- a/web/templates/posting/show.html.eex +++ b/web/templates/posting/show.html.eex @@ -19,4 +19,4 @@ belongs_to_me?: ElixirStatus.Auth.belongs_to_current_user?(@conn, @posting), just_created_by_me?: @created_posting == @posting %> -<%= render ElixirStatus.SharedView, "promo_credo.html", conn: @conn %> +<%= render ElixirStatus.SharedView, "promo_elixirweekly.html", conn: @conn %> diff --git a/web/templates/shared/promo_elixirweekly.html.eex b/web/templates/shared/promo_elixirweekly.html.eex new file mode 100644 index 0000000..6a16386 --- /dev/null +++ b/web/templates/shared/promo_elixirweekly.html.eex @@ -0,0 +1,12 @@ +
+
+
+ +
+

+ " style="display: inline-block; width: 64px; margin-right: 10px;vertical-align: middle;"/> + Get your Elixir news once a week by email: + ElixirWeekly +

+
+
diff --git a/web/templates/shared/sidebar.html.eex b/web/templates/shared/sidebar.html.eex index 26169ec..ef90c6e 100644 --- a/web/templates/shared/sidebar.html.eex +++ b/web/templates/shared/sidebar.html.eex @@ -20,6 +20,7 @@ <% end %> <%= gettext "About" %> <%= gettext "You can follow via" %> + NEW! ElixirWeekly Twitter RSS <%= gettext "Running on Phoenix!" %>