diff --git a/client/src/pages/signup.js b/client/src/pages/signup.js new file mode 100644 index 00000000..54d91dc4 --- /dev/null +++ b/client/src/pages/signup.js @@ -0,0 +1,114 @@ +import React, { useState } from "react"; +import { Layout } from "../modules/layout"; +import { + Stack, + Button, + Heading, + FormControl, + Input, + FormHelperText, + FormLabel, +} from "@chakra-ui/react"; + +const SignupPage = () => { + //create input values + const [firstname, setfname] = useState(""); + const [lastname, setlname] = useState(""); + const [email, setemail] = useState(""); + const [address, setaddress] = useState(""); + const [dob, setdob] = useState(""); + const [password, setpassword] = useState(""); + const [zip, setzip] = useState(""); + + const handleSubmit = (e) => { + //check if every input is valid + //if all inputs are valid, complete registration + }; + + return ( + + + Sign Up +
+ + First Name + { + setfname(e.target.value); + }} + /> + + + Last Name + { + setlname(e.target.value); + }} + /> + + + Email address + { + setemail(e.target.value); + }} + /> + + + Password + { + setpassword(e.target.value); + }} + /> + + + Date of birth + { + setdob(e.target.value); + }} + /> + + + Address + { + setaddress(e.target.value); + }} + /> + + + Zipcode + { + setzip(e.target.value); + }} + /> + + + Country + + + +
+
+
+ ); +};