Skip to content

Commit

Permalink
Add user-friendly prompts for registration and login options
Browse files Browse the repository at this point in the history
  • Loading branch information
Misofser committed Dec 26, 2023
1 parent bfe267b commit 87aee5d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
20 changes: 19 additions & 1 deletion app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ h3 {
}

.login h1 {
font-size: 44px;
font-size: 42px;
margin-bottom: 20px;
color: #333;
margin-top: 0;
Expand Down Expand Up @@ -453,6 +453,20 @@ h3 {
background-color:#66818c
}

.separator-line {
height: 1.5px;
background-color: #ccc;
margin-top: 20px;
margin-bottom: 15px;
width: 80%;
margin-left: auto;
margin-right: auto;
}

.account-question {
margin-bottom: 15px;
}

.challenge-voting-page {
display: flex;
justify-content: space-between;
Expand Down Expand Up @@ -1178,4 +1192,8 @@ footer {
flex-direction: column;
}

.account-question {
font-size: 14px;
}

}
6 changes: 6 additions & 0 deletions app/views/sessions/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
<%= turbo_frame_tag "form-frame" do %>
<%= render "sessions/form", user: @user %>
<% end %>

<div class="separator-line"></div>

<div class="account-question">
Don't have an account? <%= link_to "Sign up", signup_path %>
</div>
</div>
</div>
</div>
6 changes: 6 additions & 0 deletions app/views/users/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
<%= render "users/form", user: @user %>
<% end %>

<div class="separator-line"></div>

<div class="account-question">
Already have an account? <%= link_to "Log in", login_path %>
</div>

</div>
</div>
</div>

0 comments on commit 87aee5d

Please sign in to comment.