Improvements to the new sign in flow
parent
4b5c02477b
commit
cf822f9d5e
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.6 KiB |
@ -0,0 +1,4 @@
|
||||
.field_with_errors
|
||||
span.error
|
||||
color: red
|
||||
margin-left: 5px
|
@ -0,0 +1,23 @@
|
||||
.new-user, .returning-user
|
||||
float: left
|
||||
|
||||
.new-user
|
||||
width: 49%
|
||||
|
||||
.new_user
|
||||
margin-top: 30px
|
||||
|
||||
.user_nickname
|
||||
label
|
||||
font-weight: bold
|
||||
|
||||
abbr
|
||||
display: none
|
||||
|
||||
.returning-user
|
||||
width: 49%
|
||||
border-left: 1px solid #bbb
|
||||
box-sizing: border-box
|
||||
-webkit-box-sizing: border-box
|
||||
-moz-box-sizing: border-box
|
||||
padding-left: 30px
|
@ -1,25 +0,0 @@
|
||||
<section class="supplimental">
|
||||
<div class="wrapper">
|
||||
<h1>Log In</h1>
|
||||
|
||||
<p>
|
||||
We recommend logging in with your email using <%= link_to "Mozilla Persona", "https://login.persona.org/" %>.
|
||||
Look <%= link_to "here", "https://developer.mozilla.org/en-US/docs/Persona" %> for more details.
|
||||
</p>
|
||||
|
||||
<ul id="login">
|
||||
<li><%= link_to image_tag('persona_sign_in_blue.png', :title => "Log in via Persona"), '#', :id => 'persona-button' %></li>
|
||||
</ul>
|
||||
|
||||
<%# <p> %>
|
||||
<%# Or just log in with your GitHub or Twitter account: %>
|
||||
<%# </p> %>
|
||||
|
||||
<%# <ul id="login"> %>
|
||||
<%# <li><%= link_to "Log in via Github", github_auth_path, :class => 'btn-auth btn-github' %1></li> %>
|
||||
<%# <li><%= link_to "Log in via Twitter", twitter_auth_path, :class => 'btn-auth btn-twitter' %1></li> %>
|
||||
<%# </ul> %>
|
||||
</div>
|
||||
|
||||
<div class="vertical-expander"></div>
|
||||
</section>
|
@ -0,0 +1,8 @@
|
||||
section.supplimental
|
||||
.wrapper
|
||||
h1 Log In
|
||||
|
||||
ul#login
|
||||
li = link_to image_tag('email_sign_in_black.png', :title => "Sign in with your email"), '#', :id => 'persona-button'
|
||||
|
||||
.vertical-expander
|
@ -1,32 +1,38 @@
|
||||
section.supplimental
|
||||
.wrapper
|
||||
p There is no account with email #{@user.email}.
|
||||
|
||||
h2 That's because I am here for the first time
|
||||
.new-user
|
||||
h2 New user?
|
||||
|
||||
h3 Pick your username:
|
||||
p
|
||||
' Every Asciinema user gets a profile page at
|
||||
br
|
||||
a href="#"
|
||||
| http://asciinema.org/~
|
||||
strong username
|
||||
' . Pick a desired username below.
|
||||
|
||||
= simple_form_for @user, :url => user_path do |f|
|
||||
= f.input :nickname, label: 'Username', required: true, input_html: { 'data-behavior' => 'focus' }
|
||||
= f.button :submit
|
||||
= simple_form_for @user, :url => user_path do |f|
|
||||
p = f.input :nickname, label: 'Pick a username:', required: true, input_html: { 'data-behavior' => 'focus' }
|
||||
p.actions = f.button :submit, 'Start recording'
|
||||
|
||||
hr
|
||||
.returning-user
|
||||
h2 Returning user?
|
||||
|
||||
/* p */
|
||||
/* | We recommend logging in with your email using */
|
||||
/* = link_to "Mozilla Persona", "https://login.persona.org/" */
|
||||
/* | . Look */
|
||||
/* = link_to "here", "https://developer.mozilla.org/en-US/docs/Persona" */
|
||||
/* | for more details. */
|
||||
p
|
||||
' There is no account associated with the email
|
||||
strong = @user.email
|
||||
' .
|
||||
|
||||
h2 That's because I've been logging in via Github/Twitter
|
||||
p
|
||||
' However, if you have been previously signing in to Asciinema via
|
||||
' Github or Twitter then click a proper button below so we can locate
|
||||
' your existing account:
|
||||
|
||||
p
|
||||
| If you have been previously logging in via Github or Twitter
|
||||
| pls do it again. One time!
|
||||
ul.login
|
||||
li = link_to "Sign in via Github", github_auth_path, :class => 'btn-auth btn-github'
|
||||
li = link_to "Sign in via Twitter", twitter_auth_path, :class => 'btn-auth btn-twitter'
|
||||
|
||||
ul.login
|
||||
li = link_to "Log in via Github", github_auth_path, :class => 'btn-auth btn-github'
|
||||
li = link_to "Log in via Twitter", twitter_auth_path, :class => 'btn-auth btn-twitter'
|
||||
p Note: this is one-time task. You won't be asked to do it again.
|
||||
|
||||
.vertical-expander
|
||||
|
Loading…
Reference in New Issue