Created
January 27, 2016 01:02
-
-
Save basarat/dd5e440ca3eaab72d3b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Lays out a job with a job form in a scrollable region | |
| * with the footer pinned to the bottom | |
| */ | |
| @ui.Radium | |
| export class LayoutJob extends React.Component<{ | |
| content:JSX.Element, | |
| footer:JSX.Element, | |
| },{}>{ | |
| private styles = { | |
| content: { | |
| root: csx.extend( | |
| csx.flex, | |
| csx.scroll | |
| ) | |
| }, | |
| footer: { | |
| root: csx.extend( | |
| csx.flexRoot, | |
| csx.centerCenter, | |
| BoxModel.padding(10), | |
| { | |
| background: '#FFF', | |
| } | |
| ), | |
| content: csx.extend( | |
| csx.flex, | |
| { | |
| maxWidth: '1170px' | |
| } | |
| ) | |
| } | |
| } | |
| render(){ | |
| return ( | |
| <div style={[csx.flex,csx.vertical]}> | |
| <div style={this.styles.content.root}>{this.props.content}</div> | |
| <div style={this.styles.footer.root}> | |
| <div style={this.styles.footer.content}> | |
| {this.props.footer} | |
| </div> | |
| </div> | |
| </div> | |
| ); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment