├── .gitignore ├── components ├── kickoff-react │ ├── Actions.js │ ├── Button.js │ ├── Checkbox.js │ ├── Column.js │ ├── Control.js │ ├── Fieldset.js │ ├── Form.js │ ├── Grid.js │ ├── Input.js │ ├── Label.js │ ├── Legend.js │ ├── RadioButton.js │ └── Textarea.js └── pre.js ├── layouts └── page.js ├── now.json ├── package.json ├── pages └── index.js ├── readme.md └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | *.sublime-* 4 | .vercel -------------------------------------------------------------------------------- /components/kickoff-react/Actions.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Actions = ({ children }) => ( 4 |
{children}
5 | ) 6 | -------------------------------------------------------------------------------- /components/kickoff-react/Button.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Button = ({ primary, type, value }) => { 4 | let className = 'btn' 5 | if (primary) { 6 | className += ' btn--primary' 7 | } 8 | return 9 | } 10 | -------------------------------------------------------------------------------- /components/kickoff-react/Checkbox.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | 3 | export class Checkbox extends Component { 4 | constructor(props) { 5 | super(props) 6 | this.state = { 7 | checked: props.checked || false, 8 | } 9 | 10 | this.onChange = this.onChange.bind(this) 11 | } 12 | 13 | onChange() { 14 | const checked = !this.state.checked 15 | this.setState({ checked }) 16 | } 17 | 18 | render() { 19 | let className = 'control-indicator control-indicator--checkbox' 20 | if (this.props.tickbox) { 21 | className = 'control-indicator control-indicator--tickbox' 22 | } 23 | return ( 24 | 35 | ) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /components/kickoff-react/Column.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Column = ({ centered, children, mid, span }) => { 4 | let className = 'g-col' 5 | if (span) { 6 | className += ' g-span' + span 7 | } 8 | if (mid) { 9 | className += ' g-span' + mid + '--mid' 10 | } 11 | if (centered) { 12 | className += ' g-col--centered' 13 | } 14 | return
{children}
15 | } 16 | -------------------------------------------------------------------------------- /components/kickoff-react/Control.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Control = ({ children, error, success, warning }) => { 4 | let className = 'form-controlGroup' 5 | if (success) { 6 | className += ' has-success' 7 | } else if (error) { 8 | className += ' has-error' 9 | } else if (warning) { 10 | className += ' has-warning' 11 | } 12 | return
{children}
13 | } 14 | -------------------------------------------------------------------------------- /components/kickoff-react/Fieldset.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Fieldset = ({ children }) => ( 4 |
{children}
5 | ) 6 | -------------------------------------------------------------------------------- /components/kickoff-react/Form.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Form = ({ children, horizontal }) => { 4 | let className = 'form' 5 | if (horizontal) { 6 | className += ' form--horizontal' 7 | } 8 | return
{children}
9 | } 10 | -------------------------------------------------------------------------------- /components/kickoff-react/Grid.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Grid = ({ children, gutter, scaled, stack }) => { 4 | let className = 'g' 5 | if (gutter && scaled) { 6 | className += ' g--gutter--scaled' 7 | } else if (gutter) { 8 | className += ' g--gutter' 9 | } 10 | if (typeof stack === 'string') { 11 | className += ' g--stack--' + stack 12 | } else if (stack) { 13 | className += ' g--stack' 14 | } 15 | return
{children}
16 | } 17 | -------------------------------------------------------------------------------- /components/kickoff-react/Input.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Input = (props) => ( 4 |
5 | 6 |
7 | ) 8 | -------------------------------------------------------------------------------- /components/kickoff-react/Label.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Label = ({ children }) => ( 4 |
{children}
5 | ) 6 | -------------------------------------------------------------------------------- /components/kickoff-react/Legend.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Legend = ({ children }) => ( 4 |
{children}
5 | ) 6 | -------------------------------------------------------------------------------- /components/kickoff-react/RadioButton.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react' 2 | 3 | export class RadioButton extends Component { 4 | render() { 5 | return ( 6 | 11 | ) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /components/kickoff-react/Textarea.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | export const Textarea = (props) => ( 4 |
5 |