Skip to content

Commit

Permalink
move book-authors into a component
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Nov 6, 2023
1 parent b1e8e93 commit dd3612c
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 26 deletions.
12 changes: 12 additions & 0 deletions _includes/components/book-authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<div class="book-authors">
{% for author in include.authors %}
<div class="book-author">
<div class="book-author-icon">
<img class="book-author-icon" src="{{ author.image }}" />
</div>
<p class="small">
{{ author.description }}
</p>
</div>
{% endfor %}
</div>
42 changes: 16 additions & 26 deletions _pages/learning/crystal_programming.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
---
title: "Building efficient, safe, and readable web and CLI applications with Crystal"
layout: wide

authors:
- image: /assets/learning/george.png
description: |
<strong>George Dietrich</strong> is a software engineer, open-source aficionado, and Crystal community moderator. He
holds a Master of Science degree in internet information systems and a Bachelor of Science degree in
information sciences.
- image: /assets/learning/guilherme.jpg
description: |
<strong>Guilherme Bernal</strong> is the chief technology officer at Cubos Tecnologia. He holds a bachelor's
degree in TI management. Guilherme co-founded a software development company
and several tech start-ups, including one that focused on teaching programming
skills to a new generation of developers. He is also a two-time world finalist
in the coding competition, ACM ICPC.
---

<div class="book-presenter">
Expand Down Expand Up @@ -66,32 +80,8 @@


<section>
<h2>About the Authors</h3>
<div class="book-authors">
<div class="book-author">
<div class="book-author-icon">
<img class="book-author-icon" src="/assets/learning/george.png" />
</div>
<p class="small">
<strong>George Dietrich</strong> is a software engineer, open-source aficionado, and Crystal community moderator. He
holds a Master of Science degree in internet information systems and a Bachelor of Science degree in
information sciences.
</p>
</div>

<div class="book-author">
<div class="book-author-icon">
<img class="book-author-icon" src="/assets/learning/guilherme.jpg" />
</div>
<p class="small">
<strong>Guilherme Bernal</strong> is the chief technology officer at Cubos Tecnologia. He holds a bachelor's
degree in TI management. Guilherme co-founded a software development company
and several tech start-ups, including one that focused on teaching programming
skills to a new generation of developers. He is also a two-time world finalist
in the coding competition, ACM ICPC.
</p>
</div>
</div>
<h2>About the Authors</h2>
{% include components/book-authors.html authors=page.authors %}
</section>

<div class="banner sponsorship">
Expand Down
16 changes: 16 additions & 0 deletions _style_guide/components/book-authors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Book Authors
type: components
module: _includes/components/book-authors.html

authors:
- image: /assets/learning/george.png
description: |
Lorem ipsum dolor sit amet.
- image: /assets/learning/guilherme.jpg
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.
---
{% include components/book-authors.html authors=page.authors %}
1 change: 1 addition & 0 deletions _style_guide/elements/hex-icon.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: Hex Icon
type: elements
module: _includes/elements/hex-icon.html
---
{% include elements/hex-icon.html file='icons/folder.svg' %}

0 comments on commit dd3612c

Please sign in to comment.