Skip to content

Commit

Permalink
add book cover to contents page
Browse files Browse the repository at this point in the history
  • Loading branch information
yuguang committed Nov 16, 2013
1 parent 3e49532 commit 0d78d39
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,28 @@ img.align-right {
float: right;
margin: 0 0 1em 1em;
}

img.align-left {
float: left;
margin: 0 1em 1em 0
}

img.align-center {
display: block;
margin-left: auto;
margin-right: auto
}

#book-info {
width: 80%;
margin-left: 2em;
margin-top: 3em;
margin-bottom: 1em;
-moz-column-count: 2; /* Firefox */
-webkit-column-count: 2; /* Safari and Chrome */
column-count: 2;
}

/* ==========================================================================
Helper classes
========================================================================== */
Expand Down
Binary file added static/img/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,20 @@
Wijmo is composed of over 40 user interface widgets ranging from form components to enterprise charts. All of the widgets come with themes. Not everything is perfect. Wijmo comes with its rough edges. In this book, I point out the pitfalls and guide you around them. The benefit of learning from this book is that you won't make the mistakes I've made. Learning Wijmo makes web development simpler, quicker, and more enjoyable.
{% endblock %}

{% load static from staticfiles %}
{% block content %}
<div itemscope itemtype="http://schema.org/Book" id="book-info">

<img itemprop="image" src="{% static 'img/cover.jpg' %}" alt="Building UIs with Wijmo book cover"/>
<ul>
<li><strong>Language</strong>: <span itemprop="inLanguage">English</span></li>
<li><strong><link itemprop="bookFormat" href="http://schema.org/Paperback">Paperback</strong>: <span itemprop="numberOfPages">116</span> pages [ 235mm × 191mm ]</li>
<li><strong>Release Date</strong>: <meta itemprop="datePublished" content="2013-09-26">September 2013</li>
<li><strong>ISBN</strong>: <span itemprop="isbn">1849696063</span></li>
<li><strong>ISBN 13</strong>: <span itemprop="isbn">9781849696067</span></li>
<li><strong>Publisher</strong>: <a itemprop="publisher" target="_blank" href="http://www.packtpub.com/building-user-interfaces-with-wijmo/book">PACKT Publishing</a></li>
</ul>
</div>
<ul id="tree">
<li>
<a>
Expand Down

0 comments on commit 0d78d39

Please sign in to comment.