@@ -33,7 +33,7 @@ export default function LoginForm({
3333 )
3434 .then((response) => {
3535 console.log(response);
36- // Mark the user as logged in? if in the correct mode.
36+ // Redirect the user back
3737 })
3838 .catch((error) => {
3939 console.log(error);
@@ -44,7 +44,7 @@ export default function LoginForm({
4444 return (
4545 <StyledLoginForm onSubmit={(e) => handleSubmit(e)}>
4646 <h1>{mode.charAt(0).toLocaleUpperCase() + mode.slice(1)}</h1>
47- <p>
47+ <StyledSmallText>
4848 Or{" "}
4949 {mode === "login" && (
5050 <a
@@ -69,7 +69,7 @@ export default function LoginForm({
6969 </a>
7070 )}{" "}
7171 instead.
72- </p>
72+ </StyledSmallText>
7373 <p>
7474 <label>Email:</label>
7575 </p>
@@ -96,13 +96,13 @@ export default function LoginForm({
9696 <label>Password:</label>
9797 </p>
9898 <StyledLoginFromInputs
99- type="text"
99+ type="password"
100100 onChange={(e) => setPassword(e.target.value)}
101101 value={password}
102102 />
103- <p>
104- <button onClick={(e) => handleSubmit(e)}>Submit</button>
105- </p>
103+ <StyledButtonContainer>
104+ <StyledButton onClick={(e) => handleSubmit(e)}>Submit</StyledButton>
105+ </StyledButtonContainer>
106106 </StyledLoginForm>
107107 );
108108 }
@@ -117,12 +117,35 @@ const StyledLoginForm = styled.form`
117117 `;
118118
119119 const StyledLoginFromInputs = styled.input`
120- padding: .25em 0;
120+ font-family: Consolas, 'Courier New', monospace;
121+ padding: .25em .25em .3em;
121122 margin: 0 0 1em 0;
122123 border: 1px solid #ddd;
123- border-radius: 2px;
124+ border-radius: 4px;
125+ width: 100%;
124126
125127 &:focus {
126128 outline: 0;
127129 }
128130 `;
131+
132+const StyledSmallText = styled.h3`
133+ color: #aaa;
134+ font-size: 12px;
135+ font-weight: 400;
136+ padding: .5em 0 1em;
137+`;
138+
139+const StyledButtonContainer = styled.div`
140+ display: flex;
141+ justify-content: end;
142+`;
143+
144+const StyledButton = styled.button`
145+ margin: 1em 0 0 0;
146+ padding: .25em .5em;
147+ border: 1px solid #ddd;
148+ border-radius: 4px;
149+ background-color: #111;
150+ color: #eee;
151+`;