/**
* 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 (
);
}
}
Button.defaultProps = {
target: '_self',
className: '',
};
const SplashContainer = props => (
);
const Logo = props => (
);
const ProjectTitle = props => (
{siteConfig.title}
{siteConfig.tagline}
);
const PromoSection = props => (
);
class HomeSplash extends React.Component {
render() {
let language = this.props.language || '';
return (
);
}
}
const Block = props => (
);
Block.defaultProps = {
padding: ['bottom', 'top'],
};
const Features = props => (
{[
{
content: 'Rich DSL out-of-the-box',
imageAlign: 'top',
title: 'Powerful',
},
{
content: 'Supports ActiveRecord and Sequel
ROM is coming soon!',
imageAlign: 'top',
title: 'ORM adapters',
},
{
content: 'Easy to extend for your needs',
imageAlign: 'top',
title: 'Customizable',
},
{
content: "It's just Ruby without any dependency",
imageAlign: 'top',
title: 'Rails-free',
},
]}
);
const FeatureCallout = props => (
Feature Callout
These are features of this project
);
const LearnHow = props => (
{[
{
content: 'Talk about learning how to use this',
image: imgUrl('docusaurus.svg'),
imageAlign: 'right',
title: 'Learn How',
},
]}
);
const TryOut = props => (
{[
{
content: 'Talk about trying this out',
image: imgUrl('docusaurus.svg'),
imageAlign: 'left',
title: 'Try it Out',
},
]}
);
const Description = props => (
{[
{
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 => {
return user.pinned;
})
.map((user, i) => {
return (
);
});
return (
{"Who's Using This?"}
This project is used by all these people
{showcase}
);
};
class Index extends React.Component {
render() {
let language = this.props.language || '';
return (
{/* */}
{/* */}
{/* */}
{/* */}
{/* */}
);
}
}
module.exports = Index;