Skip to content

Commit

Permalink
Merge pull request #33 from FAC7/styleHC
Browse files Browse the repository at this point in the history
add top padding for collapse box (host/candidate) #21 #23 #6
  • Loading branch information
franzmoro committed Apr 17, 2016
2 parents fed3588 + 99e01e4 commit c49fdeb
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 56 deletions.
2 changes: 1 addition & 1 deletion frontend/src/js/components/CollapsibleItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {Well, Collapse} from 'react-bootstrap'

const liStyle = {
listStyleType: 'none',
color: 'dark-blue',
color: 'white',
fontSize: '1.7em',
textDecoration: 'none',
cursor: 'pointer'
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/js/components/List/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default (props) => {
}

const ulStyle = {
backgroundColor: '#03A9F4',
padding: '2em',
borderRadius: '10px',
color: 'white',
Expand All @@ -26,7 +25,7 @@ const ulStyle = {

const liStyle = {
listStyleType: 'none',
color: 'white',
color: 'black',
fontSize: '1.7em',
textDecoration: 'none',
cursor: 'pointer'
Expand Down
46 changes: 24 additions & 22 deletions frontend/src/js/views/Candidate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {Grid, Row, Col} from 'react-bootstrap'
const loggedInCandidateID = 'candidateUUID1'

const ulStyle = {
backgroundColor: '#03A9F4',
backgroundColor: '#0075B2',
padding: '2em',
borderRadius: '10px'
}
Expand All @@ -31,27 +31,29 @@ export default class CandidateView extends Component {
return (
<Grid>
<Row>
<Col md={12}>
<ul style={ulStyle}>
<CollapsibleItem
text={'Open Roles'}
roles={this.state.roles}
changeState={this.changeState}
filterFunction={(role) => !this.checkIfAppliedTo(role)}
/>
<CollapsibleItem
text={'Applied To'}
roles={this.state.roles}
changeState={this.changeState}
filterFunction={(role) => this.checkIfAppliedTo(role)}
/>
<RoleModal
changeState={this.changeState}
showModal={this.state.showModal}
currentRole={this.state.currentRole}
/>
</ul>
</Col>
<div className='collapseBox'>
<Col md={12}>
<ul style={ulStyle}>
<CollapsibleItem
text={'Open Roles'}
roles={this.state.roles}
changeState={this.changeState}
filterFunction={(role) => !this.checkIfAppliedTo(role)}
/>
<CollapsibleItem
text={'Applied To'}
roles={this.state.roles}
changeState={this.changeState}
filterFunction={(role) => this.checkIfAppliedTo(role)}
/>
<RoleModal
changeState={this.changeState}
showModal={this.state.showModal}
currentRole={this.state.currentRole}
/>
</ul>
</Col>
</div>
</Row>
</Grid>
)
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/js/views/Home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ import React from 'react'
import {Link} from 'react-router'
import { Jumbotron, Button } from 'react-bootstrap'

const width = {
width: '400px'
}

export default (props) => {
return (
<Jumbotron className='home'>
<div>
<h1>Welcome to Worthwhile portal</h1>
<div className='CLogin'>
<Link to={'/candidate'}><Button bsStyle='primary' bsSize='large'>Candidate login</Button></Link>
<Link to={'/candidate'}><Button style={width} bsStyle='primary' bsSize='large'>Candidate login</Button></Link>
</div>
<div className='hLgin'>
<Link to={'/host'}><Button bsStyle='primary' bsSize='large'>Host login</Button></Link>
<div className='HLgin'>
<Link to={'/host'}><Button style={width} bsStyle='primary' bsSize='large'>Host login</Button></Link>
</div>
</div>
</Jumbotron>
Expand Down
58 changes: 30 additions & 28 deletions frontend/src/js/views/Host/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import CandidateProfileModal from '../../components/CandidateProfile/CandidatePr
import {Grid, Row, Col} from 'react-bootstrap'

const ulStyle = {
backgroundColor: '#03A9F4',
backgroundColor: '#0075B2',
padding: '2em',
borderRadius: '10px'
}
Expand All @@ -23,33 +23,35 @@ export default class HostView extends Component {
return (
<Grid>
<Row>
<Col md={12}>
<ul style={ulStyle}>
<CollapsibleItem
text={'Applied'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CollapsibleItem
text={'Interviewed'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CollapsibleItem
text={'Accepted'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CandidateProfileModal
changeState={this.changeState}
showModal={this.state.showModal}
currCandidate={this.state.currCandidate}
/>
</ul>
</Col>
<div className='collapseBox'>
<Col md={12}>
<ul style={ulStyle}>
<CollapsibleItem
text={'Applied'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CollapsibleItem
text={'Interviewed'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CollapsibleItem
text={'Accepted'}
candidates={this.state.candidates}
changeState={this.changeState}
filterFunction={(candidate) => candidate}
/>
<CandidateProfileModal
changeState={this.changeState}
showModal={this.state.showModal}
currCandidate={this.state.currCandidate}
/>
</ul>
</Col>
</div>
</Row>
</Grid>
)
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ body {
margin-bottom: $footer-height;
}

.collapseBox {
padding-top: 48px;
}

.CLogin {
padding-top: 20px;
padding-bottom: 14px;
}

.HLgin {
padding-top: 14px;
padding-bottom: 14px;
}

0 comments on commit c49fdeb

Please sign in to comment.