0c7c49588b
Updates `with-react-hook-form` example by bumping react-hook-form and other dependencies to their latest versions, along with a minor cleanup of the UI. --------- Co-authored-by: Sam Ko <sam@vercel.com>
93 lines
1.4 KiB
CSS
93 lines
1.4 KiB
CSS
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
font-family: "Roboto", sans-serif;
|
|
}
|
|
|
|
.greeting {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.form {
|
|
background-color: #fff;
|
|
padding: 2rem;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
max-width: 400px;
|
|
width: 100%;
|
|
}
|
|
|
|
.header {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.field {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.field label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: #333;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.input {
|
|
width: 100%;
|
|
padding: 0.8rem;
|
|
font-size: 1rem;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
}
|
|
|
|
.errorInput {
|
|
border-color: #e53e3e;
|
|
}
|
|
|
|
.errorMessage {
|
|
color: #e53e3e;
|
|
font-size: 0.8rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.rememberMe {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.rememberMe label {
|
|
font-size: 0.9rem;
|
|
color: #333;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.submitButton {
|
|
width: 100%;
|
|
padding: 0.8rem;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #fff;
|
|
background-color: #007bff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.submitButton:hover {
|
|
background-color: #0056b3;
|
|
}
|