Commit 859484c6 authored by Lowic Mangin's avatar Lowic Mangin

Style subscribe fields for MailChimp in footer

parent 824a65a7
......@@ -61,6 +61,39 @@ footer {
color: $secondary-blue;
}
}
#mc_embed_signup_scroll {
background: $primary-blue;
h3 {
margin: 1rem auto;
color: white;
}
.indicates-required {
display: none;
}
.mc-field-group {
display: flex;
justify-content: space-between;
width: 20rem;
margin: 0.5rem auto;
text-align: left;
label {
@extend %text-typo;
color: white;
}
input {
border: 0;
border-radius: 0.2rem;
}
}
#mc-embedded-subscribe {
@extend %cta-button;
margin: 1rem auto;
box-shadow: 0.1rem 0.1rem 0.3rem $dark-grey;
}
}
.social-networks a {
color: $primary-blue;
}
......
......@@ -55,40 +55,50 @@
<div class="mailing-registration">
<!-- 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://signons.us20.list-manage.com/subscribe/post?u=67490e833cd2c33ef2164f2ae&amp;id=6c0167e2a4" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<h2>Recevez les dernières nouvelles à propos du Référendum</h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Adresse email <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-F_LNAME">Nom et Prénom <span class="asterisk">*</span>
</label>
<input type="text" value="" name="F_LNAME" class="required" id="mce-F_LNAME">
</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_67490e833cd2c33ef2164f2ae_6c0167e2a4" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
<form action="https://signons.us20.list-manage.com/subscribe/post?u=67490e833cd2c33ef2164f2ae&amp;id=6c0167e2a4" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll">
<h3>Suivez l'actualité du Référendum</h3>
<div class="indicates-required"><span class="asterisk">*</span> indicates required
</div>
</form>
<div class="mc-field-group">
<label for="mce-EMAIL">Adresse email <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-F_LNAME">Nom et Prénom <span class="asterisk">*</span>
</label>
<input type="text" value="" name="F_LNAME" class="required" id="mce-F_LNAME">
</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_67490e833cd2c33ef2164f2ae_6c0167e2a4" 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]='F_LNAME';ftypes[1]='text'; /*
* Translated default messages for the $ validation plugin.
* Locale: FR
*/
$.extend($.validator.messages, {
* Translated default messages for the $ validation plugin.
* Locale: FR
*/
$.extend($.validator.messages, {
required: "Ce champ est requis.",
remote: "Veuillez remplir ce champ pour continuer.",
email: "Veuillez entrer une adresse email valide.",
......@@ -106,7 +116,8 @@
range: $.validator.format("Veuillez entrer une valeur entre {0} et {1}."),
max: $.validator.format("Veuillez entrer une valeur inférieure ou égale à {0}."),
min: $.validator.format("Veuillez entrer une valeur supérieure ou égale à {0}.")
});}(jQuery));var $mcj = jQuery.noConflict(true);</script>
});}(jQuery));var $mcj = jQuery.noConflict(true);
</script>
<!--End mc_embed_signup-->
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment