Skip to content

Commit 492f84f

Browse files
committed
Sign up visual adjustments
1 parent d997199 commit 492f84f

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
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: 8 additions & 5 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";
@@ -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"
@@ -153,7 +154,7 @@ const Signup = (): React.ReactElement => {
153154
value={town}
154155
placeholder="Shaughnessy"
155156
onChange={(event: React.FormEvent<HTMLInputElement>) =>
156-
setTown(event.currentTarget.value)
157+
setTown(event.currentTarget.value.toLowerCase())
157158
}
158159
marginBottom="2vh"
159160
/>
@@ -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)