Skip to content

Commit

Permalink
Adding OddNews sign up to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
sanajaved7 committed May 12, 2023
1 parent 9c1bb99 commit dd45956
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
29 changes: 28 additions & 1 deletion content/_includes/site/footer.njk
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,38 @@
{% endif %}

<footer role="contentinfo">
<!-- Begin Mailchimp Signup Form -->
<div class="oddnews-signup">
<form action="https://oddbird.us19.list-manage.com/subscribe/post?u=80219aa68d7bad77b9fd2eb93&amp;id=7c27f7fb9a&amp;f_id=000a9de4f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self">
<div id="mc_embed_signup_scroll">
<h3>OddNews Sign Up</h3>
<p>Get the latest news in your field — UX, CSS, JavaScript, and Python. <a href="https://us19.campaign-archive.com/home/?u=80219aa68d7bad77b9fd2eb93&id=7c27f7fb9a" title="See Archive">See Archive</a></p>
<div class="mc-field-group">
<label for="mce-EMAIL">Email
<span aria-hidden="true">*</span>
<span class="sr-only">required</span>
</label>
<input data-input="text email" type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" required >
<span id="mce-EMAIL-HELPERTEXT" class="helper_text"></span>
</div>
<div id="mce-responses" class="clear foot">
<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_80219aa68d7bad77b9fd2eb93_7c27f7fb9a" tabindex="-1" value=""></div>
<div class="optionalParent">
<div class="clear foot form-actions">
<button data-btn="submit" type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">Subscribe</button>
</div>
</div>
</div>
</form>
</div>
<!--End mc_embed_signup-->
<div class="colophon">
{% set colophon = collections.all | findPage('data.info_slug', 'colophon') %}
{{ colophon.templateContent | safe }}
</div>

<div class="legal">
{% set info = collections.all | findPage('data.info_slug', 'legal') %}
{{ info.templateContent | safe }}
Expand Down
13 changes: 11 additions & 2 deletions src/scss/layout/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $two-column: 45em;
display: grid;
font-size: var(--small);
grid-area: footer;
grid-gap: var(--gutter);
grid-gap: var(--page-margin);
padding: var(--gutter) var(--page-margin) var(--spacer);

@include config.above($two-column) {
Expand All @@ -27,7 +27,6 @@ $two-column: 45em;
display: grid;
grid-gap: var(--gutter);
grid-template-rows: 1fr auto;
padding-top: var(--gutter);

@include config.above($two-column) {
text-align: right;
Expand All @@ -48,3 +47,13 @@ $two-column: 45em;

font-size: var(--xsmall);
}

.oddnews-signup {
text-align: left;
background-color: var(--clip-bg, var(--callout));
padding: var(--gutter);

h3 {
margin-top: 0;
}
}

0 comments on commit dd45956

Please sign in to comment.