Skip to content

Commit cdbeff3

Browse files
committed
Add eBook to footer of each post
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 550798a commit cdbeff3

File tree

4 files changed

+50
-12
lines changed

4 files changed

+50
-12
lines changed

_includes/landing-page/landing-book.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ <h1 class="title is-size-4 is-size-3-desktop has-text-grey-darker">
77
Get Alex's new book: Serverless For Everyone Else
88
</h1>
99
<h1 class="title has-text-weight-light is-size-4 is-size-4-desktop has-text-grey">
10-
Alex's new eBook is the official handbook for faasd - the minimalist's approach to serverless functions. You'll learn how to setup your own server and start writing functions in Node.js.
10+
Alex's new eBook is the official handbook for faasd. You'll learn how to deploy open-source serverless and start writing functions and CRUD APIs in Node.js with Postgresql.
1111
</h1>
1212
</div>
1313
<a href="https://gumroad.com/l/serverless-for-everyone-else" target="_top" class="button is-primary is-large">

_layouts/page.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,22 @@ <h2 class="subtitle is-size-4">
1717
</section>
1818

1919
<section class="hero is-medium">
20-
<div class="hero-body">
20+
<div class="hero-body.hero-blog-content">
2121
<div class="container">
2222
{{ content }}
2323
</div>
2424
</div>
25-
</section>
25+
</section>
26+
27+
<section class="gumroad-cta">
28+
<h3 class="gumroad-cta-title">Checkout the new OpenFaaS new eBook and video workshop</h3>
29+
<a href="https://gumroad.com/l/serverless-for-everyone-else">
30+
<img src="https://static-2.gumroad.com/res/gumroad/2028406193591/asset_previews/714aad765f8246463fafb64fcd3be4ea/retina/104810333-b628f280-57eb-11eb-8be9-a2f6c773346b.png" alt="Serverless eBook cover">
31+
</a>
32+
<p>Learn how to deploy and run self-hosted, open-source serverless functions and automate your workflows with Node.js</p>
33+
<p>
34+
<a href="https://gumroad.com/l/serverless-for-everyone-else">Find out more on Gumroad</a>
35+
</p>
36+
</section>
37+
2638
</div>

_posts/2021-01-26-integrate-with-github-apps-and-faasd.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -309,14 +309,6 @@ You could develop a bot, an integration, a linter as a service, integrate a mach
309309

310310
Do you already have a preferred way to deploy and run HTTP servers which isn't faasd? We're OK with that and want you to know that what you learned here about inlets and GitHub Apps can apply whether you run with a Docker container or just deploy a binary directly to a server.
311311

312-
### Want to learn more about use-cases and faasd?
313-
314-
There is a new eBook and video workshop from Alex, the founder of OpenFaaS and faasd.
315-
316-
<blockquote class="twitter-tweet"><p lang="en" dir="ltr">I&#39;ve just published: &quot;Serverless for Everyone Else&quot; on <a href="https://twitter.com/gumroad?ref_src=twsrc%5Etfw">@gumroad</a> <br><br>Automate your workflow with the official guide to faasd - a minimalist&#39;s approach to severless functions.<a href="https://twitter.com/hashtag/serverless?src=hash&amp;ref_src=twsrc%5Etfw">#serverless</a> <a href="https://twitter.com/hashtag/faas?src=hash&amp;ref_src=twsrc%5Etfw">#faas</a> <a href="https://twitter.com/hashtag/ebook?src=hash&amp;ref_src=twsrc%5Etfw">#ebook</a> <a href="https://twitter.com/hashtag/learn?src=hash&amp;ref_src=twsrc%5Etfw">#learn</a> <a href="https://twitter.com/hashtag/nodejs?src=hash&amp;ref_src=twsrc%5Etfw">#nodejs</a> <a href="https://t.co/hGCbV8OTEj">https://t.co/hGCbV8OTEj</a></p>&mdash; Alex Ellis (@alexellisuk) <a href="https://twitter.com/alexellisuk/status/1350079792612339715?ref_src=twsrc%5Etfw">January 15, 2021</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
317-
318-
If you get a copy before the end of January on the DevOps PRO tier, you'll get the eBook, a Grafana dashboard and a free upgrade to the 50 minute video workshop.
319-
320312
# References
321313

322314
Other GitHub Apps:

_sass/openfaas/includes/blog-page/post-page.scss

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,16 @@
2929
background: rgba(58, 95, 233, 0.65);
3030
}
3131

32+
3233
.hero-body {
3334
.title,
3435
.subtitle {
3536
color: white;
3637
}
38+
39+
.hero-blog-content {
40+
padding-bottom: 0rem;
41+
}
3742
}
3843
}
3944

@@ -95,7 +100,35 @@
95100
margin: 0 auto;
96101
margin-top: $padding-step!important;
97102
margin-bottom: $padding-step!important;
98-
}
103+
}
104+
105+
.gumroad-cta {
106+
position: relative;
107+
width: 80%;
108+
max-width: 710px;
109+
border: #e7eef2 1px solid;
110+
padding: 3rem;
111+
margin-top: 3rem;
112+
text-align: center;
113+
background: #f5f8fa;
114+
border-radius: 5px;
115+
margin-right: auto;
116+
margin-left: auto;
117+
margin-bottom: 3rem;
118+
119+
.gumroad-cta-title {
120+
margin-bottom: 0;
121+
font-size: 1.5rem;
122+
line-height: 1.15em;
123+
margin: 0 0 0.4em 0;
124+
font-family: "Open Sans", sans-serif;
125+
text-rendering: geometricPrecision;
126+
}
127+
128+
img {
129+
width: 80%; display: block; margin-left: auto; margin-right: auto; margin-top: 20px; margin-bottom: 20px;
130+
}
131+
}
99132
}
100133

101134
@media(max-width: $tablet) {
@@ -109,3 +142,4 @@
109142
}
110143
}
111144
}
145+

0 commit comments

Comments
 (0)