Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue #284 - Subscribe button not centered properly fixed. #286

Merged
merged 1 commit into from
Jun 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
.newsletter__form__email__your_email {
border-radius: 999rem;
border: none;
margin: 0;
}

.newsletter__form__email__submit_btn {
border-radius: 999rem;
width: auto;
margin: 0;
}

.newsletter__form__email_copy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ const NewsLetter = () => {
return <p>Thanks for joining! You'll be updated!</p>;
}
return (
<section className="newsletter-section flex p-4 bg-primary">
<form onSubmit={handleSubmit} class="newsletter__form text-center">
<h2>Subscribe to Our Newsletter</h2>
<h4 class="mb-1">You won’t get dissapointed by us</h4>
<label for="mail"></label>
<div class="newsletter__form__email flex">
<input
type="email"
placeholder="Your Email"
name="mail"
required
class="newsletter__form__email__your_email"
/>
<ValidationError
prefix="Email"
field="email"
errors={state.errors}
/>
<input
type="submit"
value="Subscribe"
class="newsletter__form__email__submit_btn bg-primary"
disabled={state.submitting}
/>
</div>
{/*
<section className="newsletter-section flex p-4 bg-primary">
<form onSubmit={handleSubmit} class="newsletter__form text-center">
<h2>Subscribe to Our Newsletter</h2>
<h4 class="mb-1">You won’t get dissapointed by us</h4>

<div class="newsletter__form__email flex">
<input
type="email"
placeholder="Your Email"
name="mail"
required
class="newsletter__form__email__your_email"
/>
<ValidationError
prefix="Email"
field="email"
errors={state.errors}
/>
<input
type="submit"
value="Subscribe"
class="newsletter__form__email__submit_btn bg-primary"
disabled={state.submitting}
/>
</div>
{/*
<div class="newsletter__form__email_copy flex mt-1">
<label class="newsletter__form__email_copy__label">
<input
Expand All @@ -46,8 +46,8 @@ const NewsLetter = () => {
<span class="text-left">Email me a copy of my responses</span>
</div>
*/}
</form>
</section>
</form>
</section>
);
};

Expand Down