-
Notifications
You must be signed in to change notification settings - Fork 74
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
1 parent
19495e4
commit 3d4fdaf
Showing
25 changed files
with
10,424 additions
and
330 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 |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
{ | ||
"allow": [ | ||
"info", | ||
"time", | ||
"timeEnd", | ||
"warn", | ||
"error" | ||
] | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.idea | ||
static/js | ||
static | ||
webpack/jsPackageName.json | ||
private | ||
|
||
|
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App from '../components/App.jsx'; | ||
import Perf from 'react-addons-perf'; | ||
import App from '../components/App/App.jsx'; | ||
|
||
window.Perf = Perf; | ||
|
||
const data = window.APP_DATA; | ||
|
||
ReactDOM.render(<App data={data} />, document.getElementById(`app`)); | ||
// We don't want to inline this data cos it's HUGE | ||
// We fetch here, but we have already pre-fetched in the <head> | ||
// So it's already at least partially ready | ||
fetch(window.APP_DATA.dataFileName) | ||
.then(response => response.json()) | ||
.then(data => { | ||
ReactDOM.render(<App data={data} />, document.getElementById(`app`)); | ||
}); |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
import React from 'react'; | ||
|
||
import SkillTable from '../SkillTable/SkillTable.jsx'; | ||
|
||
if (process.env.IMPORT_SCSS) require(`./App.scss`); // eslint-disable-line global-require | ||
|
||
class App extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
data: props.data, | ||
stats: [], | ||
}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<header className="header"> | ||
<h1 className="header__title">Know It All</h1> | ||
</header> | ||
|
||
<SkillTable {...this.state} /> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
App.propTypes = { | ||
data: React.PropTypes.array, | ||
}; | ||
|
||
export default App; |
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,7 @@ | ||
@import './reset'; | ||
|
||
.header__title { | ||
text-align: center; | ||
font-size: 40px; | ||
color: white; | ||
} |
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,55 @@ | ||
html { | ||
box-sizing: border-box; | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} | ||
|
||
body, h1, h2, h3, h4, h5, h6, p { | ||
margin: 0; | ||
font-family: "Calibri Light", Roboto, Helvetica, Arial, sans-serif; | ||
font-size: 1rem; | ||
font-weight: 300; | ||
} | ||
|
||
body { | ||
color: #333; | ||
background: #bf4444; | ||
overflow-y: scroll; | ||
} | ||
|
||
a { | ||
text-decoration: none; | ||
color: inherit; | ||
} | ||
|
||
a:focus { | ||
outline: 0; | ||
} | ||
|
||
input { | ||
appearance: none; | ||
border: 0; | ||
padding: 0; | ||
margin: 0; | ||
min-width: 0; | ||
font-size: 1rem; | ||
font-family: inherit; | ||
} | ||
|
||
body:not(.user-tabbing) input:focus { | ||
outline: 0; | ||
} | ||
|
||
button { | ||
background-color: transparent; | ||
border: 0; | ||
color: inherit; | ||
font-family: inherit; | ||
font-weight: inherit; | ||
font-size: inherit; | ||
letter-spacing: 1px; | ||
} |
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
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 @@ | ||
@import '../global'; | ||
|
||
.skill-table { | ||
margin: 20px auto; | ||
max-width: 1000px; | ||
background: $WHITE; | ||
box-shadow: 0 27px 55px 0 rgba(0, 0, 0, 0.3), 0 17px 17px 0 rgba(0, 0, 0, 0.15); | ||
} |
Oops, something went wrong.