fix(merge): Fix merge conflicts
This commit is contained in:
@ -686,6 +686,26 @@ code {
|
|||||||
z-index: 20000 !important;
|
z-index: 20000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.email-settings {
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-btn-group {
|
||||||
|
float: right;
|
||||||
|
.btn[disabled] {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
float: none;
|
||||||
|
.btn-toggle {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//uncomment this to see the dimensions of all elements outlined in red
|
//uncomment this to see the dimensions of all elements outlined in red
|
||||||
//* {
|
//* {
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
// they are painted using css so the
|
// they are painted using css so the
|
||||||
// nav is on top again
|
// nav is on top again
|
||||||
.grid(@direction: column-reverse);
|
.grid(@direction: column-reverse);
|
||||||
width: 100vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{ns}-content {
|
.@{ns}-content {
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import { Link } from 'react-router';
|
import { Link } from 'react-router';
|
||||||
import { Button, Row, Col } from 'react-bootstrap';
|
import {
|
||||||
|
ToggleButtonGroup,
|
||||||
|
ToggleButton,
|
||||||
|
Button,
|
||||||
|
Row,
|
||||||
|
Col
|
||||||
|
} from 'react-bootstrap';
|
||||||
import FA from 'react-fontawesome';
|
import FA from 'react-fontawesome';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
|
|
||||||
@ -57,7 +63,7 @@ export default function EmailSettings({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className='email-settings'>
|
||||||
<Row>
|
<Row>
|
||||||
<p className='large-p text-center'>
|
<p className='large-p text-center'>
|
||||||
<em>{ email }</em>
|
<em>{ email }</em>
|
||||||
@ -67,16 +73,21 @@ export default function EmailSettings({
|
|||||||
<UpdateEmailButton />
|
<UpdateEmailButton />
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={ 9 }>
|
<Col sm={ 8 }>
|
||||||
<p className='large-p'>
|
<p className='large-p'>
|
||||||
Send me announcement emails
|
Send me announcement emails
|
||||||
<br />
|
<br />
|
||||||
(we'll send you these every Thursday)
|
(we'll send you these every Thursday)
|
||||||
</p>
|
</p>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={ 3 }>
|
<Col sm={ 4 }>
|
||||||
<Button
|
<ToggleButtonGroup
|
||||||
block={ true }
|
className='toggle-btn-group'
|
||||||
|
name='monthly-email'
|
||||||
|
onChange={ toggleMonthlyEmail }
|
||||||
|
type='radio'
|
||||||
|
>
|
||||||
|
<ToggleButton
|
||||||
bsSize='lg'
|
bsSize='lg'
|
||||||
bsStyle='primary'
|
bsStyle='primary'
|
||||||
className={
|
className={
|
||||||
@ -86,23 +97,47 @@ export default function EmailSettings({
|
|||||||
'btn-toggle'
|
'btn-toggle'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onClick={ toggleMonthlyEmail }
|
disabled={ sendMonthlyEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 1 }
|
||||||
>
|
>
|
||||||
{ sendMonthlyEmail ? 'On' : 'Off' }
|
On
|
||||||
</Button>
|
</ToggleButton>
|
||||||
|
<ToggleButton
|
||||||
|
bsSize='lg'
|
||||||
|
bsStyle='primary'
|
||||||
|
className={
|
||||||
|
classnames(
|
||||||
|
'positive-20',
|
||||||
|
{ active: !sendMonthlyEmail },
|
||||||
|
'btn-toggle'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
disabled={ !sendMonthlyEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 2 }
|
||||||
|
>
|
||||||
|
Off
|
||||||
|
</ToggleButton>
|
||||||
|
</ToggleButtonGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={ 9 }>
|
<Col sm={ 8 }>
|
||||||
<p className='large-p'>
|
<p className='large-p'>
|
||||||
Send me notification emails
|
Send me notification emails
|
||||||
<br />
|
<br />
|
||||||
(these will pertain to your account)
|
(these will pertain to your account)
|
||||||
</p>
|
</p>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={ 3 }>
|
<Col sm={ 4 }>
|
||||||
<Button
|
<ToggleButtonGroup
|
||||||
block={ true }
|
className='toggle-btn-group'
|
||||||
|
name='notification-email'
|
||||||
|
onChange={ toggleNotificationEmail }
|
||||||
|
type='radio'
|
||||||
|
>
|
||||||
|
<ToggleButton
|
||||||
bsSize='lg'
|
bsSize='lg'
|
||||||
bsStyle='primary'
|
bsStyle='primary'
|
||||||
className={
|
className={
|
||||||
@ -112,23 +147,47 @@ export default function EmailSettings({
|
|||||||
'btn-toggle'
|
'btn-toggle'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onClick={ toggleNotificationEmail }
|
disabled={ sendNotificationEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 1 }
|
||||||
>
|
>
|
||||||
{ sendNotificationEmail ? 'On' : 'Off' }
|
On
|
||||||
</Button>
|
</ToggleButton>
|
||||||
|
<ToggleButton
|
||||||
|
bsSize='lg'
|
||||||
|
bsStyle='primary'
|
||||||
|
className={
|
||||||
|
classnames(
|
||||||
|
'positive-20',
|
||||||
|
{ active: !sendNotificationEmail },
|
||||||
|
'btn-toggle'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
disabled={ !sendNotificationEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 2 }
|
||||||
|
>
|
||||||
|
Off
|
||||||
|
</ToggleButton>
|
||||||
|
</ToggleButtonGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={ 9 }>
|
<Col sm={ 8 }>
|
||||||
<p className='large-p'>
|
<p className='large-p'>
|
||||||
Send me Quincy's weekly email
|
Send me Quincy's weekly email
|
||||||
<br />
|
<br />
|
||||||
(with new articles every Tuesday)
|
(with new articles every Tuesday)
|
||||||
</p>
|
</p>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={ 3 }>
|
<Col sm={ 4 }>
|
||||||
<Button
|
<ToggleButtonGroup
|
||||||
block={ true }
|
className='toggle-btn-group'
|
||||||
|
name='quincy-email'
|
||||||
|
onChange={ toggleQuincyEmail }
|
||||||
|
type='radio'
|
||||||
|
>
|
||||||
|
<ToggleButton
|
||||||
bsSize='lg'
|
bsSize='lg'
|
||||||
bsStyle='primary'
|
bsStyle='primary'
|
||||||
className={
|
className={
|
||||||
@ -138,10 +197,29 @@ export default function EmailSettings({
|
|||||||
'btn-toggle'
|
'btn-toggle'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onClick={ toggleQuincyEmail }
|
disabled={ sendQuincyEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 1 }
|
||||||
>
|
>
|
||||||
{ sendQuincyEmail ? 'On' : 'Off' }
|
On
|
||||||
</Button>
|
</ToggleButton>
|
||||||
|
<ToggleButton
|
||||||
|
bsSize='lg'
|
||||||
|
bsStyle='primary'
|
||||||
|
className={
|
||||||
|
classnames(
|
||||||
|
'positive-20',
|
||||||
|
{ active: !sendQuincyEmail },
|
||||||
|
'btn-toggle'
|
||||||
|
)
|
||||||
|
}
|
||||||
|
disabled={ !sendQuincyEmail }
|
||||||
|
type='radio'
|
||||||
|
value={ 2 }
|
||||||
|
>
|
||||||
|
Off
|
||||||
|
</ToggleButton>
|
||||||
|
</ToggleButtonGroup>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
|
@ -138,6 +138,7 @@ export class Settings extends React.Component {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<ChildContainer>
|
<ChildContainer>
|
||||||
|
<div className='container'>
|
||||||
<Row>
|
<Row>
|
||||||
<Col xs={ 12 }>
|
<Col xs={ 12 }>
|
||||||
<Button
|
<Button
|
||||||
@ -164,9 +165,9 @@ export class Settings extends React.Component {
|
|||||||
bsSize='lg'
|
bsSize='lg'
|
||||||
bsStyle='primary'
|
bsStyle='primary'
|
||||||
className='btn-link-social'
|
className='btn-link-social'
|
||||||
href={ 'mail:team@freecodecamp.org' }
|
href={ 'mail:team@freecodecamp.com' }
|
||||||
>
|
>
|
||||||
Email us at team@freecodecamp.org
|
Email us at team@freecodecamp.com
|
||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
@ -305,6 +306,7 @@ export class Settings extends React.Component {
|
|||||||
</Button>
|
</Button>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
</div>
|
||||||
</ChildContainer>
|
</ChildContainer>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user