/** * 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 MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */ const Container = CompLibrary.Container; const GridBlock = CompLibrary.GridBlock; const siteConfig = require(`${process.cwd()}/siteConfig.js`); function imgUrl(img) { return `${siteConfig.baseUrl}img/${img}`; } function docUrl(doc, language) { return `${siteConfig.baseUrl}docs/${language ? `${language}/` : ''}${doc}`; } function pageUrl(page, language) { return siteConfig.baseUrl + (language ? `${language}/` : '') + page; } class Button extends React.Component { render() { return (
{this.props.children}
); } } Button.defaultProps = { target: '_self', }; const SplashContainer = props => (
{props.children}
); const Logo = props => (
Project Logo
); const ProjectTitle = () => (

{siteConfig.title} {siteConfig.tagline}

); const PromoSection = props => (
{props.children}
); class HomeSplash extends React.Component { render() { const language = this.props.language || ''; return (
); } } const Block = props => ( ); const Features = () => ( {[ { content: 'This is the content of my feature', image: imgUrl('docusaurus.svg'), imageAlign: 'top', title: 'Feature One', }, { content: 'The content of my second feature', image: imgUrl('docusaurus.svg'), imageAlign: 'top', title: 'Feature Two', }, ]} ); const FeatureCallout = () => (

Feature Callout

These are features of this project
); const LearnHow = () => ( {[ { content: 'Talk about learning how to use this', image: imgUrl('docusaurus.svg'), imageAlign: 'right', title: 'Learn How', }, ]} ); const TryOut = () => ( {[ { content: 'Talk about trying this out', image: imgUrl('docusaurus.svg'), imageAlign: 'left', title: 'Try it Out', }, ]} ); const Description = () => ( {[ { content: 'This is another description of how this project is useful', image: imgUrl('docusaurus.svg'), imageAlign: 'right', title: '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 || ''; return (
); } } module.exports = Index;