/* eslint-disable max-classes-per-file */ /** * 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'); // eslint-disable-next-line import/no-unresolved const CompLibrary = require('../../core/CompLibrary'); const { GridBlock, Container } = CompLibrary; /* Used to read markdown */ const siteConfig = require(`${process.cwd()}/siteConfig`); function docUrl(doc, language) { return `${siteConfig.baseUrl}${language ? `${language}/` : ''}${doc}`; } function imgUrl(img) { return `${siteConfig.baseUrl}img/${img}`; } const Button = ({ href, target, children }) => (
{children}
); Button.defaultProps = { target: '_self', }; const SplashContainer = ({ children }) => (
{children}
); const ProjectTitle = () => (
Unity Atoms logo

{siteConfig.title}

Tiny modular pieces utilizing the power of Scriptable Objects

); const PromoSection = ({ children }) => (
{children}
); const HomeSplash = ({ language = '' }) => (
); const Block = ({ id, background, className, children, layout }) => ( ); const FeaturesTop = () => ( {[ { content: 'Avoid scripts and systems directly dependent on each other.', image: imgUrl('box.svg'), imageAlign: 'top', title: 'Modular', }, { content: 'Scriptable Objects makes it possible to make changes to your game at runtime.', image: imgUrl('pen.svg'), imageAlign: 'top', title: 'Editable', }, { content: 'Modular code is easier to debug than tightly coupled code.', image: imgUrl('bug.svg'), imageAlign: 'top', title: 'Debuggable', }, ]} ); const Index = ({ language = '' }) => (
); module.exports = Index;