diff --git a/src/App.css b/src/App.css index 9593aa1f3..6a97c0cd5 100644 --- a/src/App.css +++ b/src/App.css @@ -1,15 +1,18 @@ .container { background-color: #c00025; - width: 100%; + width: 90%; max-width: 550px; border-radius: 15px; border: 2px solid grey; padding-bottom: 25px; + height: 700px; } .display { margin-top: 25px; + margin-bottom: 25px; height: 100px; - width: 450px; + width: 80%; + margin-left: 5%; border-radius: 50px; color: white; background-color: #322c2d; @@ -18,5 +21,41 @@ justify-content: flex-end; align-items: flex-end; padding-right: 8%; - font-size: 5.0rem; + font-size: 4.1rem; } + +button { + margin: 10px; + color: white; + font-size: 1.4rem; + padding: 20px; + border-radius: 90px; + height: 80px; + width: 80px; + border-style: none; + box-shadow: 0 3px black, 0 0 gray; + +} + +.button-container{ + width: 90%; + margin: 0 5%; + display: flex; + +} + +.number-button{ + background-color: blue; +} + +.special-button{ + background-color: dodgerblue; +} + +.operator-button{ + background-color: teal; +} + +.logo-container{ + margin: 15px 0 0 5%; +} diff --git a/src/App.js b/src/App.js index dff4ef086..ab93f2967 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,10 @@ -import React from "react"; +import React, {useState} from "react"; import "./App.css"; +import Numbers from "./components/ButtonComponents/NumberButtons/Numbers.js"; +import Operators from "./components/ButtonComponents/OperatorButtons/Operators.js"; +import Specials from "./components/ButtonComponents/SpecialButtons/Specials.js"; +import Display from "./components/DisplayComponents/Display.js"; + // STEP 4 - import the button and display components // Don't forget to import any extra css/scss files you build into the correct component @@ -12,12 +17,57 @@ function App() { // Your functions should accept a parameter of the the item data being displayed to the DOM (ie - should recieve 5 if the user clicks on // the "5" button, or the operator if they click one of those buttons) and then call your setter function to update state. // Don't forget to pass the functions (and any additional data needed) to the components as props + const [total, setTotal] = useState(0); + const [displayNum, setDisplayNum] = useState('0'); + const [equation, setEquation] = useState('nothing'); + const [tracking, setTracking] = useState('0'); return (