Book Update

This commit is contained in:
2024-02-12 19:22:09 -06:00
parent 44a902c8f2
commit aa620d0667
4 changed files with 17 additions and 5 deletions

View File

@@ -284,6 +284,10 @@ a {
margin: 0; margin: 0;
} }
.nomargin {
margin: 0;
}
.flex { .flex {
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
@@ -710,7 +714,7 @@ a {
color: lightgray; color: lightgray;
margin: .5em; margin: .5em;
border-bottom: solid black 3px; border-bottom: solid black 3px;
margin-right: 5em; flex-grow: 1;
} }
.bookContainer { .bookContainer {

View File

@@ -1,11 +1,16 @@
{ {
"selection": [ "selection": [
"Freakonomics", "The Rational Optimist",
"Zero To One",
"The Accidental Superpower", "The Accidental Superpower",
"David and Goliath" "Freakonomics",
"Zero To One"
], ],
"books": { "books": {
"The Rational Optimist": {
"filename": "ratOpt.jpg",
"link": "https://www.amazon.com/Rational-Optimist-Prosperity-Evolves-P-s/dp/0061452068",
"review": "The story of humanity's growth with a refined variation of a lens I very much believe deserves greater publicity. Long, yes, but ultimately one of the most important books for me to have read."
},
"Freakonomics": { "Freakonomics": {
"filename": "freakonomics.jpeg", "filename": "freakonomics.jpeg",
"link": "https://freakonomics.com/books/", "link": "https://freakonomics.com/books/",

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

View File

@@ -1,7 +1,10 @@
{% macro bookshelf(books) %} {% macro bookshelf(books) %}
<a href="/books"> <a href="/books">
<div class="bookshelf"> <div class="bookshelf">
<h5 class="bookshelfHeader">Check out the things I read:</h5> <div class="flex">
<h4 class="bookshelfHeader">Check out the things I read:</h4>
<p class='nomargin'>See More >></p>
</div>
<div class="bookContainer"> <div class="bookContainer">
{% for i in books.selection %} {% set book = books.books[i] %} {% for i in books.selection %} {% set book = books.books[i] %}
<a href="/books#'{{i}}'"> <a href="/books#'{{i}}'">