Skip to content

Commit

Permalink
form
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinestrella committed Mar 26, 2024
1 parent eec8abe commit eea3a67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/components/KidsWelcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,22 @@ function KidsWelcome({ kidName, handleKidAge, kidAge }) {
return (
<>
<div className="generalContainer">
<div>
<h3>Hello!!</h3>
<p>{kidName}</p>

<p>How old are you?</p>
<h3>Hello!!</h3>
<p>
<strong>{kidName}</strong>
</p>
<form className="login__form">
<label>How old are you?</label>
<input
minLength={1}
maxLength={2}
type="number"
placeholder="5"
value={kidAge}
onChange={handleChange}
required
/>
</div>
</form>
</div>
</>
);
Expand Down
3 changes: 2 additions & 1 deletion src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Login({ kidName, handleKidName }) {
<label htmlFor="email">Email</label>
<input
id="email"
type="text"
type="email"
name="email"
placeholder="[email protected]"
required
Expand All @@ -32,6 +32,7 @@ function Login({ kidName, handleKidName }) {
handleKidName(ev.target.value);
}}
/>
<input type="reset" value="Clean" />
</form>
</div>
);
Expand Down

0 comments on commit eea3a67

Please sign in to comment.