Skip to content

Commit

Permalink
before cra eject
Browse files Browse the repository at this point in the history
  • Loading branch information
plhosk committed Jul 21, 2017
1 parent 86b7424 commit f666094
Show file tree
Hide file tree
Showing 14 changed files with 1,161 additions and 47 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
public/gameoflife/
*.test.js
registerServiceWorker.js
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"extends": "airbnb",
"rules": {
"semi": ["error", "never"]
},
"env": {
"browser": true,
"es6": true,
"node": true
// "mocha": true
// "mongo": true
// "commonjs": true
}
}
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"antd": "^2.12.1",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.2",
"eslint-plugin-import": "^2.6.1",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-react": "^7.1.0",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-scripts": "1.0.10"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"surge": "surge build paulhoskinson.surge.sh",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
Expand Down
53 changes: 53 additions & 0 deletions public/gameoflife/gameoflife.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.cell {
height: 8px;
width: 8px;

margin: 0;
padding: 0;
border-style: none;
}

.cell-0 { background-color: #000; }

.cell-1 { background-color: #fc0; }
.cell-2 { background-color: #f90; }
.cell-3 { background-color: #f50; }
.cell-4 { background-color: #f00; }
.cell-5 { background-color: #c00; }
.cell-6 { background-color: #900; }
.cell-7 { background-color: #00c; }

body {
font-size: 100%;
font-family: sans-serif;
text-align: center;
max-width: 1000px;
margin: auto;
background: #2f496e;
color: #eee;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

h1 {
}

button {
margin: 5px;
padding: 8px;
background-color: #333;
color: #fff;
border-color: #666;
font-size: 1.1em;
}

table {
background-color: #000;
margin: auto;
border-collapse: collapse;
border-style: solid;
border-width: 2px;
border-color: #888;
}
17 changes: 17 additions & 0 deletions public/gameoflife/gameoflife.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta name=viewport content="width=515, initial-scale=0.621359">
<link rel="stylesheet" href="gameoflife.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.1/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-redux/4.4.5/react-redux.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.6.0/redux.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<script type="text/babel" src="gameoflife.js"></script>
</head>

<body>
<div id='app'></div>
</body>
</html>
Loading

0 comments on commit f666094

Please sign in to comment.