Skip to content

Commit

Permalink
Merge pull request #24 from techswitch-learners/mm-009-style-form
Browse files Browse the repository at this point in the history
Mm 009 style form
  • Loading branch information
natashabuckham committed Aug 1, 2024
2 parents 07f9e43 + 7cae3c7 commit 0e8e65c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/Home/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,23 @@
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}

.form {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

label {
margin: 10pix
}

input {
margin: 10px;
}

button {
margin: 10px;
}
2 changes: 1 addition & 1 deletion src/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function Home(props:HomeProps) {
<>
<main className="home-content" style={{ backgroundImage: `url(${homeBackgroundImage})` }}>
{/* Other components and content */}
<form onSubmit={handleSubmit}>
<form className="form" onSubmit={handleSubmit}>
<label>Enter name:
<input type="text"
value={props.username}
Expand Down

0 comments on commit 0e8e65c

Please sign in to comment.