Skip to content

Commit 72654fa

Browse files
Fixes #625, Improve styling of newsletter signup form on homepage and community-news page (#646)
1 parent d6e6a2f commit 72654fa

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

community-news.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@
1212
<section id="call-to-action">
1313
<div class="container">
1414
<div class="row justify-content-center">
15-
<div class="col-md-12" >
15+
<div class="col-md-8" >
1616
<h2 >NEWSLETTER</h2>
1717
<p>Subscribe to our newsletter to get the most up-to-date Sugar Labs news in your inbox.</p>
1818
<form action="https://buttondown.com/api/emails/embed-subscribe/sugarlabs" method="post" class="embeddable-buttondown-form">
1919
<p>Sign up for our mailing list to receive regular news and updates from Sugar Labs.</p>
20-
<label for="email">Email</label>
21-
<input type="email" name="email" placeholder="you@example.com" />
22-
<input type="hidden" value="1" name="embed" />
23-
<input type="submit" value="Subscribe" />
20+
<div class="d-flex align-items-center justify-content-center w-100">
21+
<label for="email" class="text-center my-3">Email</label>
22+
<input type="email" name="email" placeholder="you@example.com" class="form-control w-100 col-md-8 m-2" />
23+
<input type="hidden" value="1" name="embed" />
24+
</div>
25+
<input type="submit" value="Subscribe" class="btn btn-primary" />
2426
</form><br>
2527
</div>
2628
</div>

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,13 @@ <h2 >EXCITED?</h2>
105105
<form action="https://buttondown.com/api/emails/embed-subscribe/sugarlabs" method="post" class="embeddable-buttondown-form">
106106
<p>Sign up for our mailing list to receive regular
107107
news and updates from Sugar Labs.</p>
108-
<label for="email">Email</label>
109-
<input type="email" name="email" placeholder="you@example.com" />
110-
<input type="hidden" value="1" name="embed" />
111-
<input type="submit" value="Subscribe" />
112-
</form>
108+
<div class="d-flex align-items-center justify-content-center w-100">
109+
<label for="email" class="text-center my-3">Email</label>
110+
<input type="email" name="email" placeholder="you@example.com" class="form-control w-100 col-md-8 m-2" />
111+
<input type="hidden" value="1" name="embed" />
112+
</div>
113+
<input type="submit" value="Subscribe" class="btn btn-primary" />
114+
</form>
113115
<br>
114116
</div>
115117
</div>

0 commit comments

Comments
 (0)