diff --git a/examples-translations/pages/en/help-with-translations.js b/examples-translations/pages/en/help-with-translations.js new file mode 100644 index 0000000000..d88dc1a4e6 --- /dev/null +++ b/examples-translations/pages/en/help-with-translations.js @@ -0,0 +1,71 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +const React = require("react"); + +const CompLibrary = require("../../core/CompLibrary.js"); +const Container = CompLibrary.Container; +const GridBlock = CompLibrary.GridBlock; + +const translate = require("../../server/translate.js").translate; + +const siteConfig = require(process.cwd() + "/siteConfig.js"); + +class Help extends React.Component { + render() { + const supportLinks = [ + { + content: ( + + Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html) + + ), + title: Browse Docs + }, + { + content: ( + + Ask questions about the documentation and project + + ), + title: Join the community + }, + { + content: Find out what's new with this project, + title: Stay up to date + } + ]; + + return ( +
+ +
+
+

+ Need help? +

+
+

+ + This project is maintained by a dedicated group of people. + +

+ +
+
+
+ ); + } +} + +Help.defaultProps = { + language: "en" +}; + +module.exports = Help; diff --git a/examples/pages/en/help.js b/examples/pages/en/help.js index 354660daad..002c46f78c 100755 --- a/examples/pages/en/help.js +++ b/examples/pages/en/help.js @@ -20,32 +20,30 @@ class Help extends React.Component { const supportLinks = [ { content: - "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)\n", + "Learn more using the [documentation on this site.](/test-site/docs/en/doc1.html)", title: "Browse Docs" }, { - content: "Ask questions about the documentation and project\n", + content: "Ask questions about the documentation and project", title: "Join the community" }, { - content: "Find out what's new with this project\n", + content: "Find out what's new with this project", title: "Stay up to date" } ]; return ( -
-
- -
-
-

Need help?

-
-

This project is maintained by a dedicated group of people.

- -
-
-
+
+ +
+
+

Need help?

+
+

This project is maintained by a dedicated group of people.

+ +
+
); } diff --git a/examples/pages/en/users.js b/examples/pages/en/users.js index 683b77e1d4..b4c8eff31c 100644 --- a/examples/pages/en/users.js +++ b/examples/pages/en/users.js @@ -25,27 +25,25 @@ class Users extends React.Component { }); return ( -
-
- -
-
-

Who's Using This?

-

This project is used by many folks

-
-
- {showcase} -
-

Are you using this project?

- - Add your company - +
+ +
+
+

Who's Using This?

+

This project is used by many folks

- -
+
+ {showcase} +
+

Are you using this project?

+ + Add your company + +
+
); }