Add styling to GoToPaypal page

This commit is contained in:
Berkeley Martinez
2015-10-15 23:06:16 -07:00
parent defd0561f1
commit 78ba6edf34

View File

@ -1,20 +1,21 @@
import React, { PropTypes } from 'react'; import React, { PropTypes } from 'react';
import { Col, Panel, Row } from 'react-bootstrap'; import { Button, Col, Panel, Row } from 'react-bootstrap';
import { contain } from 'thundercats-react'; import { contain } from 'thundercats-react';
export default contain( export default contain(
{ {
store: 'JobsStore', store: 'JobsStore',
actions: 'JobActions', actions: 'JobActions',
map({ job: { id } = {} }) { map({ job: { id, isHighlighted } = {} }) {
return { id }; return { id, isHighlighted };
} }
}, },
React.createClass({ React.createClass({
displayName: 'GoToPayPal', displayName: 'GoToPayPal',
propTypes: { propTypes: {
id: PropTypes.string id: PropTypes.string,
isHighlighted: PropTypes.bool
}, },
render() { render() {
@ -23,44 +24,65 @@ export default contain(
<div> <div>
<Row> <Row>
<Col <Col
md={ 6 } md={ 10 }
mdOffset={ 3 } mdOffset={ 1 }
sm={ 8 } sm={ 8 }
smOffset={ 2 } smOffset={ 2 }
xs={ 12 }> xs={ 12 }>
<Panel> <Panel>
<form <Row>
action='https://www.sandbox.paypal.com/cgi-bin/webscr' <Col
method='post' md={ 6 }
target='_top'> mdOffset={ 3 }>
<input <h2 className='text-center'>
name='cmd' One more step
type='hidden' </h2>
value='_s-xclick' /> <div className='spacer' />
<input You're Awesome! just one more step to go.
name='hosted_button_id' Clicking on the link below will redirect to paypal.
type='hidden' </Col>
value='ZVU498PLMPHKU' /> </Row>
<input <div className='spacer' />
alt='PayPal - The safer, easier way to pay online!' <Row>
border='0' <Col
name='submit' md={ 6 }
src={ mdOffset={ 3 }>
'https://www.sandbox.paypal.com/' + <form
'en_US/i/btn/btn_buynowCC_LG.gif' action='https://www.sandbox.paypal.com/cgi-bin/webscr'
} method='post'
type='image' /> target='_top'>
<input <input
name='custom' name='cmd'
type='hidden' type='hidden'
value={ '' + id } /> value='_s-xclick' />
<img <input
alt='' name='hosted_button_id'
border='0' type='hidden'
height='1' value='ZVU498PLMPHKU' />
src='https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif' <input
width='1' /> name='custom'
</form> type='hidden'
value={ '' + id } />
<Button
block={ true }
bsSize='size'
className='signup-btn'
type='submit'>
<i className='fa fa-paypal' />
Continue to PayPal
</Button>
<div className='spacer' />
<img
alt='An array of credit cards'
border='0'
src='http://i.imgur.com/Q2SdSZG.png'
style={{
width: '100%'
}} />
</form>
</Col>
</Row>
<div className='spacer' />
</Panel> </Panel>
</Col> </Col>
</Row> </Row>