diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-01-27 16:19:22 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-01-27 16:19:22 +0000 |
commit | b420d8b66ef271147cbcf83a003bb76b0eb61a0e (patch) | |
tree | fdc62164eac0963305a8bb29abd4d9a2d2fadb96 | |
parent | 9cad19f528f2ca844ba66383bb2eb6cb5c2994d3 (diff) | |
download | Nim-b420d8b66ef271147cbcf83a003bb76b0eb61a0e.tar.gz |
Added Nim in Action news.
-rw-r--r-- | tools/website.tmpl | 10 | ||||
-rw-r--r-- | web/assets/style.css | 10 | ||||
-rw-r--r-- | web/learn.txt | 14 | ||||
-rw-r--r-- | web/news.txt | 30 | ||||
-rw-r--r-- | web/ticker.txt | 5 |
5 files changed, 63 insertions, 6 deletions
diff --git a/tools/website.tmpl b/tools/website.tmpl index d2fcb0afd..50152a051 100644 --- a/tools/website.tmpl +++ b/tools/website.tmpl @@ -49,7 +49,12 @@ # if currentTab == "index": <div id="slideshow"> <!-- slides --> - <div id="slide0" class="active codeslide2"> + <div id="slide0" class="active niaslide"> + <a href="news.html#Z2016-01-27-nim-in-action-is-now-available"> + <img src="assets/niminaction/banner.jpg" alt="New in Manning Early Access Program: Nim in Action!"/> + </a> + </div> + <div id="slide1" class="codeslide2"> <div> <h2>Nim is simple..</h2> <pre> @@ -83,7 +88,7 @@ p.greet() <span class="cmt"># or greet(p)</span> </pre> </div> </div> - <div id="slide1" class="codeslide3"> + <div id="slide2" class="codeslide3"> <div> <h2>C FFI is easy in Nim..</h2> <pre> @@ -119,6 +124,7 @@ runForever() <div id="slideshow-nav"> <div id="slideControl0" onclick="slideshow_click(0)" class="active"></div> <div id="slideControl1" onclick="slideshow_click(1)"></div> + <div id="slideControl2" onclick="slideshow_click(2)"></div> </div> # end <aside id="sidebar"> diff --git a/web/assets/style.css b/web/assets/style.css index 15886ae2e..529358ec9 100644 --- a/web/assets/style.css +++ b/web/assets/style.css @@ -130,10 +130,12 @@ pre .end { background:url("images/tabEnd.png") no-repeat left bottom; } #slideshow-nav > div:hover { background-image:url("images/slideshow-nav_active.png"); opacity:0.5; } #slideshow-nav > div.active { background-image:url("images/slideshow-nav_active.png"); opacity:1; } - .zeoslide img { - box-shadow: 1px 2px 16px rgba(28, 180, 236, 0.4); - width: 705px; - } + .niaslide a img { + width: 542px; + box-shadow: 1px 2px 16px rgba(28, 180, 236, 0.4); + margin-left: 4em; + margin-top: -1em; + } .codeslide1 { float:left; width:680px; font:10pt monospace; } .codeslide1 > div:first-child { margin:0 40px 0 0; } diff --git a/web/learn.txt b/web/learn.txt index 987666f8e..c0b583429 100644 --- a/web/learn.txt +++ b/web/learn.txt @@ -17,6 +17,20 @@ Learning Nim .. container:: standout + Books + --------- + + .. container:: books + + - | `Nim in Action <https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81>`_ + | *Nim in Action* teaches + you all you need to know to begin writing powerful, portable + and efficient applications in Nim. It includes a handful of practical + and fun hands-on examples which teach you Nim. + + +.. container:: standout + Examples -------- diff --git a/web/news.txt b/web/news.txt index 61a74127f..ddb8da042 100644 --- a/web/news.txt +++ b/web/news.txt @@ -2,6 +2,36 @@ News ==== +2016-01-27 Nim in Action is now available! +========================================== + +.. raw::html + + <a href="https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81"> + <img src="assets/niminaction/banner.jpg" alt="New in Manning Early Access Program: Nim in Action!" width="682"/> + </a> + + +We are proud to announce that *Nim in Action*, a book about the Nim programming +language, is now available! + +The book is available at this URL: +`https://www.manning.com/books/nim-in-action <https://manning.com/books/nim-in-action?a_aid=niminaction&a_bid=78a27e81>`_ + +The first three chapters are available for download +as an eBook through Manning's Early Access program. You can download a free +sample of the book containing the first chapter as well! + +*Nim in Action* is currently being written and is expected to be completed by +Summer 2016. If you purchase the eBook you will start receiving new chapters +as they become available. You can also purchase the printed book together with +the eBook for a slightly higher price. + +If you do read the book, even if it's just the first chapter, then please share +any comments, suggestions and questions on the +`Nim forum <http://forum.nim-lang.org/t/1978>`_ or in +Manning's own `Author Online forum! <https://forums.manning.com/forums/nim-in-action>`_ + 2016-01-18 Version 0.13.0 released ================================== diff --git a/web/ticker.txt b/web/ticker.txt index 1f9bd3e97..7e917e0f2 100644 --- a/web/ticker.txt +++ b/web/ticker.txt @@ -1,3 +1,8 @@ +<a class="news" href="news.html#Z2016-01-27-nim-in-action-is-now-available"> + <h4>January 27, 2016</h4> + <p>Nim in Action is now available!</p> +</a> + <a class="news" href="news.html#Z2016-01-18-version-0-13-0-released"> <h4>January 18, 2016</h4> <p>Nim version 0.13.0 has been released!</p> |