Skip to content

Commit 2809db8

Browse files
committed
fix: landing page mobile layout
1 parent ff77962 commit 2809db8

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

lib/controllers/Register.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ const Register = () => {
126126
value={email}
127127
type="email"
128128
placeholder="[email protected]"
129+
autoComplete="email-address"
129130
onChange={(e) => setEmail(e.target.value)}
130131
/>
131132
</FormControl>

lib/controllers/SignIn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const SignIn = () => {
117117
value={email}
118118
type="email"
119119
placeholder="[email protected]"
120+
autoComplete="email-address"
120121
onChange={(e) => setEmail(e.target.value)}
121122
/>
122123
</FormControl>

pages/auth/signin.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ const SignIn = () => {
2222

2323
return (
2424
<>
25-
<Box display="flex" p={6} alignItems="center" justifyContent="center" width="100%" height="100vh">
25+
<Box
26+
p={6} display="flex"
27+
flexDirection={{ xs: "column", sm: "column", md: "row" }}
28+
alignItems="center" justifyContent="center"
29+
width="100%" height={{ xs: "auto", sm: "auto", md: "100vh" }}
30+
>
2631
<Box display="flex" flexDirection="column" alignItems="center" justifyContent="center" width={{ xs: "100%", sm: "100%", md: "50%" }}>
2732
<Typography variant="h2" component="h1">Link Flow</Typography>
2833
<Typography variant="subtitle1">the power of one link</Typography>
@@ -53,7 +58,8 @@ const SignIn = () => {
5358
<Typography variant="body1">Beautiful link previews that you control. Built in SEO settings to customize the link title, description, and image.</Typography>
5459
</Box>
5560
</Box>
56-
<Box display="flex" flexDirection="column" alignItems="center" justifyContent="space-between" width={{ xs: "100%", sm: "100%", md: "50%" }}>
61+
<br />
62+
<Box my={2} display="flex" flexDirection="column" alignItems="center" justifyContent="space-between" width={{ xs: "100%", sm: "100%", md: "50%" }}>
5763
{showSignIn && <SignInController />}
5864
{!showSignIn && <RegisterController />}
5965
<Box m={2}>

0 commit comments

Comments
 (0)