Move highlighting around

This commit is contained in:
Berkeley Martinez
2015-10-20 15:30:25 -07:00
parent ac8a1a3f6f
commit 24927748e0
2 changed files with 36 additions and 15 deletions

View File

@ -10,9 +10,6 @@ a.jobs-list-highlight:hover {
cursor: pointer; cursor: pointer;
cursor: hand; cursor: hand;
} }
.jobs-checkbox {
text-align: left
}
.jobs-checkbox-spacer input[type="checkbox"] { .jobs-checkbox-spacer input[type="checkbox"] {
margin-left: -23px margin-left: -23px

View File

@ -16,7 +16,8 @@ import {
Col, Col,
Input, Input,
Row, Row,
Panel Panel,
Well
} from 'react-bootstrap'; } from 'react-bootstrap';
import { import {
@ -58,7 +59,7 @@ This job can be performed remotely.
`; `;
const checkboxClass = dedent` const checkboxClass = dedent`
jobs-checkbox text-left
jobs-checkbox-spacer jobs-checkbox-spacer
col-sm-offset-2 col-sm-offset-2
col-sm-6 col-md-offset-3 col-sm-6 col-md-offset-3
@ -353,19 +354,42 @@ export default contain({
wrapperClassName={ inputClass } /> wrapperClassName={ inputClass } />
<div className='spacer' /> <div className='spacer' />
<Input <Well>
checked={ isHighlighted.value } <div>
label={ hightlightCopy } <h2>Make it stand out</h2>
onChange={ </div>
({ target: { checked } }) => handleForm({ <div className='spacer' />
isHighlighted: !!checked <Row>
}) <Col
} md={ 6 }
type='checkbox' mdOffset={ 3 }>
wrapperClassName={ checkboxClass } /> Highlight this ad to give it extra attention.
<br />
Featured listings receive more clicks and more applications.
</Col>
</Row>
<div className='spacer' />
<Row>
<Input
bsSize='large'
bsStyle='success'
checked={ isHighlighted.value }
label={ hightlightCopy }
onChange={
({ target: { checked } }) => handleForm({
isHighlighted: !!checked
})
}
type='checkbox'
wrapperClassName={
checkboxClass.replace('text-left', '')
} />
</Row>
</Well>
<div className='spacer' /> <div className='spacer' />
<Row> <Row>
<Col <Col
className='text-left'
lg={ 6 } lg={ 6 }
lgOffset={ 3 }> lgOffset={ 3 }>
<Button <Button