Skip to content

Commit

Permalink
Move sign-up form to index page.
Browse files Browse the repository at this point in the history
  • Loading branch information
munificent committed Jul 27, 2021
1 parent 22812f5 commit a00eaf1
Show file tree
Hide file tree
Showing 45 changed files with 60 additions and 898 deletions.
38 changes: 11 additions & 27 deletions asset/mustache/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ <h3>PDF</h3>
<h3>Web</h3>
<p>Meticulous responsive design looks great from your desktop down to your
phone. Every chapter, aside, and illustration is there. Read the whole book
for free.</p>
for free. Really.</p>
<a class="action" href="contents.html">Read Now</a>
</div>
</div>
Expand All @@ -171,43 +171,27 @@ <h3>About Robert Nystrom</h3>
Patterns</a></em> based on what I learned there. You can read that book for free
too.</p>

<p>If you want to get in touch, you can email me at <code>bob</code> at this
site's domain or find me (<a href="https://twitter.com/intent/user?screen_name=munificentbob"
target="_blank"><code>@munificentbob</code></a>) on twitter. If you can&#8217;t
get enough of my writing, I also have <a
href="http://journal.stuffwithstuff.com/" target="_blank">a blog</a>. If you
like the book, you&#8217;ll probably like it too.</p>

</div>

<!--
<p class="center">
<a class="button" href="dedication.html">Start Reading!</a>
</p>
<h2>I Want to Hold the Book in My Hands</h2>
<p>Call me old-fashioned, but the word &ldquo;book&rdquo; to me still implies
ink and flattened rectangles of wood pulp. This book is not quite there yet. The
chapters are written, but I am still designing the print edition. If you want to
know when that&#8217;s ready, have I got the mailing list for you:</p>
<p>If you want more, you can find me on Twitter (<a
href="https://twitter.com/intent/user?screen_name=munificentbob"
target="_blank"><code>@munificentbob</code></a>), email me at <code>bob</code>
at this site's domain (though I am slow to respond), read <a
href="http://journal.stuffwithstuff.com/" target="_blank">my blog</a>, or join
my low frequency mailing list:</p>

<div class="sign-up">
< !-- Begin MailChimp Signup Form - ->
<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
< !-- real people should not fill this in and expect good things - do not remove this or risk form bot signups - ->
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
< !--End mc_embed_signup - ->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
<!--End mc_embed_signup -->
</div>

-->
</div>

<footer>
Handcrafted by Robert Nystrom&ensp;&mdash;&ensp;<a href="https://github.com/munificent/craftinginterpreters/blob/master/LICENSE" target="_blank">&copy; 2015&hairsp;&ndash;&hairsp;2021</a>
Expand Down
18 changes: 0 additions & 18 deletions asset/mustache/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@ <h1>{{ title }}</h1>
<h1 class="part">{{ title }}</h1>
{{/ is_chapter }}

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

{{{ body }}}
<footer>
{{# has_next }}
Expand Down
60 changes: 14 additions & 46 deletions asset/sass/sign-up.scss
Original file line number Diff line number Diff line change
@@ -1,60 +1,22 @@
.sign-up {
position: relative;
padding: 12px;
margin-bottom: 48px;
margin: 24px 0 24px 0;
background: hsl(40, 80%, 95%);
color: hsl(40, 50%, 50%);
border: solid 4px hsl(40, 85%, 85%);
border-radius: 3px;

h1 {
margin: 0;
padding: 0;
font: bold 18px/18px $nav;
}

p {
margin: 12px 0;
font: 15px/24px $nav;
}

p.small {
margin: 15px 0 4px 0;
font: 14px/18px $nav;
color: hsl(40, 50%, 70%);
}

a {
color: hsl(40, 100%, 50%);
}

a:hover {
color: hsl(40, 100%, 40%);
border-color: hsl(40, 90%, 80%);
}

.dismiss {
position: absolute;
// Float over header.
z-index: 2;
right: 4px;
top: 0;
font: bold 24px $nav;
padding: 4px 8px;
cursor: pointer;
}

.dismiss:hover {
color: hsl(40, 100%, 50%);
form {
display: flex;
}

input {
display: table-cell;
padding: 4px;
font: 16px $nav;
outline: none;
border-radius: 6px;
border-radius: 3px;
border: solid 2px hsl(40, 100%, 75%);
color: hsl(40, 70%, 30%);
height: 32px;
}

input.email {
Expand All @@ -64,13 +26,19 @@
}

input.button {
float: right;
margin: 10px 0 10px 5px;
margin-left: 8px;
padding: 4px 8px;
font: 600 13px $nav;
text-transform: uppercase;
letter-spacing: 1px;
background: hsl(40, 100%, 60%);
border: none;

transition: background-color 0.2s ease;
}

input.button:hover {
background: hsl(40, 100%, 75%);
}

input:focus {
Expand Down
18 changes: 0 additions & 18 deletions site/a-bytecode-virtual-machine.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,24 +112,6 @@ <h2><small>III</small>A Bytecode Virtual Machine</h2>
<div class="number">III</div>
<h1 class="part">A Bytecode Virtual Machine</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>Our Java interpreter, jlox, taught us many of the fundamentals of programming
languages, but we still have much to learn. First, if you run any interesting
Lox programs in jlox, you&rsquo;ll discover it&rsquo;s achingly slow. The style of
Expand Down
18 changes: 0 additions & 18 deletions site/a-map-of-the-territory.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ <h3><a href="#top">A Map of the Territory<small>2</small></a></h3>
<div class="number">2</div>
<h1>A Map of the Territory</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<blockquote>
<p>You must have a map, no matter how rough. Otherwise you wander all over the
place. In <em>The Lord of the Rings</em> I never made anyone go farther than he could
Expand Down
18 changes: 0 additions & 18 deletions site/a-tree-walk-interpreter.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,24 +98,6 @@ <h2><small>II</small>A Tree-Walk Interpreter</h2>
<div class="number">II</div>
<h1 class="part">A Tree-Walk Interpreter</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>With this part, we begin jlox, the first of our two interpreters. Programming
languages are a huge topic with piles of concepts and terminology to cram into
your brain all at once. Programming language theory requires a level of mental
Expand Down
18 changes: 0 additions & 18 deletions site/a-virtual-machine.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,6 @@ <h3><a href="#top">A Virtual Machine<small>15</small></a></h3>
<div class="number">15</div>
<h1>A Virtual Machine</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<blockquote>
<p>Magicians protect their secrets not because the secrets are large and
important, but because they are so small and trivial. The wonderful effects
Expand Down
18 changes: 0 additions & 18 deletions site/acknowledgements.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,24 +71,6 @@ <h2><small></small>Acknowledgements</h2>

<h1 class="part">Acknowledgements</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>When the first copy of &ldquo;<a href="https://gameprogrammingpatterns.com/">Game Programming Patterns</a>&rdquo; sold, I guess I had
the right to call myself an author. But it took time to feel comfortable with
that label. Thank you to everyone who bought copies of my first book, and to the
Expand Down
18 changes: 0 additions & 18 deletions site/appendix-i.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,24 +82,6 @@ <h3><a href="#top">Appendix I<small>A1</small></a></h3>
<div class="number">A1</div>
<h1>Appendix I</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>Here is a complete grammar for Lox. The chapters that introduce each part of the
language include the grammar rules there, but this collects them all into one
place.</p>
Expand Down
18 changes: 0 additions & 18 deletions site/appendix-ii.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,24 +79,6 @@ <h3><a href="#top">Appendix II<small>A2</small></a></h3>
<div class="number">A2</div>
<h1>Appendix II</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>For your edification, here is the code produced by <a href="representing-code.html#metaprogramming-the-trees">the little script
we built</a> to automate generating the syntax tree classes for jlox.</p>
<h2><a href="#expressions" id="expressions"><small>A2&#8202;.&#8202;1</small>Expressions</a></h2>
Expand Down
18 changes: 0 additions & 18 deletions site/backmatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,6 @@ <h2><small></small>Backmatter</h2>

<h1 class="part">Backmatter</h1>

<div class="sign-up closable">
<h1>This book is a work in progress!</h1>
<span class="dismiss">&times;</span>
<p>If you see a mistake, find something unclear, or have a suggestion, please <a href="https://github.com/munificent/craftinginterpreters/issues" target="_blank">let me know</a>. To follow its progress, please join the mailing list:</p>

<!-- Begin MailChimp Signup Form -->
<div id="mc_embed_signup">
<form action="//gameprogrammingpatterns.us7.list-manage.com/subscribe/post?u=0952ca43ed2536d6717766b88&amp;id=6e96334109" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="Your email address" required>
<!-- 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_0952ca43ed2536d6717766b88_6e96334109" tabindex="-1" value=""></div>
<input type="submit" value="Sign me up!" name="subscribe" id="mc-embedded-subscribe" class="button">
</form>
</div>
<!--End mc_embed_signup-->
<p class="small">(I post about once a month. Don&#8217;t worry, I won&#8217;t spam you.)</p>
</div>

<p>You&rsquo;ve reached the end of the book! There are two pieces of supplementary
material you may find helpful:</p>
<ul>
Expand Down
Loading

0 comments on commit a00eaf1

Please sign in to comment.