Skip to content

Commit

Permalink
Tweaked books section.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Nov 25, 2023
1 parent fa4370e commit 580fcf2
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 96 deletions.
70 changes: 28 additions & 42 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,48 +505,6 @@ description = '''Build a text-based adventure game in LFE!
link_text = "Read Now"
link_url = "https://lfe.io/books/casting-spels/"

[extra.books.quick_start]

title = "LFE Quick-Start"
authors = "Duncan McGreggor"
cover = '''
[img-src]: https://lfe.io/books/rebar3-quick-start/images/cover.jpg
[img-link]: https://lfe.io/books/rebar3-quick-start/
[![casting-spels][img-src]][img-link]
'''
description = '''Get started with LFE using the `rebar3_lfe` project tooling plugin
'''
link_text = "Read Now"
link_url = "https://lfe.io/books/rebar3-quick-start/"

[extra.books.rebar3]

title = "`rebar3_lfe` Command Reference"
authors = "Duncan McGreggor"
cover = '''
[img-src]: https://lfe.io/reference/lfe-rebar3/current/images/cover.jpg
[img-link]: https://lfe.io/reference/lfe-rebar3/
[![rebar3_lfe command reference][img-src]][img-link]
'''
description = '''A helpful source of information for those who would like to take more advantage of the features provided by the `rebar3_lfe` plugin.
'''
link_text = "Read Now"
link_url = "https://lfe.io/reference/lfe-rebar3/"

[extra.books.styleguide]

title = "The LFE Style Guide"
authors = "Duncan McGreggor"
cover = '''
[img-src]: https://lfe.io/books/style-guide/images/cover.jpg
[img-link]: https://lfe.io/books/style-guide/
[![The LFE Style Guide][img-src]][img-link]
'''
description = '''Guidelines assembled from the Erlang and Lisp communities
'''
link_text = "Read Now"
link_url = "https://lfe.io/books/style-guide/"

[extra.books.sicp]

title = "SICP: The LFE Edition"
Expand Down Expand Up @@ -576,6 +534,34 @@ description = '''A work in progress, this book aims to eventually be the complet
link_text = "Read Now"
link_url = "https://cnbbooks.github.io/lfe-manual/current/"

[extra.books.quick_start]

title = "LFE Quick-Start"
authors = "Duncan McGreggor"
cover = '''
[img-src]: https://lfe.io/books/rebar3-quick-start/images/cover.jpg
[img-link]: https://lfe.io/books/rebar3-quick-start/
[![casting-spels][img-src]][img-link]
'''
description = '''Get started with LFE using the `rebar3_lfe` project tooling plugin
'''
link_text = "Read Now"
link_url = "https://lfe.io/books/rebar3-quick-start/"

[extra.books.rebar3]

title = "`rebar3_lfe` Command Reference"
authors = "Duncan McGreggor"
cover = '''
[img-src]: https://lfe.io/reference/lfe-rebar3/current/images/cover.jpg
[img-link]: https://lfe.io/reference/lfe-rebar3/
[![rebar3_lfe command reference][img-src]][img-link]
'''
description = '''A helpful source of information for those who would like to take more advantage of the features provided by the `rebar3_lfe` plugin.
'''
link_text = "Read Now"
link_url = "https://lfe.io/reference/lfe-rebar3/"

### Select Videos Section #################################

[extra.videos]
Expand Down
70 changes: 20 additions & 50 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -916,53 +916,23 @@ <h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:tex
<div
class="group flex flex-col h-full bg-white border border-gray-200 shadow-sm rounded-md dark:bg-slate-900 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div class="h-108 flex flex-col justify-center items-center bg-blue-600 rounded-t-md">
<a href="https://lfe.io/books/tutorial/"><img src="https://cnbbooks.github.io/lfe-tutorial/images/cover.jpg" alt="lfe-tutorial" /></a>
</div>
<div class="p-4 md:p-6">
<span class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500">
Robert Virding &amp; Duncan McGreggor
</span>
<h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:text-white">
The LFE Tutorial
</h3>
<p class="mt-3 text-gray-500">
An LFE version of the classic 'Erlang Tutorial'
</p>
</div>
<div
class="mt-auto flex border-t border-gray-200 divide-x divide-gray-200 dark:border-gray-700 dark:divide-gray-700">
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-bl-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https://lfe.io/books/tutorial/">
Read Now
</a>
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-br-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https:&#x2F;&#x2F;lfe.io&#x2F;books&#x2F;">
View all books
</a>
</div>
</div>
<!-- End Card -->

<div
class="group flex flex-col h-full bg-white border border-gray-200 shadow-sm rounded-md dark:bg-slate-900 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div class="h-108 flex flex-col justify-center items-center bg-blue-600 rounded-t-md">
<a href="https://lfe.io/reference/lfe-rebar3/"><img src="https://lfe.io/reference/lfe-rebar3/current/images/cover.jpg" alt="rebar3_lfe command reference" /></a>
<a href="https://lfe.io/books/sicp/"><img src="https://lfe.io/books/sicp/images/cover.jpg" alt="sicp" /></a>
</div>
<div class="p-4 md:p-6">
<span class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500">
Duncan McGreggor
Gerald Sussman, Harold Abelson, &amp; Duncan McGreggor
</span>
<h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:text-white">
<code>rebar3_lfe</code> Command Reference
SICP: The LFE Edition
</h3>
<p class="mt-3 text-gray-500">
A helpful source of information for those who would like to take more advantage of the features provided by the <code>rebar3_lfe</code> plugin.
An LFE 'port' of the classic Scheme text<br/><br/>Note that, while the first section of the book is complete, the remaining sections have not been completed
</p>
</div>
<div
class="mt-auto flex border-t border-gray-200 divide-x divide-gray-200 dark:border-gray-700 dark:divide-gray-700">
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-bl-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https://lfe.io/reference/lfe-rebar3/">
href="https://lfe.io/books/sicp/">
Read Now
</a>
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-br-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
Expand All @@ -976,23 +946,23 @@ <h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:tex
<div
class="group flex flex-col h-full bg-white border border-gray-200 shadow-sm rounded-md dark:bg-slate-900 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div class="h-108 flex flex-col justify-center items-center bg-blue-600 rounded-t-md">
<a href="https://lfe.io/books/style-guide/"><img src="https://lfe.io/books/style-guide/images/cover.jpg" alt="The LFE Style Guide" /></a>
<a href="https://lfe.io/books/chinenual/"><img src="https://cnbbooks.github.io/lfe-manual/images/cover.jpg" alt="sicp" /></a>
</div>
<div class="p-4 md:p-6">
<span class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500">
Duncan McGreggor
Duncan McGreggor &amp; Robert Virding
</span>
<h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:text-white">
The LFE Style Guide
LFE Chineual
</h3>
<p class="mt-3 text-gray-500">
Guidelines assembled from the Erlang and Lisp communities
A work in progress, this book aims to eventually be the complete manual for LFE
</p>
</div>
<div
class="mt-auto flex border-t border-gray-200 divide-x divide-gray-200 dark:border-gray-700 dark:divide-gray-700">
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-bl-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https://lfe.io/books/style-guide/">
href="https://cnbbooks.github.io/lfe-manual/current/">
Read Now
</a>
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-br-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
Expand All @@ -1006,23 +976,23 @@ <h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:tex
<div
class="group flex flex-col h-full bg-white border border-gray-200 shadow-sm rounded-md dark:bg-slate-900 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div class="h-108 flex flex-col justify-center items-center bg-blue-600 rounded-t-md">
<a href="https://lfe.io/books/sicp/"><img src="https://lfe.io/books/sicp/images/cover.jpg" alt="sicp" /></a>
<a href="https://lfe.io/books/tutorial/"><img src="https://cnbbooks.github.io/lfe-tutorial/images/cover.jpg" alt="lfe-tutorial" /></a>
</div>
<div class="p-4 md:p-6">
<span class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500">
Gerald Sussman, Harold Abelson, &amp; Duncan McGreggor
Robert Virding &amp; Duncan McGreggor
</span>
<h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:text-white">
SICP: The LFE Edition
The LFE Tutorial
</h3>
<p class="mt-3 text-gray-500">
An LFE 'port' of the classic Scheme text<br/><br/>Note that, while the first section of the book is complete, the remaining sections have not been completed
An LFE version of the classic 'Erlang Tutorial'
</p>
</div>
<div
class="mt-auto flex border-t border-gray-200 divide-x divide-gray-200 dark:border-gray-700 dark:divide-gray-700">
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-bl-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https://lfe.io/books/sicp/">
href="https://lfe.io/books/tutorial/">
Read Now
</a>
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-br-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
Expand All @@ -1036,23 +1006,23 @@ <h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:tex
<div
class="group flex flex-col h-full bg-white border border-gray-200 shadow-sm rounded-md dark:bg-slate-900 dark:border-gray-700 dark:shadow-slate-700/[.7]">
<div class="h-108 flex flex-col justify-center items-center bg-blue-600 rounded-t-md">
<a href="https://lfe.io/books/chinenual/"><img src="https://cnbbooks.github.io/lfe-manual/images/cover.jpg" alt="sicp" /></a>
<a href="https://lfe.io/reference/lfe-rebar3/"><img src="https://lfe.io/reference/lfe-rebar3/current/images/cover.jpg" alt="rebar3_lfe command reference" /></a>
</div>
<div class="p-4 md:p-6">
<span class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500">
Duncan McGreggor &amp; Robert Virding
Duncan McGreggor
</span>
<h3 class="text-xl font-semibold text-gray-800 dark:text-gray-300 dark:hover:text-white">
LFE Chineual
<code>rebar3_lfe</code> Command Reference
</h3>
<p class="mt-3 text-gray-500">
A work in progress, this book aims to eventually be the complete manual for LFE
A helpful source of information for those who would like to take more advantage of the features provided by the <code>rebar3_lfe</code> plugin.
</p>
</div>
<div
class="mt-auto flex border-t border-gray-200 divide-x divide-gray-200 dark:border-gray-700 dark:divide-gray-700">
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-bl-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
href="https://cnbbooks.github.io/lfe-manual/current/">
href="https://lfe.io/reference/lfe-rebar3/">
Read Now
</a>
<a class="w-full py-3 px-4 inline-flex justify-center items-center gap-2 rounded-br-md font-medium bg-white text-gray-700 shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-blue-600 transition-all text-sm sm:p-4 dark:bg-slate-900 dark:hover:bg-slate-800 dark:border-gray-700 dark:text-gray-400 dark:hover:text-white dark:focus:ring-offset-gray-800"
Expand Down
8 changes: 4 additions & 4 deletions templates/home/books.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
{% set books = [
books_section.quick_start,
books_section.casting_spels,
books_section.lfe_tutorial,
books_section.rebar3,
books_section.styleguide,
books_section.sicp,
books_section.chineual] %}
books_section.chineual,
books_section.lfe_tutorial,
books_section.rebar3
] %}
<div class="flex w-full justify-center">
<h1>{{ books_section.title | markdown(inline=true) | safe }}</h1>
</div>
Expand Down

0 comments on commit 580fcf2

Please sign in to comment.