mirror of
https://github.com/AmanTahiliani/PeerNotes.git
synced 2026-08-07 11:55:12 -04:00
fix styling on login + signup page
This commit is contained in:
@@ -3,15 +3,17 @@ import "../styles/Login.css"
|
||||
export default function Login() {
|
||||
return (
|
||||
<main>
|
||||
<form>
|
||||
<form className="login-container">
|
||||
<h1>Login</h1>
|
||||
<div className="form-inputs">
|
||||
<div className="form-input">
|
||||
<label htmlFor="username">Username</label>
|
||||
<input type="text" name="username" id="username" />
|
||||
</div>
|
||||
<div className="form-input">
|
||||
<label htmlFor="password">Password</label>
|
||||
<input type="password" name="password" id="password" />
|
||||
</div>
|
||||
<button>Login</button>
|
||||
<button className="submit-button">Login</button>
|
||||
<p>or <Link to="/signup">Sign up</Link></p>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
@@ -3,15 +3,17 @@ import "../styles/Login.css"
|
||||
export default function Signup() {
|
||||
return (
|
||||
<main>
|
||||
<form>
|
||||
<form className="login-container">
|
||||
<h1>Sign Up</h1>
|
||||
<div className="form-inputs">
|
||||
<div className="form-input">
|
||||
<label htmlFor="username">Username</label>
|
||||
<input type="text" name="username" id="username" />
|
||||
</div>
|
||||
<div className="form-input">
|
||||
<label htmlFor="password">Password</label>
|
||||
<input type="password" name="password" id="password" />
|
||||
</div>
|
||||
<button>Sign up</button>
|
||||
</div>
|
||||
<button className="submit-button">Sign up</button>
|
||||
<p>or <Link to="/login">Login</Link></p>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
@@ -14,7 +14,29 @@ h1 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.form-inputs {
|
||||
.form-input {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.login-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #B1D4E0;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* shadow */;
|
||||
width: 40vh;
|
||||
}
|
||||
|
||||
.submit-button {
|
||||
padding: 8px 16px;
|
||||
margin-top: 20px; /* Adds space above the button */
|
||||
background-color: #2E8BC0; /* Example background color */
|
||||
color: white; /* Text color */
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
|
||||
}
|
||||
Reference in New Issue
Block a user