@@ -13,6 +13,7 @@ import {
1313 Flex ,
1414 VStack ,
1515 Image ,
16+ Show ,
1617} from "@chakra-ui/react" ;
1718
1819import authAPIClient from "../../APIClients/AuthAPIClient" ;
@@ -50,7 +51,7 @@ const Signup = (): React.ReactElement => {
5051 firstName ,
5152 lastName ,
5253 email ,
53- town ,
54+ town . toLowerCase ( ) ,
5455 password ,
5556 register ,
5657 ) ;
@@ -80,7 +81,7 @@ const Signup = (): React.ReactElement => {
8081 return (
8182 < Flex >
8283 < Center flex = "1" >
83- < VStack marginLeft = "30vh" marginRight = "30vh ">
84+ < VStack w = "40rem" maxW = "100vw" p = "0 1rem ">
8485 < Image
8586 height = "13vh"
8687 marginBottom = "2.5vh"
@@ -106,7 +107,7 @@ const Signup = (): React.ReactElement => {
106107 < Box display = "flex" >
107108 < Input
108109 ref = { nameRef }
109- autocomplete = "given-name"
110+ autoComplete = "given-name"
110111 type = "text"
111112 placeholder = "First"
112113 value = { firstName }
@@ -117,7 +118,7 @@ const Signup = (): React.ReactElement => {
117118 marginRight = "1vh"
118119 />
119120 < Input
120- autocomplete = "family-name"
121+ autoComplete = "family-name"
121122 type = "text"
122123 placeholder = "Last"
123124 value = { lastName }
@@ -134,7 +135,7 @@ const Signup = (): React.ReactElement => {
134135 </ FormLabel >
135136 < Input
136137 type = "email"
137- autocomplete = "email"
138+ autoComplete = "email"
138139 value = { email }
139140 placeholder = "you@rowanhouse.ca"
140141 onChange = { ( event : React . FormEvent < HTMLInputElement > ) =>
@@ -148,7 +149,7 @@ const Signup = (): React.ReactElement => {
148149 City/Town
149150 </ FormLabel >
150151 < Input
151- autocomplete = "address-level2"
152+ autoComplete = "address-level2"
152153 type = "text"
153154 value = { town }
154155 placeholder = "Shaughnessy"
@@ -168,7 +169,7 @@ const Signup = (): React.ReactElement => {
168169 < Input
169170 type = "password"
170171 value = { password }
171- placeholder = "ββββββββ "
172+ placeholder = "Password "
172173 onChange = { ( event : React . FormEvent < HTMLInputElement > ) =>
173174 setPassword ( event . currentTarget . value )
174175 }
@@ -185,7 +186,7 @@ const Signup = (): React.ReactElement => {
185186 < Input
186187 type = "password"
187188 value = { currentPassword }
188- placeholder = "ββββββββ "
189+ placeholder = "Rewrite your password "
189190 onChange = { ( event : React . FormEvent < HTMLInputElement > ) =>
190191 setCurrentPassword ( event . currentTarget . value )
191192 }
@@ -227,7 +228,9 @@ const Signup = (): React.ReactElement => {
227228 </ Box >
228229 </ VStack >
229230 </ Center >
230- < Image width = "50vw" objectFit = "cover" src = { BackgroundImage } />
231+ < Show above = "md" >
232+ < Image width = "50vw" h = "100vh" objectFit = "cover" src = { BackgroundImage } />
233+ </ Show >
231234 </ Flex >
232235 ) ;
233236} ;
0 commit comments