Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
teevik committed Apr 7, 2019
0 parents commit f45f0dd
Show file tree
Hide file tree
Showing 17 changed files with 11,561 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
yarn-error.log
.env
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": false,
"semi": false
}
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prettier.tslintIntegration": true,
"typescript.tsdk": "node_modules\\typescript\\lib"
}
6 changes: 6 additions & 0 deletions config-overrides.js
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 }])
)
39 changes: 39 additions & 0 deletions package.json
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"
}
}
23 changes: 23 additions & 0 deletions public/index.html
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>
8 changes: 8 additions & 0 deletions public/manifest.json
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"
}
62 changes: 62 additions & 0 deletions src/components/App.tsx
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;
}
`
Loading

0 comments on commit f45f0dd

Please sign in to comment.