on master help sign in
Merge pull request #110 from urbit/newsletter-fix

Newsletter subscribe form bug fix

commit18684d9f33fba9bdc128dba2b442a07d168bdffd authorMorgan Sutherland <msutherl@users.noreply.github.com> dateTue 28 May 2019, 11:39 (7 years ago) parent92c2b0dc49733d
4 files changed+16−9
content/docs+1−1 sass/_main.scss+5 templates/base.html+6 templates/partials/footer.html+4−8
content/docs+1−1

Submodule changed.

sass/_main.scss+5
@@ -449,3 +449,8 @@ textarea, input[type="text"], input[type="email"], input[type="number"] {
449449 border: 1px solid #2AA779;
450450 }
451451}
452+
453+#mc_embed_signup form {
454+ padding: 0;
455+ text-align: inherit;
456+}
templates/base.html+6
@@ -11,6 +11,12 @@
1111 <link rel="alternative" type="application/rss+xml" title="Urbit RSS" href="/rss.xml" />
1212 <title>{{ config.title }}</title>
1313 <!-- stylesheets -->
14+ <link href="//cdn-images.mailchimp.com/embedcode/horizontal-slim-10_7.css" rel="stylesheet" type="text/css">
15+ <style type="text/css">
16+ #mc_embed_signup{clear:left; width:100%;}
17+ /* Add your own MailChimp form style overrides in your site stylesheet or in this style block.
18+ We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
19+ </style>
1420 <link rel="stylesheet" href="{{ config.base_url }}/indigo.css">
1521 <link rel="stylesheet" href="{{ get_url(path="/styles.css", trailing_slash=true, cachebust=true) }}">
1622 <script async src="https://www.googletagmanager.com/gtag/js?id=UA-47054188-1"></script>
templates/partials/footer.html+4−8
@@ -1,11 +1,11 @@
11{% block content %}
22<footer class="footer">
3− <section class ="form mv20">
3+ <section class="form mv20">
44 <div id="mc_embed_signup">
55 <h2 class="mb2">Updates</h2>
66 <p>Every month we send an email with community events and what we're up to.</p>
77 <iframe name="nothing" style="display:none;"></iframe>
8− <form id="mc-embedded-subscribe-form" class="validate" action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2" method="post" name="mc-embedded-subscribe-form" target="nothing">
8+ <form action="https://urbit.us11.list-manage.com/subscribe/post?u=972a03db9e0c6c25bb58de8c8&amp;amp;id=be143888d2" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate form" target="_blank" novalidate>
99 <div class="input-group text-mono" id="mc_embed_signup_scroll">
1010 <div class="mc-field-group">
1111 <input class="required tlon-input mb2" type="email" name="EMAIL" id="mce-EMAIL" placeholder="your@email.com">
@@ -14,14 +14,10 @@
1414 <div id="mce-error-response" class="response" style="display:none"></div>
1515 <div id="mce-success-response" class="response" style="display:none"></div>
1616 </div>
17− <div style="position: absolute; left: -5000px;">
18− <input type="text" name="b_972a03db9e0c6c25bb58de8c8_be143888d2">
19− </div>
20− <div class="clear">
21− <button id="mc-embedded-subscribe" class="btn bg-black white h-font" type="submit" name="subscribe">
17+ <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_972a03db9e0c6c25bb58de8c8_be143888d2" tabindex="-1" value=""></div>
18+ <button id="mc-embedded-subscribe" class="btn bg-black white" type="submit" name="subscribe">
2219 <span class="text-500">Subscribe</span>
2320 </button>
24− </div>
2521 </div>
2622 </form>
2723 </div>