Skip to content

Commit b27f9fa

Browse files
authored
Improve login UI (vercel#53)
* style: improve the login page UI This commit adjusts the padding in the Input element and reduces it across the board. We also no longer italicize the "Or" on the signin page between email login and social login. This fixes vercel#48 * fix: don't enable sign in button if email input still empty * fix: disable signup button until an email and password are present
1 parent 767eb93 commit b27f9fa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

components/ui/Input/Input.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.root {
2-
@apply bg-primary py-2 px-6 w-full appearance-none transition duration-150 ease-in-out pr-10 border border-accents-3 text-accents-6;
2+
@apply bg-primary py-2 px-3 w-full appearance-none transition duration-150 ease-in-out border border-accents-3 text-accents-6;
33
}
44

55
.root:focus {

pages/signin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const SignIn = () => {
111111
variant="slim"
112112
type="submit"
113113
loading={loading}
114-
disabled={!password.length}
114+
disabled={!password.length || !email.length}
115115
>
116116
Sign in
117117
</Button>
@@ -150,7 +150,7 @@ const SignIn = () => {
150150
className="border-t border-accents-2 flex-grow mr-3"
151151
aria-hidden="true"
152152
></div>
153-
<div className="text-accents-4 italic">Or</div>
153+
<div className="text-accents-4">Or</div>
154154
<div
155155
className="border-t border-accents-2 flex-grow ml-3"
156156
aria-hidden="true"

pages/signup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const SignUp = () => {
7878
variant="slim"
7979
type="submit"
8080
loading={loading}
81-
disabled={loading}
81+
disabled={loading || !email.length || !password.length}
8282
>
8383
Sign up
8484
</Button>

0 commit comments

Comments
 (0)