-
Notifications
You must be signed in to change notification settings - Fork 0
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
Yannick
committed
Jan 17, 2018
1 parent
3023d81
commit cc79c07
Showing
12 changed files
with
153 additions
and
75 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component } from 'preact'; | ||
import { PropTypes } from 'preact-compat'; | ||
import style from './style'; | ||
|
||
export default class ProgressBar extends Component { | ||
render() { | ||
return ( | ||
<div class={style.progress}> | ||
<span class={style.progressBar} style={`width: ${this.props.progress}%;`} /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
ProgressBar.propTypes = { | ||
progress: PropTypes.number.isRequired, | ||
}; |
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,16 @@ | ||
.progress { | ||
background: var(--main-light-color); | ||
display: block; | ||
height: 2px; | ||
margin: -11px 0 11px; | ||
padding: 0; | ||
position: relative; | ||
width: 100%; | ||
} | ||
|
||
.progressBar { | ||
background: rgba(10.6%, 81.2%, 54.1%, .596); | ||
display: inline-block; | ||
height: 100%; | ||
min-width: 4%; | ||
} |
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,22 @@ | ||
import { Component } from 'preact'; | ||
import { PropTypes } from 'preact-compat'; | ||
import style from './style'; | ||
|
||
export default class RemoveButton extends Component { | ||
render() { | ||
return ( | ||
<input | ||
type="button" | ||
value={this.props.value} | ||
class={style.remove} | ||
onClick={e => this.props.removeField(e, this.props.i)} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
RemoveButton.propTypes = { | ||
removeField: PropTypes.func.isRequired, | ||
i: PropTypes.number.isRequired, | ||
value: PropTypes.string.isRequired, | ||
}; |
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,10 @@ | ||
.remove { | ||
color: var(--main-color); | ||
float: right; | ||
font-size: 16px; | ||
font-weight: 700; | ||
margin-top: 10px; | ||
padding: 0; | ||
text-align: right; | ||
text-transform: uppercase; | ||
} |
Empty file.
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