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
// Returns the basic layout of the clock | |
return ( | |
<div className="clock"> | |
<NumeralPair value={convertedHours}/> | |
<Spacer/> | |
<NumeralPair value={this.state.date.getMinutes()}/> | |
<Spacer/> | |
<NumeralPair value={this.state.date.getSeconds()}/> | |
<TimeSetting timePeriod={timePeriod} timeSetting={this.state.timeSetting} toggle={this.toggleTimeSetting}/> | |
</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
const numerals = { | |
"1": { | |
top: false, top_left: false, top_right: true, middle: false, bottom_left: false, bottom_right: true, bottom: false | |
}, | |
"2": { | |
top: true, top_left: false, top_right: true, middle: true, bottom_left: true, bottom_right: false, bottom: true | |
}, | |
"3": { | |
top: true, top_left: false, top_right: true, middle: true, bottom_left: false, bottom_right: true, bottom: true | |
}, |