mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Merge pull request #3207 from benjiwheeler/join-flow-welcome-text
add instructions text to join flow welcome step
This commit is contained in:
commit
56ce60fe86
4 changed files with 21 additions and 1 deletions
|
@ -18,6 +18,14 @@
|
||||||
margin-bottom: .5rem;
|
margin-bottom: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.join-flow-instructions {
|
||||||
|
font-size: .875rem;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 1.37500rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.validation-full-width-input {
|
.validation-full-width-input {
|
||||||
transform: translate(21.5625rem, 0);
|
transform: translate(21.5625rem, 0);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,6 +42,7 @@ class JoinFlow extends React.Component {
|
||||||
<BirthDateStep onNextStep={this.handleAdvanceStep} />
|
<BirthDateStep onNextStep={this.handleAdvanceStep} />
|
||||||
<EmailStep onNextStep={this.handleAdvanceStep} />
|
<EmailStep onNextStep={this.handleAdvanceStep} />
|
||||||
<WelcomeStep
|
<WelcomeStep
|
||||||
|
email={this.state.formData.email}
|
||||||
username={this.state.formData.username}
|
username={this.state.formData.username}
|
||||||
onNextStep={this.handleAdvanceStep}
|
onNextStep={this.handleAdvanceStep}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -60,7 +60,16 @@ class WelcomeStep extends React.Component {
|
||||||
)}`}
|
)}`}
|
||||||
waiting={isSubmitting}
|
waiting={isSubmitting}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
/>
|
>
|
||||||
|
<div className="join-flow-instructions">
|
||||||
|
<FormattedMessage
|
||||||
|
id="registration.welcomeStepInstructions"
|
||||||
|
values={{
|
||||||
|
email: this.props.email
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</JoinFlowStep>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
</Formik>
|
</Formik>
|
||||||
|
@ -69,6 +78,7 @@ class WelcomeStep extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
WelcomeStep.propTypes = {
|
WelcomeStep.propTypes = {
|
||||||
|
email: PropTypes.string,
|
||||||
intl: intlShape,
|
intl: intlShape,
|
||||||
onNextStep: PropTypes.func,
|
onNextStep: PropTypes.func,
|
||||||
username: PropTypes.string
|
username: PropTypes.string
|
||||||
|
|
|
@ -195,6 +195,7 @@
|
||||||
"registration.waitForApprovalDescription": "You can log into your Scratch Account now, but the features specific to Teachers are not yet available. Your information is being reviewed. Please be patient, the approval process can take up to one day. You will receive an email indicating your account has been upgraded once your account has been approved.",
|
"registration.waitForApprovalDescription": "You can log into your Scratch Account now, but the features specific to Teachers are not yet available. Your information is being reviewed. Please be patient, the approval process can take up to one day. You will receive an email indicating your account has been upgraded once your account has been approved.",
|
||||||
"registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:",
|
"registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:",
|
||||||
"registration.welcomeStepDescriptionNonEducator": "You’re now logged in! You can start exploring and creating projects.",
|
"registration.welcomeStepDescriptionNonEducator": "You’re now logged in! You can start exploring and creating projects.",
|
||||||
|
"registration.welcomeStepInstructions": "Want to share and comment? Click the link on the email we sent to {email}.",
|
||||||
"registration.welcomeStepPrompt": "To get started, click on the button below.",
|
"registration.welcomeStepPrompt": "To get started, click on the button below.",
|
||||||
"registration.welcomeStepTitle": "Hurray! Welcome to Scratch!",
|
"registration.welcomeStepTitle": "Hurray! Welcome to Scratch!",
|
||||||
"registration.welcomeStepTitleNonEducator": "Welcome to Scratch, {username}!",
|
"registration.welcomeStepTitleNonEducator": "Welcome to Scratch, {username}!",
|
||||||
|
|
Loading…
Reference in a new issue