-
-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move
book-presenter
into a component
- Loading branch information
1 parent
79647a5
commit c51d055
Showing
5 changed files
with
52 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<div class="book-presenter"> | ||
<div class="cover"> | ||
<img src="{{ include.book.cover_image }}" /> | ||
</div> | ||
|
||
<div class="description"> | ||
<p> | ||
{{ include.book.description }} | ||
</p> | ||
|
||
<p>You can get it from these vendors:</p> | ||
|
||
{% for vendor in include.book.vendors %} | ||
<div class="link-item"> | ||
<a class="link-item__main" href="{{ vendor.url }}"> | ||
{% include icons/book.svg %} | ||
Buy on {{ vendor.name }} | ||
</a> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="details"> | ||
{{ include.book.details }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: Book Presenter | ||
type: components | ||
module: _includes/components/book-presenter.html | ||
|
||
book: | ||
cover_image: /assets/learning/crystal_programming.png | ||
description: | | ||
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quia quos autem | ||
veniam libero! Deleniti nemo quas optio voluptas voluptatibus sint ratione. | ||
Id vel error quia ipsam sit saepe hic at amet excepturi ea. | ||
details: | | ||
Voluptas sunt ratione consequatur optio porro eaque nam quod ex illum modi | ||
id animi fugiat vero explicabo illo officiis assumenda nulla rerum, | ||
dignissimos sed dicta pariatur quis eum. Beatae ea cumque alias ducimus quos | ||
maxime sed, modi illum at repellendus, ex deleniti nesciunt tempore placeat | ||
in accusantium! | ||
vendors: | ||
- url: https://www.amazon.com/Crystal-Programming-project-based-introduction-applications/dp/1801818673/ref=sr_1_2 | ||
name: Amazon | ||
- url: https://www.packtpub.com/product/crystal-programming/9781801818674 | ||
name: Packt | ||
--- | ||
{% include components/book-presenter.html book=page.book %} |