diff --git a/website/.vscode/settings.json b/website/.vscode/settings.json new file mode 100644 index 000000000000..cac0e10e68bd --- /dev/null +++ b/website/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": true +} \ No newline at end of file diff --git a/website/pages/en/index.js b/website/pages/en/index.js index 52b4992813a5..441b56a32ceb 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -4,7 +4,6 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ - const React = require('react'); const CompLibrary = require('../../core/CompLibrary.js'); @@ -13,21 +12,20 @@ const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; const translate = require('../../server/translate.js').translate; -const translation = require('../../server/translation.js'); const backers = require(process.cwd() + '/backers.json'); - const siteConfig = require(process.cwd() + '/siteConfig.js'); -const idx = (target, path) => - path.reduce((obj, key) => (obj && obj[key] ? obj[key] : null), target); +const getUrl = (url, language) => siteConfig.baseUrl + 'docs/' + language + url; class Button extends React.Component { render() { return ( -
- - {this.props.children} - -
+ + {this.props.children} + ); } } @@ -39,10 +37,10 @@ Button.defaultProps = { class Contributors extends React.Component { render() { return ( -
-

+
+

Sponsors -

+

Sponsors are those who contribute $100 or more per month to Jest @@ -62,7 +60,7 @@ class Contributors extends React.Component { { { ))}

-
- - Become a sponsor - -
-

+

Backers -

+

Backers are those who contribute $2 or more per month to Jest @@ -103,7 +93,7 @@ class Contributors extends React.Component { { { ))} -

- - Become a backer - -
); } } -class HomeSplash extends React.Component { +class Card extends React.Component { render() { + const {index} = this.props; return ( -
-
-
-
-

- {siteConfig.title} - - {idx(translation, [ - this.props.language, - 'localized-strings', - 'tagline', - ]) || siteConfig.tagline} - -

-
-
-
- - - - -
-
-
-
- - Star - -
+
+
+
+
JEST
+
+
+
JEST
+
+
+ + + + + + + + + + + + + + + + RUNS + + + + + RUNS + + + + + RUNS + + + + + RUNS + + + +
@@ -197,6 +205,53 @@ class HomeSplash extends React.Component { } } +class Hand extends React.Component { + render() { + const cards = [0, 1, 2, 3, 4].map(i => ); + return ( +
+ {cards} +