From 7dbf9888bf1f852a1bb0dbf31dbf86c4a06387ee Mon Sep 17 00:00:00 2001 From: Will Byrne Date: Fri, 12 Jul 2019 12:38:13 +0100 Subject: [PATCH] added initial page components (#2306) * added initial page components * add styling to the pages * add empty function for onClick --- .../component-survey/client/pages/index.js | 55 ++++++++++++++++++- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/packages/component-survey/client/pages/index.js b/packages/component-survey/client/pages/index.js index a984cfb6..f277b614 100644 --- a/packages/component-survey/client/pages/index.js +++ b/packages/component-survey/client/pages/index.js @@ -1,5 +1,56 @@ -import React from 'react' +import React, { useState } from 'react' +import { + FormH2, + Paragraph, +} from '@elifesciences/component-elife-ui/client/atoms' +import { Button, TextField } from '@pubsweet/ui' +import { Box } from '@rebass/grid' -const SurveyPage = () =>
Hello Im a Survey :D
+const SurveyPage = () => { + const [country, setCountry] = useState('') + const [gender, setGender] = useState('') + const [timeAsPI, setTimeAsPI] = useState('') + return ( + + Help us reduce bias + + Answering the following questions about the last author of your + submission (i.e. group leader or principal investigator) will help our + efforets to reduce bias in our submission and peer review process. + + + Your answers will not be shared with the Editors handling the + papaer and will be anonymised when we analyse the data we collect. + + + setCountry(e.target.value)} + placeholder="Enter text here" + value={country} + /> + + + setGender(e.target.value)} + placeholder="Enter text here" + value={gender} + /> + + + setTimeAsPI(e.target.value)} + placeholder="Enter text here" + value={timeAsPI} + /> + + + + ) +} export default SurveyPage