-
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
1 parent
fe9e7ff
commit aab1300
Showing
8 changed files
with
60 additions
and
0 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
Empty file.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import classes from './TimeControl.module.css' | ||
|
||
const timeControl = (props) => { | ||
return ( | ||
<div className={classes.TimeControl}> | ||
<h1>{props.type + " Length"}</h1> | ||
<p> | ||
<span><i className={classes.ArrowUp}/></span> | ||
<span className={classes.Duration}>{props.duration}</span> | ||
<span><i className={classes.ArrowDown}/></span> | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default timeControl; |
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,29 @@ | ||
.TimeControl { | ||
} | ||
|
||
.TimeControl h1 { | ||
text-transform: capitalize; | ||
} | ||
|
||
.TimeControl i{ | ||
border: solid black; | ||
border-width: 0 6px 6px 0; | ||
display: inline-block; | ||
padding: 5px; | ||
margin: 0 10px; | ||
} | ||
|
||
.TimeControl .Duration { | ||
font-size: 30px; | ||
font-weight: bold; | ||
} | ||
|
||
.ArrowUp { | ||
transform: rotate(-135deg); | ||
-webkit-transform: rotate(-135deg); | ||
} | ||
|
||
.ArrowDown { | ||
transform: rotate(45deg); | ||
-webkit-transform: rotate(45deg); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { Component } from 'react'; | ||
import TimeControl from '../../components/TimeControl/TimeControl'; | ||
|
||
class ControlPanel extends Component { | ||
render() { | ||
return( | ||
<TimeControl type="break" duration={3}/> | ||
); | ||
} | ||
} | ||
|
||
export default ControlPanel; |