diff --git a/frontend/src/assets/data/staticText.json b/frontend/src/assets/data/staticText.json new file mode 100644 index 0000000..3f382dd --- /dev/null +++ b/frontend/src/assets/data/staticText.json @@ -0,0 +1,30 @@ +{ + "steps": { + "location": { + "title": "Right Plant Right Place Plant Selector Tool for New Zealand.", + "description": "Your native plant selection starts here! Use the map to select a planting site location within New Zealand. On the following pages you will provide more details on your project until the system has enough information to create your plant species list and planting plan. To start, click on the map and pan and zoom to the site location. Once the location is selected, click on the “next step” button to complete the process. Repeat this process for sites at different locations." + }, + "soil": { + "title": "Soil Variant Selection", + "description": "", + "optionsLabel": "Soil Variant Options", + "optionsHelperText": "Please select your soil variant from the options above." + }, + "habitat": { + "title": "", + "description": "" + }, + "zone": { + "title": "", + "description": "" + }, + "projectSpecifics": { + "title": "", + "description": "" + }, + "summary": { + "title": "", + "description": "" + } + } +} \ No newline at end of file diff --git a/frontend/src/components/Stepper.js b/frontend/src/components/Stepper.js index f294ddb..2b19abe 100644 --- a/frontend/src/components/Stepper.js +++ b/frontend/src/components/Stepper.js @@ -5,8 +5,8 @@ import Step from '@mui/material/Step'; import StepLabel from '@mui/material/StepLabel'; import Button from '@mui/material/Button'; -import LocationStep from './steps/locationstep/Location' -import SoilStep from './steps/soilvariantstep/Soil' +import LocationStep from './steps/locationstep/LocationStep' +import SoilStep from './steps/soilvariantstep/SoilStep' import ResultsStep from './steps/Results' const steps = [ diff --git a/frontend/src/components/steps/StepInformation.js b/frontend/src/components/steps/StepInformation.js new file mode 100644 index 0000000..48e5909 --- /dev/null +++ b/frontend/src/components/steps/StepInformation.js @@ -0,0 +1,9 @@ +export default function StepInformation(props) { + return ( +
- Your native plant selection starts here! Use the map to select a planting site location within New Zealand. On the following pages you will provide more details on your project until the system has enough information to create your plant species list and planting plan. To start, click on the map and pan and zoom to the site location. Once the location is selected, click on the “next step” button to complete the process. Repeat this process for sites at different locations. -
-
- From your site location, we use New Zealand Soil Classification data and additional Manaaki Whenua Landcare Research data to determine overall soil type. However we also need to know as much as possible about the moisture content of the soil at your planting site location.
-
- Please select an option from the choices listed to the right:
-
Is your ground/soil VERY WET? i.e. is it soft and squishy under foot with ground water at or near surface for three months of year or more? Your soil is considered wet if the
export default function SoilSelector(props) {
const [value, setValue] = React.useState(props.filters.soilVariant);
- const [helperText, setHelperText] = React.useState('Please select your soil variant from the options above.');
+ const [helperText, setHelperText] = React.useState(staticText.steps.soil.optionsHelperText);
React.useEffect(() => {
if (props.filters.soilVariant) {
@@ -44,7 +45,7 @@ export default function SoilSelector(props) {
component="fieldset"
variant="standard"
>
-
+ Please select an option from the choices listed to the right:
+