/**
* 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;
class HomeSplash extends React.Component {
render() {
const {siteConfig, language = ''} = this.props;
const {baseUrl, docsUrl} = siteConfig;
const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
const langPart = `${language ? `${language}/` : ''}`;
const docUrl = doc => `${baseUrl}${docsPart}${langPart}${doc}`;
const SplashContainer = props => (
);
const Logo = props => (
);
const ProjectTitle = () => (
{siteConfig.title}
{siteConfig.tagline}
);
const PromoSection = props => (
);
const Button = props => (
);
return (
{/**/}
);
}
}
class Index extends React.Component {
render() {
const {config: siteConfig, language = ''} = this.props;
const {baseUrl} = siteConfig;
const Block = props => (
);
const FeatureCallout = () => (
Feature Callout
These are features of this project
);
const TryOut = () => (
{[
{
content:
'To make your landing page more attractive, use illustrations!' +
' Check out [**unDraw**](https://undraw.co/) which provides' +
'you with customizable illustrations which are free to use. ' +
'The illustrations you see on this page are from unDraw.',
image: `${baseUrl}img/undraw_code_review.svg`,
imageAlign: 'left',
title: 'Wonderful SVG Illustrations',
},
]}
);
const Description = () => (
{[
{
content:
'This is another description of how this project is useful',
image: `${baseUrl}img/undraw_note_list.svg`,
imageAlign: 'right',
title: 'Description',
},
]}
);
const LearnHow = () => (
{[
{
content:
'Each new Docusaurus project has **randomly-generated** '+
'theme colors.',
image: `${baseUrl}img/undraw_youtube_tutorial.svg`,
imageAlign: 'right',
title: 'Randomly Generated Theme Colors',
},
]}
);
const Features = () => (
{[
{
title: 'Schema As Code',
content: 'Simple API for modeling any graph schema as Go objects',
image: `https://entgo.io/assets/gopher-schema-as-code.png`,
imageAlign: 'top',
},
{
title: 'Easily Traverse Any Graph',
content: 'Run queries, aggregations and traverse any graph ' +
'structure easily',
image: `https://entgo.io/assets/gopher-graph-traversal.png`,
imageAlign: 'top',
},
{
title: 'Statically Typed And Explicit API',
content: '100% statically types and explicit api using ' +
'code generation',
image: `https://entgo.io/assets/gopher-graph-traversal.png`,
imageAlign: 'top',
},
{
title: 'Multiple Storage Driver Support',
content: 'Support both SQL and Gremlin dialects',
image: `https://entgo.io/assets/gopher-graph-traversal.png`,
imageAlign: 'top',
},
]}
);
const Showcase = () => {
if ((siteConfig.users || []).length === 0) {
return null;
}
const showcase = siteConfig.users
.filter(user => user.pinned)
.map(user => (
));
const pageUrl = page => baseUrl + (language ? `${language}/` : '') + page;
return (
Who is Using This?
This project is used by all these people
{showcase}
);
};
return (
);
}
}
module.exports = Index;