mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 02:56:20 -05:00
format each join flow title’s padding differently
This commit is contained in:
parent
ad3940555e
commit
31d8189e54
6 changed files with 20 additions and 2 deletions
|
@ -91,6 +91,7 @@ class BirthDateStep extends React.Component {
|
||||||
headerImgSrc="/images/join-flow/birthdate-header.png"
|
headerImgSrc="/images/join-flow/birthdate-header.png"
|
||||||
innerClassName="join-flow-inner-birthdate-step"
|
innerClassName="join-flow-inner-birthdate-step"
|
||||||
title={this.props.intl.formatMessage({id: 'registration.birthDateStepTitle'})}
|
title={this.props.intl.formatMessage({id: 'registration.birthDateStepTitle'})}
|
||||||
|
titleClassName="join-flow-birthdate-title"
|
||||||
waiting={isSubmitting}
|
waiting={isSubmitting}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
|
|
@ -71,6 +71,7 @@ class CountryStep extends React.Component {
|
||||||
headerImgSrc="/images/join-flow/country-header.png"
|
headerImgSrc="/images/join-flow/country-header.png"
|
||||||
innerClassName="join-flow-inner-country-step"
|
innerClassName="join-flow-inner-country-step"
|
||||||
title={this.props.intl.formatMessage({id: 'registration.countryStepTitle'})}
|
title={this.props.intl.formatMessage({id: 'registration.countryStepTitle'})}
|
||||||
|
titleClassName="join-flow-country-title"
|
||||||
waiting={isSubmitting}
|
waiting={isSubmitting}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
|
|
@ -151,6 +151,7 @@ class EmailStep extends React.Component {
|
||||||
innerClassName="join-flow-inner-email-step"
|
innerClassName="join-flow-inner-email-step"
|
||||||
nextButton={this.props.intl.formatMessage({id: 'registration.createAccount'})}
|
nextButton={this.props.intl.formatMessage({id: 'registration.createAccount'})}
|
||||||
title={this.props.intl.formatMessage({id: 'registration.emailStepTitle'})}
|
title={this.props.intl.formatMessage({id: 'registration.emailStepTitle'})}
|
||||||
|
titleClassName="join-flow-email-title"
|
||||||
waiting={this.props.waiting || isSubmitting || this.state.captchaIsLoading}
|
waiting={this.props.waiting || isSubmitting || this.state.captchaIsLoading}
|
||||||
onSubmit={handleSubmit}
|
onSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
|
|
@ -18,6 +18,7 @@ const JoinFlowStep = ({
|
||||||
nextButton,
|
nextButton,
|
||||||
onSubmit,
|
onSubmit,
|
||||||
title,
|
title,
|
||||||
|
titleClassName,
|
||||||
waiting
|
waiting
|
||||||
}) => (
|
}) => (
|
||||||
<form onSubmit={onSubmit}>
|
<form onSubmit={onSubmit}>
|
||||||
|
@ -39,7 +40,10 @@ const JoinFlowStep = ({
|
||||||
>
|
>
|
||||||
{title && (
|
{title && (
|
||||||
<ModalTitle
|
<ModalTitle
|
||||||
className="join-flow-title"
|
className={classNames(
|
||||||
|
'join-flow-title',
|
||||||
|
titleClassName
|
||||||
|
)}
|
||||||
title={title}
|
title={title}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -79,6 +83,7 @@ JoinFlowStep.propTypes = {
|
||||||
nextButton: PropTypes.node,
|
nextButton: PropTypes.node,
|
||||||
onSubmit: PropTypes.func,
|
onSubmit: PropTypes.func,
|
||||||
title: PropTypes.string,
|
title: PropTypes.string,
|
||||||
|
titleClassName: PropTypes.string,
|
||||||
waiting: PropTypes.bool
|
waiting: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -133,6 +133,10 @@
|
||||||
padding-top: 3rem;
|
padding-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.join-flow-birthdate-title {
|
||||||
|
margin-bottom: 2.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
.join-flow-birthdate-description {
|
.join-flow-birthdate-description {
|
||||||
margin-top: 1.25rem;
|
margin-top: 1.25rem;
|
||||||
margin-right: -.5rem;
|
margin-right: -.5rem;
|
||||||
|
@ -140,6 +144,10 @@
|
||||||
margin-left: -.5rem;
|
margin-left: -.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.join-flow-email-title {
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.join-flow-email-privacy {
|
.join-flow-email-privacy {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
@ -157,6 +165,9 @@
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.join-flow-country-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 1.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gender-radio-row {
|
.gender-radio-row {
|
||||||
|
|
|
@ -154,7 +154,6 @@
|
||||||
"registration.choosePasswordStepTitle": "Create a password",
|
"registration.choosePasswordStepTitle": "Create a password",
|
||||||
"registration.choosePasswordStepTooltip": "Don't use your name or anything that's easy for someone else to guess.",
|
"registration.choosePasswordStepTooltip": "Don't use your name or anything that's easy for someone else to guess.",
|
||||||
"registration.classroomApiGeneralError": "Sorry, we could not find the registration information for this class",
|
"registration.classroomApiGeneralError": "Sorry, we could not find the registration information for this class",
|
||||||
"registration.countryStepDescription": "We’ll display your country on your profile.",
|
|
||||||
"registration.countryStepTitle": "What country do you live in?",
|
"registration.countryStepTitle": "What country do you live in?",
|
||||||
"registration.generalError": "Sorry, an unexpected error occurred.",
|
"registration.generalError": "Sorry, an unexpected error occurred.",
|
||||||
"registration.classroomInviteExistingStudentStepDescription": "you have been invited to join the class:",
|
"registration.classroomInviteExistingStudentStepDescription": "you have been invited to join the class:",
|
||||||
|
|
Loading…
Reference in a new issue