import React, {} from 'react'; import Paper from '@material-ui/core/Paper'; import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import {BrowserView, MobileView} from "react-device-detect"; import ScheduleIcon from '@material-ui/icons/Schedule'; import Web from '@material-ui/icons/Web'; import AccountTree from '@material-ui/icons/AccountTree'; const bodyDivStyle = { margin: "auto", marginTop: "75px", textAlign: "center", width: "1100px", } const surfaceColor = "#27292D" const boxStyle = { flex: "1", marginLeft: "10px", marginRight: "10px", height: "400px", //backgroundColor: "#e8eaf6", backgroundColor: surfaceColor, textAlign: "center", display: "flex", flexDirection: "column", } const bodyTextStyle = { color: "#ffffff", } const hrefStyle = { color: "black", textDecoration: "none", } // Should be different if logged in :| const LandingPage = (props) => { const { isLoaded} = props; const textColor = "#8899A6" const iconColor = "#1DA1F2" const iconSize = "8em" const GridLayout = (header, description, link, icon) => { return (

{header}

{description}
{icon}
Learn more
) } const listitems = [ GridLayout("Simple integrations", "Easily use others' or create your own integration", "/docs/apps", ), GridLayout("Workflows", "Access the power of automation within minutes, whether its on premise or in the cloud", "/docs/workflows", ), GridLayout("Realtime actions", "Beat the clock by leveraging our realtime triggers", "/docs/triggers", ), ] // The actual landing page // {"logo"} const landingpageDataBrowser =

Shuffle

A general automation solution for Infosec and IT Professionals

{listitems.map(item => { return (
{item}
) })}
const landingpageDataMobile =

Shuffle

A general automation solution for Infosec and IT Professionals

{listitems[0]}
{listitems[1]}
{listitems[2]}
// Reroute if the user is logged in // const landingSite = isLoggedIn ? :
{landingpageData}
const landingSite =
{landingpageDataBrowser}
const loadedCheck = isLoaded ?
{landingSite} {landingpageDataMobile}
:
return(
{loadedCheck}
) } export default LandingPage;