diff --git a/website/core/Footer.js b/website/core/Footer.js index 9fc4331c40..7e08f80efb 100644 --- a/website/core/Footer.js +++ b/website/core/Footer.js @@ -46,20 +46,19 @@ class Footer extends React.Component {
Community
- - User Showcase - + rel="noreferrer noopener" + > Stack Overflow Project Chat + rel="noreferrer noopener" + > Twitter
@@ -73,7 +72,8 @@ class Footer extends React.Component { data-count-href="/facebook/docusaurus/stargazers" data-show-count="true" data-count-aria-label="# stargazers on GitHub" - aria-label="Star this project on GitHub"> + aria-label="Star this project on GitHub" + > Star @@ -83,7 +83,8 @@ class Footer extends React.Component { href="https://code.facebook.com/projects/" target="_blank" rel="noreferrer noopener" - className="fbOpenSource"> + className="fbOpenSource" + > Facebook Open Source - -
-
-

Need help?

-
-

This project is maintained by a dedicated group of people.

- -
-
- - ); - } -} - -module.exports = Help; diff --git a/website/pages/en/index.js b/website/pages/en/index.js index 62f284c8a4..2e13392c35 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index.js @@ -95,7 +95,8 @@ const Block = props => ( + background={props.background} + > ); @@ -122,7 +123,8 @@ const Features = () => ( const FeatureCallout = () => (
+ style={{ textAlign: 'center' }} + >

Feature Callout

These are features of this project
@@ -167,31 +169,6 @@ const Description = () => ( ); -const Showcase = props => { - if ((siteConfig.users || []).length === 0) { - return null; - } - - const showcase = siteConfig.users.filter(user => user.pinned).map(user => ( - - {user.caption} - - )); - - return ( -
-

Who is Using This?

-

This project is used by all these people

-
{showcase}
-
- - More {siteConfig.title} Users - -
-
- ); -}; - class Index extends React.Component { render() { const language = this.props.language || ''; @@ -205,7 +182,6 @@ class Index extends React.Component { - ); diff --git a/website/pages/en/users.js b/website/pages/en/users.js deleted file mode 100644 index b03fb812ad..0000000000 --- a/website/pages/en/users.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * 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'); - -const Container = CompLibrary.Container; - -const siteConfig = require(`${process.cwd()}/siteConfig.js`); - -class Users extends React.Component { - render() { - if ((siteConfig.users || []).length === 0) { - return null; - } - - const editUrl = `${siteConfig.repoUrl}/edit/master/website/siteConfig.js`; - const showcase = siteConfig.users.map(user => ( - - {user.caption} - - )); - - return ( -
- -
-
-

Who is Using This?

-

This project is used by many folks

-
-
{showcase}
-

Are you using this project?

- - Add your company - -
-
-
- ); - } -} - -module.exports = Users; diff --git a/website/siteConfig.js b/website/siteConfig.js index 8a389ad588..39498637d9 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -8,18 +8,6 @@ // See https://docusaurus.io/docs/site-config for all the possible // site configuration options. -// List of projects/orgs using your project for the users page. -const users = [ - { - caption: 'User1', - // You will need to prepend the image path with your baseUrl - // if it is not '/', like: '/test-site/img/docusaurus.svg'. - image: '/img/docusaurus.svg', - infoLink: 'https://www.facebook.com', - pinned: true, - }, -]; - const siteConfig = { title: 'Create React App', // Title for your website. tagline: 'Create React apps with no build configuration.', @@ -40,12 +28,9 @@ const siteConfig = { headerLinks: [ { doc: 'doc1', label: 'Docs' }, { doc: 'doc4', label: 'API' }, - { page: 'help', label: 'Help' }, + { href: 'https://reactjs.org/community/support.html', label: 'Help' }, ], - // If you have users set above, you add it here: - users, - /* path to images for header/footer */ headerIcon: 'img/docusaurus.svg', footerIcon: 'img/docusaurus.svg',