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
16 changed files
with
160 additions
and
134 deletions.
There are no files selected for viewing
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,7 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 4, | ||
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 120 | ||
} |
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
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './style.css'; | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import './style.css' | ||
|
||
export default class DualRing extends Component { | ||
render() { | ||
return ( | ||
<div className="lds-dual-ring"> | ||
<div className="lds-dual-ring-after" style={{borderColor: `${this.props.color} transparent`}}></div> | ||
<div className="lds-dual-ring-after" style={{ borderColor: `${this.props.color} transparent` }}></div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
DualRing.propTypes = { | ||
color: PropTypes.string | ||
color: PropTypes.string, | ||
} | ||
|
||
DualRing.defaultProps = { | ||
color: '#fff' | ||
} | ||
color: '#fff', | ||
} |
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 |
---|---|---|
@@ -1,30 +1,28 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './style.css'; | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import './style.css' | ||
|
||
function createArray(length) { | ||
let array = []; | ||
let array = [] | ||
for (let num = 0; num < length; num++) { | ||
array.push(null); | ||
array.push(null) | ||
} | ||
return array; | ||
return array | ||
} | ||
|
||
export default class Facebook extends Component { | ||
static propTypes = { | ||
/** hex color */ | ||
color: PropTypes.string | ||
color: PropTypes.string, | ||
} | ||
|
||
static defaultProps = { color: '#fff' } | ||
|
||
getCircles = () => { | ||
return createArray(3).map(() => | ||
<div style={{ background: `${this.props.color}` }}></div> | ||
); | ||
return createArray(3).map(() => <div style={{ background: `${this.props.color}` }}></div>) | ||
} | ||
|
||
render() { | ||
return <div className="lds-facebook">{this.getCircles()}</div> | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,17 +1,24 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './style.css'; | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import './style.css' | ||
|
||
export default class Heart extends Component { | ||
render() { | ||
return <div className="lds-heart"><div style={{background: this.props.color}}><div className="div-before" style={{background: this.props.color}}></div><div className="div-after" style={{background: this.props.color}}></div></div></div> | ||
return ( | ||
<div className="lds-heart"> | ||
<div style={{ background: this.props.color }}> | ||
<div className="div-before" style={{ background: this.props.color }}></div> | ||
<div className="div-after" style={{ background: this.props.color }}></div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
Heart.propTypes = { | ||
color: PropTypes.string | ||
color: PropTypes.string, | ||
} | ||
|
||
Heart.defaultProps = { | ||
color: '#fff' | ||
} | ||
color: '#fff', | ||
} |
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 |
---|---|---|
@@ -1,17 +1,21 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import './style.css'; | ||
import React, { Component } from 'react' | ||
import PropTypes from 'prop-types' | ||
import './style.css' | ||
|
||
export default class Hourglass extends Component { | ||
render() { | ||
return <div className="lds-hourglass"><div className="lds-hourglass-after" style={{background: this.props.color}}></div></div> | ||
return ( | ||
<div className="lds-hourglass"> | ||
<div className="lds-hourglass-after" style={{ background: this.props.color }}></div> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
Hourglass.propTypes = { | ||
color: PropTypes.string | ||
color: PropTypes.string, | ||
} | ||
|
||
Hourglass.defaultProps = { | ||
color: '#fff' | ||
} | ||
color: '#fff', | ||
} |
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
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
Oops, something went wrong.