-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f45f0dd
Showing
17 changed files
with
11,561 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
build | ||
yarn-error.log | ||
.env |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": false, | ||
"semi": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"prettier.tslintIntegration": true, | ||
"typescript.tsdk": "node_modules\\typescript\\lib" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const { override, addBabelPreset, addBabelPlugin } = require("customize-cra") | ||
|
||
module.exports = override( | ||
addBabelPreset("@emotion/babel-preset-css-prop"), | ||
addBabelPlugin(["@babel/plugin-proposal-decorators", { legacy: true }]) | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "calculator", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"@babel/plugin-proposal-decorators": "^7.4.0", | ||
"@emotion/babel-preset-css-prop": "^10.0.9", | ||
"@emotion/core": "^10.0.10", | ||
"@types/classnames": "^2.2.7", | ||
"@types/ramda": "^0.26.5", | ||
"@types/react": "^16.8.10", | ||
"@types/react-dom": "^16.8.3", | ||
"classnames": "^2.2.6", | ||
"customize-cra": "^0.2.12", | ||
"mobx": "^5.9.4", | ||
"mobx-react-lite": "^1.2.0", | ||
"polished": "^3.2.0", | ||
"ramda": "^0.26.1", | ||
"react": "^16.8.6", | ||
"react-app-rewired": "^2.1.1", | ||
"react-dom": "^16.8.6", | ||
"react-scripts": "^2.1.8", | ||
"tslint": "^5.14.0", | ||
"typescript": "^3.4.1" | ||
}, | ||
"scripts": { | ||
"dev": "react-app-rewired start", | ||
"build": "react-app-rewired build", | ||
"test": "react-app-rewired test" | ||
}, | ||
"browserslist": [ | ||
">0.2%", | ||
"not dead", | ||
"not ie <= 11", | ||
"not op_mini all" | ||
], | ||
"devDependencies": { | ||
"gh-pages": "^2.0.1" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<link | ||
href="https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700" | ||
rel="stylesheet" | ||
/> | ||
|
||
<title>Calculator</title> | ||
</head> | ||
|
||
<body> | ||
<noscript> You need to enable JavaScript to run this app. </noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"short_name": "Calculator", | ||
"name": "Calculator", | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { css, Global } from "@emotion/core" | ||
import React from "react" | ||
import { font } from "../styling/constants" | ||
import { Calculator } from "./Calculator" | ||
|
||
export const App = () => { | ||
return ( | ||
<> | ||
<div css={appStyles.container}> | ||
<Calculator /> | ||
</div> | ||
|
||
<Global styles={globalStyles} /> | ||
</> | ||
) | ||
} | ||
|
||
const appStyles = { | ||
container: css` | ||
display: flex; | ||
flex-direction: column; | ||
min-height: 100vh; | ||
background-color: #212c2d; | ||
` | ||
} | ||
|
||
const globalStyles = css` | ||
.js-focus-visible *:focus:not(.focus-visible) { | ||
outline: none; | ||
} | ||
* { | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
text-decoration: inherit; | ||
color: inherit; | ||
font-family: inherit; | ||
} | ||
body { | ||
background-color: hsl(0, 0%, 93%); | ||
overflow-y: scroll; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-weight: 500; | ||
} | ||
html, | ||
body { | ||
font-family: ${font}; | ||
font-weight: 400; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
` |
Oops, something went wrong.