From de632cdfdc145c8ea0a1dd5a2ed4fa94232122d5 Mon Sep 17 00:00:00 2001 From: Daniel Savory Date: Sun, 12 Jan 2025 22:57:27 +1100 Subject: [PATCH] book thoughts --- lib/wild_web/live/book_thoughts.ex | 3 ++ lib/wild_web/live/books_thoughts.html.heex | 37 ++++++++++++++++++++++ lib/wild_web/router.ex | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 lib/wild_web/live/book_thoughts.ex create mode 100644 lib/wild_web/live/books_thoughts.html.heex diff --git a/lib/wild_web/live/book_thoughts.ex b/lib/wild_web/live/book_thoughts.ex new file mode 100644 index 0000000..ae387cb --- /dev/null +++ b/lib/wild_web/live/book_thoughts.ex @@ -0,0 +1,3 @@ +defmodule WildWeb.BookThoughts do + use WildWeb, :live_view +end diff --git a/lib/wild_web/live/books_thoughts.html.heex b/lib/wild_web/live/books_thoughts.html.heex new file mode 100644 index 0000000..24f1dfe --- /dev/null +++ b/lib/wild_web/live/books_thoughts.html.heex @@ -0,0 +1,37 @@ +

Our Book Journey

+ +
+

Book name

+

Review times

+
+ +
+ + +
+ +
+

+ Book Name +

+ +

+ 4 thoughts +

+
+ +

+ by author name, published 1999 +

+ +
+

+ Recent thoughts from Thu +

+

+ Some quick example text to build on the card title and make up the bulk of the card's content. +

+
+ +
+
diff --git a/lib/wild_web/router.ex b/lib/wild_web/router.ex index 18929be..9200fe7 100644 --- a/lib/wild_web/router.ex +++ b/lib/wild_web/router.ex @@ -81,8 +81,8 @@ defmodule WildWeb.Router do live "/account/confirm/:token", UserConfirmationLive, :edit live "/account/confirm", UserConfirmationInstructionsLive, :new live "/", Index - # live "/books/thoughts", BookReads, :thoughts live "/books", Books + live "/books/thoughts", BookThoughts end end end