From 7170c0254b8344726f57b63b20092ee37c62b899 Mon Sep 17 00:00:00 2001 From: SindreKjelsrud Date: Mon, 8 Jul 2024 23:50:04 +0200 Subject: [PATCH] :books: add "want to read" section Signed-off-by: SindreKjelsrud --- src/data/bookshelf.json | 153 +++++++++++++++++++++++++++++++++ src/pages/logs/bookshelf.astro | 35 +++++--- 2 files changed, 177 insertions(+), 11 deletions(-) diff --git a/src/data/bookshelf.json b/src/data/bookshelf.json index fe6e2d8..372c9c8 100644 --- a/src/data/bookshelf.json +++ b/src/data/bookshelf.json @@ -503,6 +503,159 @@ "rating": 4 } ] + }, + { + "name": "Want to read", + "url": "https://kjelsrud.dev/logs/bookshelf/", + "books":[ + { + "title": "Ghost in the Wires: My Adventures as the World's Most Wanted Hacker" + }, + { + "title": "Let My People Go Surfing: The Education of a Reluctant Businessman" + }, + { + "title": "Still Sideways: Riding the Edge Again after Losing My Sight" + }, + { + "title": "Marvel Avengers Ant-Man: Look Out for the Little Guys" + }, + { + "title": "Shoe Dog" + }, + { + "title": "The Innovators" + }, + { + "title": "Sun & Steel" + }, + { + "title": "Zen and the Art of Motorcycle Maintenance" + }, + { + "title": "Ten Arguments For Deleting Your Social Media Accounts Right Now" + }, + { + "title": "The Age of Surveillance Capitalism" + }, + { + "title": "One Day in the Life of Ivan Denisovich" + }, + { + "title": "Understanding Marxism" + }, + { + "title": "Tao Te Ching" + }, + { + "title": "Ikigai - The Japanese secret to a long and happy life" + }, + { + "title": "The Courage to Be Disliked" + }, + { + "title": "Meditations" + }, + { + "title": "The Bitcoin Standard" + }, + { + "title": "The Age of Cryptocurrency: How Bitcoin and Digital Money Are Challenging the Global Economic Order" + }, + { + "title": "Beyond Bitcoin: Decentralised Finance and the End of Banks" + }, + { + "title": "Ethereum: The Legend of Vitalik Buterin" + }, + { + "title": "Den store rentebølgen - rentens 700 år lange seilas til negativt lende" + }, + { + "title": "The Psychology of Money: Timeless lessons on wealth, greed, and happiness" + }, + { + "title": "Digital Gold - The Untold Story of Bitcoin" + }, + { + "title": "Aksjeskolen" + }, + { + "title": "Zero to One: Notes on Startups, or How to Build the Future" + }, + { + "title": "The 4-Hour Workweek: Escape 9-5, Live Anywhere, and Join the New Rich" + }, + { + "title": "The Sovereign Individual: Mastering the Transition to the Information Age" + }, + { + "title": "Broken Money: Why Our Financial System is Failing Us and How We Can Make it Better" + }, + { + "title": "Snow Crash: A Novel" + }, + { + "title": "The Unicorn Project: A Novel about Developers, Digital Disruption, and Thriving in the Age of Data" + }, + { + "title": "100-dagerskoden - hvordan mestre ny lederrolle og unngå fallgruver" + }, + { + "title": "Effektive ledergrupper" + }, + { + "title": "Leaders Eat Last - Why Some Teams Pull Together and Others Don't" + }, + { + "title": "Jobbpsykologi" + }, + { + "title": "The Presentation Secrets of Steve Jobs: How to Be Insanely Great in Front of Any Audience" + }, + { + "title": "The Way of Zen" + }, + { + "title": "Men du ser ikke syk ut" + }, + { + "title": "What I Talk About When I Talk About Running" + }, + { + "title": "Skriv godt, bli forstått - guiden for å skrive bedre, raskere og med mindre smerte" + }, + { + "title": "The Fine Art of Small Talk: How To Start a Conversation, Keep It Going, Build Networking Skills -- and Leave a Positive Impression!" + }, + { + "title": "Thanks for the Feedback: The Science and Art of Receiving Feedback Well" + }, + { + "title": "The Inner Game of Tennis: The Classic Guide to the Mental Side of Peak Performance" + }, + { + "title": "what if?: Serious Scientific Answers to Absurd Hypothetical Questions" + }, + { + "title": "21 Lessons for the 21st Century" + }, + { + "title": "Ways of the Samurai from Ronins to Ninja" + }, + { + "title": "The Story of China - A portrait of a civilisation and its people" + }, + { + "title": "Hitchhiker’s Guide to the Galaxy" + }, + { + "title": "I, Robot: Isaac Asimov" + }, + { + "title": "Yumi and the Nightmare Painter" + } + ] } ] } diff --git a/src/pages/logs/bookshelf.astro b/src/pages/logs/bookshelf.astro index edacc9b..fef5056 100644 --- a/src/pages/logs/bookshelf.astro +++ b/src/pages/logs/bookshelf.astro @@ -5,6 +5,7 @@ import biblioteca from '../../data/bookshelf.json' let booksRead = []; let booksShelf = []; let booksReading = []; +let booksWant = []; biblioteca.lists.forEach(list => { switch (list.name) { @@ -17,6 +18,9 @@ biblioteca.lists.forEach(list => { case "Currently reading": booksReading = list.books; break; + case "Want to read": + booksWant = list.books; + break; } }); @@ -50,17 +54,26 @@ const sortedYears = Object.keys(booksByYear).sort((a: any, b: any) => b - a); {sortedYears.map(year => ( -
- {year} ({booksByYear[year].length} entries) -
    - {booksByYear[year].map((book) => ( -
    -

    {book.title}

    -

    {book.rating === 5 ? "❤️" : ""}

    -
    - ))} -
-
+
+ {year} ({booksByYear[year].length} entries) +
    + {booksByYear[year].map((book) => ( +
    +

    {book.title}

    +

    {book.rating === 5 ? "❤️" : ""}

    +
    + ))} +
+
))} + +
+ want to read +
    + {booksWant.map((book) => ( +
  • {book.title}
  • + ))} +
+