<.flash_group flash={@flash} />
<%= @inner_content %>
diff --git a/lib/wish_web/live/home_live/details.html.heex b/lib/wish_web/live/home_live/details.html.heex
index 297cad8..bd646ca 100644
--- a/lib/wish_web/live/home_live/details.html.heex
+++ b/lib/wish_web/live/home_live/details.html.heex
@@ -1,14 +1,55 @@
<.link navigate={~p"/"}>
<.icon name="hero-arrow-left" /> Back to list
-<.header>
- <%= @item.title %>
-
-
-
+
<% end %>
+
-
-<.button phx-click={JS.push("toggle_received", value: %{"id" => @item.id})}>
- Toggle Received
-
diff --git a/lib/wish_web/live/home_live/index.html.heex b/lib/wish_web/live/home_live/index.html.heex
index ed7fe23..6286e4a 100644
--- a/lib/wish_web/live/home_live/index.html.heex
+++ b/lib/wish_web/live/home_live/index.html.heex
@@ -5,7 +5,7 @@
JS.push("toggle_view_state")
|> JS.dispatch("toggle_view_state", detail: %{"grid" => !@grid})
}>
- Toggle Display
+ Toggle List/Grid
@@ -37,12 +37,22 @@
+
+ <%= if @item.received && !@current_user do %>
+
+
+ <.icon name="hero-check-circle" />Received
+
+ <% end %>
+
+ <.header>
+ <%= @item.title %>
+
+
+
+
+
+ <%= if @item.description do %>
+
+ Priority:
+
+
+ <%= for _ <- 1..@item.desire do %>
+ <.icon name="hero-star" class="bg-red-500 text-red-500" />
+ <% end %>
+
+
+
+ <% end %>
+
+ <.button>
+ <.link class="block h-full w-full" href={@item.url} target="_blank">
+ Go to seller <.icon name="hero-arrow-right" />
+
+
+
+ <.button phx-click={JS.push("toggle_received", value: %{"id" => @item.id})}>
+ <%= if !@item.received do %>
+ Mark as purchased
+ <% else %>
+ Unmark as purchased
+ <% end %>
+
+
+ Description:
+
+
+ <%= @item.description %>
+
+
<%= item.title %>
-
+
+
<.icon name="hero-ellipsis-vertical" class="w-full h-full" />
<.dropdown item={item} />
+
+ Priority:
+
+
+ <%= for _ <- 1..item.desire do %>
+ <.icon name="hero-star" class="bg-red-500 text-red-500" />
+ <% end %>
+
+
<%= item.description %>
@@ -69,12 +79,25 @@
<%= item.title %>
- <.icon name="hero-ellipsis-vertical" class="w-7 h-7" />
+ <.icon
+ name="hero-ellipsis-vertical"
+ class="w-7 h-7 rounded-full hover:bg-purple-400 active:bg-purple-500"
+ />
<.dropdown item={item} />
-
+
<%= item.description %>
+
+
+ Priority:
+
+
+ <%= for _ <- 1..item.desire do %>
+ <.icon name="hero-star" class="bg-red-500 text-red-500" />
+ <% end %>
+
+