diff --git a/pages/index.js b/pages/index.js index 7d4338c..5e2f3bc 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,52 +1,128 @@ import Link from "next/link"; import { useContext } from "react"; import { UserContext } from "../lib/context"; +import { Stack, VStack, Text, Button, Image } from "@chakra-ui/react"; import { - Stack, - VStack, - Container, - Heading, - Text, - Button, - Image, -} from "@chakra-ui/react"; + AddIcon, + EditIcon, + RepeatClockIcon, + RepeatIcon, +} from "@chakra-ui/icons"; export default function Home() { const { user } = useContext(UserContext); - return ( - - - - Send data from your behavioral experiments to the Open Science - Framework, for free. + const Feature = ({ title, text, icon, flexBasis }) => { + return ( + + {icon} + + {title} - {user ? ( - - - - ) : ( - - - - )} + {text} - Decorative illustration of a pipe with data flowing through it - + ); + }; + + return ( + + + + + Send data from your behavioral experiments to the Open Science + Framework, for free. + + {user ? ( + + + + ) : ( + + + + )} + + Decorative illustration of a pipe with data flowing through it + + + } + title={"Link your OSF Account"} + text={ + "Simply create an OSF project or use an existing one, along with generating an OSF token to allow DataPipe to send data to it." + } + flexBasis={"33%"} + /> + } + title={"Add DataPipe Code"} + text={ + "Configure your experiment parameters and add our pre-generated code snippets into your web-based experiment." + } + flexBasis={"33%"} + /> + } + title={"Publish your Experiment"} + text={ + "Host your experiment on a static hosting website like Github Pages or Netlify, activate data collection, and sit back as data will be automatically sent to OSF." + } + flexBasis={"33%"} + /> + + + } + title={"100% Free"} + text={ + "With the Open Science Foundation as a methods to store data for free, " + + "placed upon traditionally free web page hosting, means less worrying about " + + "development and pricing, and more time spent on your experiments." + } + flexBasis={"50%"} + /> + {"Picture + + ); }