Skip to content

Commit 98fba3b

Browse files
committed
feature/Move login/sign up button
1 parent 82c60f4 commit 98fba3b

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

app/javascript/stylesheets/application.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pre {
6666
&-tertiary {
6767
@extend .button--cta;
6868

69-
@apply bg-white text-space-cadet border-space-cadet;
69+
@apply bg-white text-cyan border-cyan;
7070
}
7171
}
7272

app/views/layouts/application.html.erb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,10 @@
7676
)
7777
%>
7878
<% else %>
79-
<%=
80-
button_tag(
81-
'NEW SNIPPET',
82-
class: 'w-full button--cta-primary flex justify-center',
83-
data: {
84-
controller: 'modal',
85-
action: 'modal#present',
86-
modal_url_value: sign_in_sign_up_modals_users_path
87-
}
88-
)
89-
%>
79+
<div class="flex justify-center">
80+
<%= button_tag('LOG IN', type: :button, class: "flex-1 flex justify-center button--cta-tertiary", data: { controller: "modal", modal_url_value: sign_in_modals_users_path, action: "click->modal#present" }) %>
81+
<%= button_tag('SIGN UP', type: :button, class: "flex-1 flex justify-center button--cta-primary ml-2", data: { controller: "modal", modal_url_value: sign_up_modals_users_path, action: "click->modal#present" }) %>
82+
</div>
9083
<% end %>
9184

9285
<%= render partial: 'shared/connect' %>

app/views/shared/_topbar.html.erb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
<%= render partial: 'shared/nav_item', locals: { path: snippets_path, icon: 'snippet' } %>
1515
<%= render partial: 'shared/nav_item', locals: { path: notifications_path, icon: 'bell' } %>
1616
<%= render partial: 'shared/nav_item', locals: { path: connect_path, icon: 'connect' } %>
17-
<% else %>
18-
<%= button_tag('LOG IN', type: :button, class: "button--cta-tertiary", data: { controller: "modal", modal_url_value: sign_in_modals_users_path, action: "click->modal#present" }) %>
19-
<%= button_tag('SIGN UP', type: :button, class: "button--cta-secondary ml-2", data: { controller: "modal", modal_url_value: sign_up_modals_users_path, action: "click->modal#present" }) %>
2017
<% end %>
2118
</div>
2219

0 commit comments

Comments
 (0)