This commit is contained in:
commit
8de39ad755
4 changed files with 29 additions and 2 deletions
app
|
@ -75,6 +75,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
|
||||||
creating: "Creating Account..."
|
creating: "Creating Account..."
|
||||||
sign_up: "Sign Up"
|
sign_up: "Sign Up"
|
||||||
log_in: "log in with password"
|
log_in: "log in with password"
|
||||||
|
social_signup: "Or, you can sign up through Facebook or G+:"
|
||||||
|
|
||||||
home:
|
home:
|
||||||
slogan: "Learn to Code JavaScript by Playing a Game"
|
slogan: "Learn to Code JavaScript by Playing a Game"
|
||||||
|
|
|
@ -10,3 +10,16 @@
|
||||||
|
|
||||||
a[data-toggle="coco-modal"]
|
a[data-toggle="coco-modal"]
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
|
|
||||||
|
#signup-modal
|
||||||
|
.modal-footer
|
||||||
|
padding-top: 0
|
||||||
|
div
|
||||||
|
text-align: center
|
||||||
|
.social-login-text
|
||||||
|
padding-top: 20px
|
||||||
|
.network-logins
|
||||||
|
width: 263px
|
||||||
|
margin: 0 auto
|
||||||
|
div:last-of-type
|
||||||
|
margin-right: 0px
|
||||||
|
|
|
@ -30,5 +30,14 @@ block modal-body-content
|
||||||
block modal-body-wait-content
|
block modal-body-wait-content
|
||||||
h3(data-i18n="signup.creating") Creating Account...
|
h3(data-i18n="signup.creating") Creating Account...
|
||||||
|
|
||||||
block modal-footer-content
|
block modal-footer
|
||||||
button.btn.btn-primary.btn-large#signup-button(data-i18n="signup.sign_up") Sign Up
|
.modal-footer
|
||||||
|
div
|
||||||
|
button.btn.btn-primary.btn-large#signup-button(data-i18n="signup.sign_up") Sign Up
|
||||||
|
div.social-login-text(data-i18n="signup.social_signup") Or, you can sign up through Facebook or G+:
|
||||||
|
|
||||||
|
.modal-footer.network-logins
|
||||||
|
div
|
||||||
|
.fb-login-button(data-show-faces="false", data-width="200", data-max-rows="1", data-scope="email")
|
||||||
|
div
|
||||||
|
.gplus-login-button#gplus-login-button
|
||||||
|
|
|
@ -62,3 +62,7 @@ module.exports = class SignupModalView extends View
|
||||||
window.tracker?.trackEvent 'Finished Signup'
|
window.tracker?.trackEvent 'Finished Signup'
|
||||||
@enableModalInProgress(@$el)
|
@enableModalInProgress(@$el)
|
||||||
createUser userObject, null, window.nextLevelURL
|
createUser userObject, null, window.nextLevelURL
|
||||||
|
|
||||||
|
afterInsert: ->
|
||||||
|
super()
|
||||||
|
application.router.renderLoginButtons()
|
||||||
|
|
Reference in a new issue