Merge pull request #10520 from BerkeleyTrue/fix/sign-up-pages
Fix(nav): Change sign in to sign up
This commit is contained in:
@ -191,10 +191,10 @@ export default class extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<NavItem
|
<NavItem
|
||||||
eventKey={ 2 }
|
eventKey={ 2 }
|
||||||
href='/signin'
|
href='/signup'
|
||||||
key='signin'
|
key='signup'
|
||||||
>
|
>
|
||||||
Sign In
|
Sign Up
|
||||||
</NavItem>
|
</NavItem>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ function submitModern(type, state) {
|
|||||||
if (type === types.checkChallenge) {
|
if (type === types.checkChallenge) {
|
||||||
return Observable.of(
|
return Observable.of(
|
||||||
makeToast({
|
makeToast({
|
||||||
message: `${randomCompliment()} Go to next challenge.`,
|
message: `${randomCompliment()} Go to your next challenge.`,
|
||||||
action: 'Submit',
|
action: 'Submit',
|
||||||
actionCreator: 'submitChallenge',
|
actionCreator: 'submitChallenge',
|
||||||
timeout: 10000
|
timeout: 10000
|
||||||
@ -65,7 +65,9 @@ function submitModern(type, state) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Observable.just(makeToast({ message: 'Not quite there, yet.' }));
|
return Observable.just(
|
||||||
|
makeToast({ message: 'Keep trying.' })
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function submitProject(type, state, { solution, githubLink }) {
|
function submitProject(type, state, { solution, githubLink }) {
|
||||||
|
@ -64,7 +64,7 @@ export default function nextChallengeSaga(actions$, getState) {
|
|||||||
return Observable.of(
|
return Observable.of(
|
||||||
updateCurrentChallenge(nextChallenge),
|
updateCurrentChallenge(nextChallenge),
|
||||||
resetUi(),
|
resetUi(),
|
||||||
makeToast({ message: 'Your next challenge arrived.' }),
|
makeToast({ message: 'Your next challenge has arrived.' }),
|
||||||
push(`/challenges/${nextChallenge.block}/${nextChallenge.dashedName}`)
|
push(`/challenges/${nextChallenge.block}/${nextChallenge.dashedName}`)
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
@ -9,7 +9,7 @@ export const makeToast = createAction(
|
|||||||
// assign current value of key to new toast
|
// assign current value of key to new toast
|
||||||
// and then increment key value
|
// and then increment key value
|
||||||
key: key++,
|
key: key++,
|
||||||
dismissAfter: timeout || 2000,
|
dismissAfter: timeout || 6000,
|
||||||
position: rest.position === 'left' ? 'left' : 'right'
|
position: rest.position === 'left' ? 'left' : 'right'
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -15,3 +15,7 @@ block content
|
|||||||
button.btn.btn-lg.btn-primary.btn-block(type='submit')
|
button.btn.btn-lg.btn-primary.btn-block(type='submit')
|
||||||
span.ion-person-add
|
span.ion-person-add
|
||||||
| Signup
|
| Signup
|
||||||
|
.row
|
||||||
|
.col-sm-6.col-sm-offset-3
|
||||||
|
p.text-center
|
||||||
|
a(href="/signin") Click here if you already have an account and want to sign in.
|
||||||
|
@ -25,7 +25,7 @@ block content
|
|||||||
.big-break
|
.big-break
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
a.btn.btn-cta.signup-btn.btn-block(href="/signin") Start coding (it's free)
|
a.btn.btn-cta.signup-btn.btn-block(href="/signup") Start coding (it's free)
|
||||||
.spacer
|
.spacer
|
||||||
h2 As featured in:
|
h2 As featured in:
|
||||||
img.img-center.img-responsive(src='https://s3.amazonaws.com/freecodecamp/as-seen-on.png')
|
img.img-center.img-responsive(src='https://s3.amazonaws.com/freecodecamp/as-seen-on.png')
|
||||||
@ -111,6 +111,6 @@ block content
|
|||||||
.big-break
|
.big-break
|
||||||
.row
|
.row
|
||||||
.col-xs-12.col-sm-8.col-sm-offset-2
|
.col-xs-12.col-sm-8.col-sm-offset-2
|
||||||
a.btn.btn-cta.signup-btn.btn-block(href="/signin") Start coding (it's free)
|
a.btn.btn-cta.signup-btn.btn-block(href="/signup") Start coding (it's free)
|
||||||
script.
|
script.
|
||||||
challengeName = 'Home'
|
challengeName = 'Home'
|
||||||
|
@ -21,7 +21,7 @@ nav.navbar.navbar-default.navbar-fixed-top.nav-height
|
|||||||
a(href='/shop') Shop
|
a(href='/shop') Shop
|
||||||
if !user
|
if !user
|
||||||
li
|
li
|
||||||
a(href='/signin') Sign in
|
a(href='/signup') Sign Up
|
||||||
else
|
else
|
||||||
li.brownie-points-nav
|
li.brownie-points-nav
|
||||||
a(href='/settings') [ #{user.points} ]
|
a(href='/settings') [ #{user.points} ]
|
||||||
|
Reference in New Issue
Block a user