Browse Source

Merge branch 'hotfix/subscribe' into develop

zhixin 6 years ago
parent
commit
6546c0edc0
2 changed files with 59 additions and 3 deletions
  1. 54 0
      site/_includes/subscribe.html
  2. 5 3
      site/index.html

+ 54 - 0
site/_includes/subscribe.html

@@ -0,0 +1,54 @@
+<!-- Begin Mailchimp Signup Form -->
+<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
+<style type="text/css">
+  #mc_embed_signup {
+    background: #fff;
+    clear: left;
+    font: 14px Helvetica, Arial, sans-serif;
+  }
+
+  /* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
+     We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
+</style>
+<div id="mc_embed_signup">
+  <form action="https://gmail.us20.list-manage.com/subscribe/post?u=f30f83799e58c38ca308f6b73&amp;id=4256ed0bdc"
+    method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank"
+    novalidate>
+    <div id="mc_embed_signup_scroll">
+      <h2>Subscribe News</h2>
+      <div class="mc-field-group">
+        <input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Email Address">
+      </div>
+      <div id="mce-responses" class="clear">
+        <div class="response" id="mce-error-response" style="display:none"></div>
+        <div class="response" id="mce-success-response" style="display:none"></div>
+      </div>
+      <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
+      <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text"
+          name="b_f30f83799e58c38ca308f6b73_4256ed0bdc" tabindex="-1" value=""></div>
+      <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"
+          class="button"></div>
+    </div>
+  </form>
+</div>
+<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
+<script type='text/javascript'>
+  (function ($) {
+    window.fnames = new Array();
+    window.ftypes = new Array();
+    fnames[0] = 'EMAIL';
+    ftypes[0] = 'email';
+    fnames[1] = 'FNAME';
+    ftypes[1] = 'text';
+    fnames[2] = 'LNAME';
+    ftypes[2] = 'text';
+    fnames[3] = 'ADDRESS';
+    ftypes[3] = 'address';
+    fnames[4] = 'PHONE';
+    ftypes[4] = 'phone';
+    fnames[5] = 'BIRTHDAY';
+    ftypes[5] = 'birthday';
+  }(jQuery));
+  var $mcj = jQuery.noConflict(true);
+</script>
+<!--End mc_embed_signup-->

+ 5 - 3
site/index.html

@@ -13,6 +13,8 @@ redirect_from:
     <div class="row align-items-center">
     <div class="row align-items-center">
       <div class="col-4 mx-auto col-md-4 order-md-2">
       <div class="col-4 mx-auto col-md-4 order-md-2">
         <img class="img-fluid mb-3 mb-md-0" src="favicon.png">
         <img class="img-fluid mb-3 mb-md-0" src="favicon.png">
+
+        {% include subscribe.html %}
       </div>
       </div>
       <div class="col-md-6 order-md-1 text-center text-md-left pr-md-5">
       <div class="col-md-6 order-md-1 text-center text-md-left pr-md-5">
         <h1 class="mb-3 bd-text-purple-bright">
         <h1 class="mb-3 bd-text-purple-bright">
@@ -38,12 +40,12 @@ redirect_from:
             </a>
             </a>
           </div>
           </div>
         </div>
         </div>
-        <p class="text-muted mb-0">
-            Currently{{ site.current_version }}
+        <p class="text-muted">
+          Currently{{ site.current_version }}
         </p>
         </p>
+        {% include ads.html %}
       </div>
       </div>
     </div>
     </div>
-    {% include ads.html %}
   </div>
   </div>
 </main>
 </main>