Skip to content

Commit 4e8a1fe

Browse files
author
pollman
committed
Initial jsx and css setup
0 parents  commit 4e8a1fe

File tree

18 files changed

+6928
-0
lines changed

18 files changed

+6928
-0
lines changed

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
# post
24+
post.md

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Using AWS Lambda and API Gateway with React

package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "aws-lambda-with-api-gateway-and-react",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"react": "^16.2.0",
7+
"react-dom": "^16.2.0"
8+
},
9+
"devDependencies": {
10+
"react-scripts": "1.1.0"
11+
},
12+
"scripts": {
13+
"start": "react-scripts start",
14+
"build": "react-scripts build",
15+
"test": "react-scripts test --env=jsdom",
16+
"eject": "react-scripts eject"
17+
}
18+
}

public/favicon.png

542 Bytes
Loading

public/index.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6+
<meta name="theme-color" content="#000000">
7+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.png">
8+
<link href="https://fonts.googleapis.com/css?family=Orbitron:400,700,900" rel="stylesheet">
9+
<title>Issa Calculator</title>
10+
</head>
11+
<body>
12+
<noscript>
13+
You need to enable JavaScript to run this app.
14+
</noscript>
15+
<div id="root"></div>
16+
</body>
17+
</html>

src/App.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.App {
2+
align-items: center;
3+
display: flex;
4+
height: 100vh;
5+
justify-content: center;
6+
width: 100vw;
7+
}

src/App.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React, {Component} from 'react';
2+
import Calculator from './components/Calculator/Calculator';
3+
import './App.css';
4+
5+
class App extends Component {
6+
render() {
7+
return (
8+
<div className="App">
9+
<Calculator />
10+
</div>
11+
);
12+
}
13+
}
14+
15+
export default App;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.calculator-container {
2+
height: 60%;
3+
width: 24%;
4+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import './Calculator.css';
3+
4+
import Display from '../Display/Display';
5+
import Keypad from '../Keypad/Keypad';
6+
7+
const Calculator = () => {
8+
return (
9+
<div className="calculator-container">
10+
<Display />
11+
<Keypad />
12+
</div>
13+
);
14+
}
15+
16+
export default Calculator;

src/components/Display/Display.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.display-container {
2+
align-items: center;
3+
background: var(--display-background);
4+
display: flex;
5+
padding: 4% 4% 0 4%;
6+
width: 92%;
7+
}
8+
9+
.display-value {
10+
color: var(--display-text-color);
11+
font-size: var(--display-text-size);
12+
font-family: var(--main-font);
13+
font-weight: var(--display-text-weight);
14+
margin-left: auto;
15+
}

0 commit comments

Comments
 (0)