diff --git a/src/App.css b/src/App.css index 54656a3..e6114fb 100755 --- a/src/App.css +++ b/src/App.css @@ -52,15 +52,15 @@ button { } #total-display { - font-size: large; + font-size: small; } #adders button { - background-color: yellowgreen; + background-color: yellow; } #controllers button { - background-color: orange; + background-color: lightblue; } @keyframes App-logo-spin { diff --git a/src/App.js b/src/App.js index 4239481..deaad03 100755 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,10 @@ -import React, { Component } from 'react'; + import React, { Component } from 'react'; import './App.css'; import Die from './Die'; + +let counter = 0 class App extends Component { constructor(props) { super(props); @@ -28,7 +30,10 @@ class App extends Component { const dice = this.state.dice; dice[key].value = dice[key].roll(); this.setState({dice}); - } + counter ++; + return counter + } + renderDesc() { const counts = {}; @@ -70,6 +75,8 @@ class App extends Component { return this.state.dice.reduce((acc, die) => acc + die.value, 0); } + + render() { return (