-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
1,422 additions
and
544 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import React, {Component} from 'react'; | ||
import { | ||
Button, | ||
ButtonToolbar, | ||
PageHeader, | ||
Grid, | ||
Row, | ||
Col | ||
} from 'react-bootstrap'; | ||
|
||
class Buttons extends Component { | ||
|
||
render() { | ||
|
||
return (<div> | ||
<div className="_gradient-purple section-padding"> | ||
<Grid> | ||
<PageHeader className="white"> | ||
Buttons <small>Inverse</small> | ||
</PageHeader> | ||
<Row> | ||
<Col sm={12}> | ||
<ButtonToolbar> | ||
<Button>Default</Button> | ||
<Button className="btn-outline">Default Outline</Button> | ||
<Button bsStyle="primary">Primary</Button> | ||
<Button bsStyle="info">Info</Button> | ||
<Button bsStyle="warning">Warning</Button> | ||
<Button bsStyle="danger">Danger</Button> | ||
</ButtonToolbar> | ||
</Col> | ||
</Row> | ||
</Grid> | ||
</div> | ||
<Grid> | ||
<PageHeader> | ||
Buttons | ||
</PageHeader> | ||
<Row> | ||
<Col sm={12}> | ||
<ButtonToolbar> | ||
<Button>Default</Button> | ||
<Button className="btn-outline-success">Default Outline</Button> | ||
<Button className="btn-outline-primary">Primary Outline</Button> | ||
<Button bsStyle="success">Success</Button> | ||
<Button bsStyle="warning">Warning</Button> | ||
<Button bsStyle="danger">Danger</Button> | ||
<Button bsStyle="link">Link</Button> | ||
</ButtonToolbar> | ||
</Col> | ||
</Row> | ||
</Grid> | ||
<div className="section-padding"></div> | ||
</div>) | ||
} | ||
} | ||
|
||
export default Buttons; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import React, {Component} from 'react'; | ||
import { | ||
Panel, | ||
PageHeader, | ||
Col, | ||
Grid, | ||
Row, | ||
FormGroup, | ||
Checkbox, | ||
FormControl, | ||
Radio, | ||
ControlLabel, | ||
Button, | ||
HelpBlock | ||
} from 'react-bootstrap'; | ||
|
||
class Forms extends Component { | ||
|
||
render() { | ||
|
||
function FieldGroup({ id, label, help, ...props }) { | ||
return ( | ||
<FormGroup controlId={id}> | ||
<ControlLabel>{label}</ControlLabel> | ||
<FormControl {...props} /> | ||
{help && <HelpBlock>{help}</HelpBlock>} | ||
</FormGroup> | ||
); | ||
} | ||
|
||
const formInstance = ( | ||
<form> | ||
<FieldGroup | ||
id="formControlsText" | ||
type="text" | ||
label="Text" | ||
placeholder="Enter text" | ||
/> | ||
<FieldGroup | ||
id="formControlsEmail" | ||
type="email" | ||
label="Email address" | ||
placeholder="Enter email" | ||
/> | ||
<FieldGroup id="formControlsPassword" label="Password" type="password" /> | ||
<FieldGroup | ||
id="formControlsFile" | ||
type="file" | ||
label="File" | ||
help="Example block-level help text here." | ||
/> | ||
|
||
<Checkbox checked readOnly> | ||
Checkbox | ||
</Checkbox> | ||
<Radio checked readOnly> | ||
Radio | ||
</Radio> | ||
|
||
<FormGroup> | ||
<Checkbox inline>1</Checkbox> <Checkbox inline>2</Checkbox>{' '} | ||
<Checkbox inline>3</Checkbox> | ||
</FormGroup> | ||
<FormGroup> | ||
<Radio name="radioGroup" inline> | ||
1 | ||
</Radio>{' '} | ||
<Radio name="radioGroup" inline> | ||
2 | ||
</Radio>{' '} | ||
<Radio name="radioGroup" inline> | ||
3 | ||
</Radio> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="formControlsSelect"> | ||
<ControlLabel>Select</ControlLabel> | ||
<FormControl componentClass="select" placeholder="select"> | ||
<option value="select">select</option> | ||
<option value="other">...</option> | ||
</FormControl> | ||
</FormGroup> | ||
<FormGroup controlId="formControlsSelectMultiple"> | ||
<ControlLabel>Multiple select</ControlLabel> | ||
<FormControl componentClass="select" multiple> | ||
<option value="select">select (multiple)</option> | ||
<option value="other">...</option> | ||
</FormControl> | ||
</FormGroup> | ||
|
||
<FormGroup controlId="formControlsTextarea"> | ||
<ControlLabel>Textarea</ControlLabel> | ||
<FormControl componentClass="textarea" placeholder="textarea" /> | ||
</FormGroup> | ||
|
||
<Button type="submit">Submit</Button> | ||
</form> | ||
); | ||
|
||
return (<div> | ||
<div className="_gradient-purple section-padding"> | ||
<Grid> | ||
<PageHeader className="white"> | ||
Forms <small>Inverse</small> | ||
</PageHeader> | ||
<Row className="white"> | ||
<Col sm={12}> | ||
{formInstance} | ||
</Col> | ||
</Row> | ||
</Grid> | ||
</div> | ||
<Grid> | ||
<PageHeader> | ||
Forms | ||
</PageHeader> | ||
<Row> | ||
<Col sm={12}> | ||
{formInstance} | ||
</Col> | ||
</Row> | ||
</Grid> | ||
<div className="section-padding"></div> | ||
</div>); | ||
} | ||
} | ||
|
||
export default Forms; |
Oops, something went wrong.