diff --git a/public/index.html b/public/index.html index 7d6a985..1d5b994 100644 --- a/public/index.html +++ b/public/index.html @@ -14,4 +14,7 @@
+ diff --git a/src/App.css b/src/App.css index e69de29..8daa620 100644 --- a/src/App.css +++ b/src/App.css @@ -0,0 +1,31 @@ +.App { + text-align: center; +} + +.App-header { + background-color: #222; + height: 80px; + padding: 10px; + color: white; +} + +.App-title { + font-size: 1.5em; +} + +.Forms { + align-content: center; + align-items: center; + align-self: center; + text-align: center; +} + +.Peoples { + max-width: 250px; + line-height: 1.8em; + margin: 0 auto; +} + +.PaymentChain { + margin-bottom: 130px; +} \ No newline at end of file diff --git a/src/App.js b/src/App.js index 6682263..fad4212 100644 --- a/src/App.js +++ b/src/App.js @@ -9,23 +9,29 @@ class App extends Component { this.state = { peoples: [], info: [], - paymentChain: [] + paymentChain: [], + actionButtons:[] } } render() { return (
-

Breakups

+
+

Breakups

+

Easy way to split bills among multiple people.

-
- Number of people: -
-
- {this.state.peoples} -
- -
+
+
+ Number of people: +
+
+
+ {this.state.peoples} +
+
+ {this.state.actionButtons} +
); } @@ -65,9 +71,10 @@ class App extends Component { peoples.push(); } - peoples.push(); - peoples.push(); - this.setState({peoples:peoples, info:info}); + let actionButtons = [] + actionButtons.push(); + actionButtons.push(); + this.setState({peoples:peoples, info:info, actionButtons:actionButtons}); } e.preventDefault(); diff --git a/src/Components/PaymentChain.js b/src/Components/PaymentChain.js index 4b6afe4..1f143f0 100644 --- a/src/Components/PaymentChain.js +++ b/src/Components/PaymentChain.js @@ -14,7 +14,9 @@ class PaymentChain extends Component { return (
+
{payments} +
); } diff --git a/src/Components/People.js b/src/Components/People.js index 3918338..0638e81 100644 --- a/src/Components/People.js +++ b/src/Components/People.js @@ -1,14 +1,21 @@ import React, { Component } from 'react'; class People extends Component { + constructor() { + super(); + this.state = { + space: `\t` + } + } + render() { return (
-
- Person {this.props.people}
- Name:
- Email:
- Amount:
+ Person {this.props.people}
+ + Name:{this.state.space}
+ Email:{this.state.space}
+ Amount:{this.state.space}