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

Add newsletter signup for to documentation page #1098

Merged
merged 2 commits into from
Dec 3, 2017
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
166 changes: 166 additions & 0 deletions docs/_static/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,169 @@
.wy-side-nav-search {
background-color: #300a24;
}

#mc_embed_signup {
background: transparent;
font: 14px Helvetica,Arial,sans-serif;
}

/* MailChimp Form Embed Code - Classic - 12/17/2015 v10.7 */
#mc_embed_signup form {
display: block;
position: relative;
padding: 10px 0 10px 3%
}
#mc_embed_signup h2 {
font-weight: bold;
padding: 0;
margin: 15px 0;
font-size: 1.4em;
}
#mc_embed_signup input {
border: 1px solid #ABB0B2;
border-radius: 3px;
}
#mc_embed_signup input:focus {
border-color: #333;
}
#mc_embed_signup .button {
clear: both;
background-color: #aaa;
border: 0 none;
border-radius: 4px;
transition: all 0.23s ease-in-out 0s;
color: #FFFFFF;
cursor: pointer;
display: inline-block;
font-size: 15px;
font-weight: normal;
height: 32px;
line-height: 32px;
margin: 0 5px 10px 0;
padding: 0 22px;
text-align: center;
text-decoration: none;
vertical-align: top;
white-space: nowrap;
width: auto;
}
#mc_embed_signup .button:hover {
background-color: #777;
}
#mc_embed_signup .small-meta {
font-size: 11px;
}
#mc_embed_signup .nowrap {
white-space: nowrap;
}
#mc_embed_signup .mc-field-group {
clear: left;
position: relative;
width: 96%;
padding-bottom: 3%;
min-height: 50px;
}
#mc_embed_signup .mc-field-group label {
display: block;
margin-bottom: 3px;
}
#mc_embed_signup .mc-field-group input {
display: block;
width: 100%;
padding: 8px 0;
text-indent: 2%;
}
#mc_embed_signup .indicates-required {
text-align: right;
font-size: 11px;
margin-right: 4%;
}
#mc_embed_signup .asterisk {
color: #e85c41;
font-size: 150%;
font-weight: normal;
position: relative;
top: 5px;
}
#mc_embed_signup .clear {
clear: both;
}
#mc_embed_signup .mc-field-group.input-group ul {
margin: 0;
padding: 5px 0;
list-style: none;
}
#mc_embed_signup .mc-field-group.input-group ul li {
display: block;
padding: 3px 0;
margin: 0;
}
#mc_embed_signup .mc-field-group.input-group label {
display: inline;
}
#mc_embed_signup .mc-field-group.input-group input {
display: inline;
width: auto;
border: none;
}
#mc_embed_signup div#mce-responses {
float: left;
top: -1.4em;
padding: 0em .5em 0em .5em;
overflow: hidden;
width: 90%;
margin: 0 5%;
clear: both;
}
#mc_embed_signup div.response {
margin: 1em 0;
padding: 1em .5em .5em 0;
font-weight: bold;
float: left;
top: -1.5em;
z-index: 1;
width: 80%;
}
#mc_embed_signup #mce-error-response {
display: none;
}
#mc_embed_signup #mce-success-response {
color: #529214;
display: none;
}
#mc_embed_signup label.error {
display: block;
float: none;
width: auto;
margin-left: 1.05em;
text-align: left;
padding: .5em 0;
}

#mc-embedded-subscribe {
clear: both;
width: auto;
display: block;
margin: 1em 0 1em 5%;
}
#mc_embed_signup #num-subscribers {
font-size: 1.1em;
}
#mc_embed_signup #num-subscribers span {
padding: .5em;
border: 1px solid #ccc;
margin-right:.5em;
font-weight:bold;
}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
display: inline-block;
margin: 2px 0 1em 0;
padding: 5px 10px;
background-color: rgba(255,255,255,0.85);
border-radius: 3px; font-size:14px;
font-weight: normal; z-index:1; color:#e85c41;
}
#mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
border: 2px solid #e85c41;
}
37 changes: 37 additions & 0 deletions docs/_templates/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,45 @@
</a>
</td>
</tr>
<tr>
<td colspan="2">
<div id="mc_embed_signup">
<form action="//salvius.us15.list-manage.com/subscribe/post?u=580aa1ae653acac0a2d60dc17&amp;id=6ebc548663" 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 to the ChatterBot Newsletter</h2>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address </label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</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_580aa1ae653acac0a2d60dc17_6ebc548663" tabindex="-1" value=""></div>
<div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
</div>
</form>
</div>
</td>
</tr>
</tbody>
</table>
</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';
}(jQuery));
var $mcj = jQuery.noConflict(true);
</script>
{{ super() }}
{% endblock %}