-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding new OddNews signup page with OddNews archive, creating new mac…
…ro for OddNews signups
- Loading branch information
1 parent
f40aedf
commit c296d09
Showing
6 changed files
with
121 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{% | ||
macro oddnews_signup( | ||
heading=true, | ||
tag='footer' | ||
) | ||
%} | ||
<div class="oddnews-signup"> | ||
{% if heading %} | ||
<h3>OddNews Sign Up</h3> | ||
<p>Get the latest news in your field — UX, CSS, JavaScript, and Python. <a href="/oddnews" title="See Archive">See Archive</a></p> | ||
{% endif %} | ||
|
||
<form action="https://oddbird.us19.list-manage.com/subscribe/post?u=80219aa68d7bad77b9fd2eb93&id=7c27f7fb9a&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"> | ||
<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 hidden="true"><input type="hidden" name="tags" value={{ tag | oddNewsTags }}></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> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: OddNews | ||
sub: Because best practice is a conversation... | ||
banner: OddNews | ||
summary: | | ||
**Hi, OddFriends!** This is the newsletter for designers | ||
& developers who want to **get the latest news in your field** | ||
— UX Design, CSS, JavaScript or Python — and keep tabs on the full stack. | ||
--- | ||
|
||
{% import 'oddnews.macros.njk' as oddnews %} | ||
{% import 'embed.macros.njk' as embed %} | ||
{% import 'layout.macros.njk' as layout %} | ||
|
||
<div data-layout="oddnews-info"> | ||
{{ oddnews.oddnews_signup( | ||
heading=false, | ||
tag='oddnews') }} | ||
|
||
{%- set title = 'What to Expect' -%} | ||
{%- set contents -%} | ||
Here are a few examples of topics featured in past editions of OddNews. | ||
- **Bird of the Month** - Introduction to the oddest of birds | ||
- **CSS** - Miriam Suzanne's latest work in Container Queries | ||
- **Python** - How to Run Playwright Inside Docker | ||
- **Sass** - How to use the new `split()` function in Sass | ||
- **Custom App Development** - Web Apps vs. PWAs vs. Native | ||
- **UX Design** - How to conenct designers and developers with Object Oriented UX | ||
{%- endset -%} | ||
|
||
<aside data-layout="cta" class="has-angles" aria-labelledby="cta-title"> | ||
{% set callout_content %} | ||
<h2 id="cta-title">{{ title | mdInline | safe }}</h2> | ||
{{ contents | md | safe }} | ||
{% endset %} | ||
|
||
{{ embed.media_block( | ||
media=embed.screen( | ||
notch='5%', | ||
content=embed.img( | ||
src='writing/pexels-frank-cone.jpg', | ||
alt='An orange hummingbird flying in the air', | ||
sizes='media' | ||
) | ||
), | ||
content=callout_content | ||
) }} | ||
</aside> | ||
|
||
{{ layout.title('Latest News') }} | ||
<div class="oddnews-archive"> | ||
<script language="javascript" src="//oddbird.us19.list-manage.com/generate-js/?u=80219aa68d7bad77b9fd2eb93&fid=27537&show=10" type="text/javascript"></script> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.