Skip to content

Commit 99b708d

Browse files
author
swyx
committed
css
1 parent fd03d4f commit 99b708d

File tree

2 files changed

+25
-20
lines changed

2 files changed

+25
-20
lines changed

src/App.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ pre {
3030
overflow-y: hidden;
3131
}
3232

33+
form {
34+
text-align: left;
35+
margin: 0 auto;
36+
display: 'inline-block';
37+
}
38+
form > div {
39+
margin-bottom: 1rem;
40+
}
41+
3342
nav {
3443
background: #ffe259; /* fallback for old browsers */
3544
background: -webkit-linear-gradient(

src/App.js

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,22 @@ function Login() {
4747
.catch(err => console.error(err) || setMsg('Error: ' + err.message));
4848
}}
4949
>
50-
<div
51-
style={{ textAlign: 'left', margin: '0 auto', display: 'inline-block' }}
52-
>
53-
<div>
54-
<label>
55-
Email:
56-
<input type="email" name="email" />
57-
</label>
58-
</div>
59-
<div>
60-
<label>
61-
Password:
62-
<input type="password" name="password" />
63-
</label>
64-
</div>
65-
<div>
66-
<input type="submit" value="Log in" />
67-
<button onClick={signup}>Sign Up </button>
68-
{msg && <pre>{msg}</pre>}
69-
</div>
50+
<div>
51+
<label>
52+
Email:
53+
<input type="email" name="email" />
54+
</label>
55+
</div>
56+
<div>
57+
<label>
58+
Password:
59+
<input type="password" name="password" />
60+
</label>
61+
</div>
62+
<div>
63+
<input type="submit" value="Log in" />
64+
<button onClick={signup}>Sign Up </button>
65+
{msg && <pre>{msg}</pre>}
7066
</div>
7167
</form>
7268
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy