Skip to content

Commit 188d923

Browse files
author
Stuart Reilly
committed
Add mailing list signup without backend hookup
1 parent 4312ac6 commit 188d923

File tree

5 files changed

+36
-1
lines changed

5 files changed

+36
-1
lines changed

_includes/email_list.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<form class="email-list-form">
2+
<label>
3+
<b>Subscribe to our mailing list</b>
4+
<input type="email" placeholder="Email"/>
5+
</label>
6+
<button onclick="alert('TODO')">Subscribe</button>
7+
</form>

_includes/post_index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ <h1 class="sub-title">{{ categoryName }}</h1>
2727
<div class="side-lists cell large-3 large-offset-1 grid-padding-y grid-margin-y">
2828
{% include category_list.html selectedIndex=categoryIndex %}
2929
{% include author_list.html %}
30+
{% include email_list.html %}
3031
</div>
3132
</div>
3233
</div>

scss/_email-list.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
@import "colours";
2+
3+
.email-list-form {
4+
label {
5+
font-size: $baseFontSize;
6+
}
7+
8+
input {
9+
border-radius: 0.25rem;
10+
margin-top: 0.5rem;
11+
height: 3rem;
12+
padding: 1rem;
13+
14+
&::placeholder {
15+
font-style: italic;
16+
}
17+
}
18+
19+
button {
20+
appearance: auto;
21+
border: solid $teal;
22+
padding: 0.75rem;
23+
width: 100%;
24+
font-size: $baseFontSize * 0.9;
25+
}
26+
}

scss/style.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
@import "author";
1919
@import "author-list";
2020
@import "category-list";
21+
@import "email-list";
2122
@import "featured-posts";
2223
@import "post-index";
2324
@import "post-summary";

style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)