feat: style email-sign-up page
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
3dbe69707f
commit
f91cf1ae2d
@ -493,3 +493,27 @@ blockquote .small {
|
|||||||
#search::placeholder {
|
#search::placeholder {
|
||||||
color: var(--secondary-color);
|
color: var(--secondary-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* checkbox */
|
||||||
|
|
||||||
|
.checkbox-inline input[type='checkbox'] {
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkbox-inline {
|
||||||
|
padding-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type='checkbox'] {
|
||||||
|
height: 21px;
|
||||||
|
width: 21px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* general page styling */
|
||||||
|
.default-page-wrapper {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
@ -2,18 +2,21 @@ import React, { Component, Fragment } from 'react';
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
import SectionHeader from '../components/settings/SectionHeader';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Row,
|
Row,
|
||||||
Col,
|
Col,
|
||||||
Button,
|
Button,
|
||||||
FormGroup,
|
FormGroup,
|
||||||
ControlLabel,
|
ControlLabel,
|
||||||
|
Grid,
|
||||||
Checkbox
|
Checkbox
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
import { createSelector } from 'reselect';
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
import { ButtonSpacer, Spacer } from '../components/helpers';
|
import { ButtonSpacer } from '../components/helpers';
|
||||||
import { acceptTerms, userSelector } from '../redux';
|
import { acceptTerms, userSelector } from '../redux';
|
||||||
import createRedirect from '../components/createRedirect';
|
import createRedirect from '../components/createRedirect';
|
||||||
|
|
||||||
@ -80,43 +83,40 @@ class AcceptPrivacyTerms extends Component {
|
|||||||
<Helmet>
|
<Helmet>
|
||||||
<title>Email Sign Up | freeCodeCamp.org</title>
|
<title>Email Sign Up | freeCodeCamp.org</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<Spacer size={2} />
|
<Grid className='default-page-wrapper'>
|
||||||
<Row className='text-center'>
|
<SectionHeader>Email Sign Up</SectionHeader>
|
||||||
<Col sm={8} smOffset={2} xs={12}>
|
<Row>
|
||||||
<h1>Email Sign Up </h1>
|
<Col sm={8} smOffset={2} xs={12}>
|
||||||
</Col>
|
<form onSubmit={this.handleSubmit}>
|
||||||
</Row>
|
<FormGroup>
|
||||||
<Spacer size={2} />
|
<ControlLabel htmlFor='quincy-email'>
|
||||||
<Row>
|
Quincy's Emails
|
||||||
<Col sm={8} smOffset={2} xs={12}>
|
</ControlLabel>
|
||||||
<form onSubmit={this.handleSubmit}>
|
<ButtonSpacer />
|
||||||
<FormGroup>
|
<Checkbox
|
||||||
<ControlLabel htmlFor='quincy-email'>
|
checked={quincyEmail}
|
||||||
Quincy's Emails
|
id='quincy-email'
|
||||||
</ControlLabel>
|
inline={true}
|
||||||
<Spacer />
|
onChange={this.createHandleChange('quincyEmail')}
|
||||||
<Checkbox
|
>
|
||||||
checked={quincyEmail}
|
I want weekly emails from Quincy, freeCodeCamp.org's
|
||||||
id='quincy-email'
|
founder.
|
||||||
inline={true}
|
</Checkbox>
|
||||||
onChange={this.createHandleChange('quincyEmail')}
|
</FormGroup>
|
||||||
|
<ButtonSpacer />
|
||||||
|
<Button
|
||||||
|
block={true}
|
||||||
|
bsSize='lg'
|
||||||
|
bsStyle='primary'
|
||||||
|
className='big-cta-btn'
|
||||||
|
type='submit'
|
||||||
>
|
>
|
||||||
I want weekly emails from Quincy, freeCodeCamp.org's founder.
|
Continue to freeCodeCamp.org
|
||||||
</Checkbox>
|
</Button>
|
||||||
</FormGroup>
|
</form>
|
||||||
<ButtonSpacer />
|
</Col>
|
||||||
<Button
|
</Row>
|
||||||
block={true}
|
</Grid>
|
||||||
bsStyle='primary'
|
|
||||||
className='big-cta-btn'
|
|
||||||
type='submit'
|
|
||||||
>
|
|
||||||
Continue to freeCodeCamp.org
|
|
||||||
</Button>
|
|
||||||
<Spacer size={2} />
|
|
||||||
</form>
|
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
</Fragment>
|
</Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user