Skip to content

Commit 3965c1e

Browse files
committed
Sign up visual adjustments
1 parent d997199 commit 3965c1e

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

β€Žfrontend/src/components/auth/Login.tsxβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
VStack,
2121
Input,
2222
Center,
23+
Show,
2324
Spinner,
2425
Alert,
2526
AlertDescription,
@@ -406,7 +407,9 @@ const Login = (): React.ReactElement => {
406407
{getLoginForm(loginState)}
407408
</VStack>
408409
</Center>
409-
<Image maxH="100vh" w="50vw" objectFit="cover" src={BackgroundImage} />
410+
<Show above="md">
411+
<Image width="50vw" h="100vh" objectFit="cover" src={BackgroundImage} />
412+
</Show>
410413
</Flex>
411414
);
412415
};

β€Žfrontend/src/components/auth/Signup.tsxβ€Ž

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
Flex,
1414
VStack,
1515
Image,
16+
Show,
1617
} from "@chakra-ui/react";
1718

1819
import 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

Comments
Β (0)