From c0f91c52f1f1030787649cc68ceb0115ec3e4326 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Sun, 27 Apr 2025 21:10:44 +0300 Subject: [PATCH] Update the format for navbar and footer partials. --- .../components/my_partials/footer.ex | 4 +- .../components/my_partials/navbar.ex | 208 +++++++++++++----- 2 files changed, 152 insertions(+), 60 deletions(-) diff --git a/lib/decentralised_book_index_web/components/my_partials/footer.ex b/lib/decentralised_book_index_web/components/my_partials/footer.ex index 8d353d7..040ae6f 100644 --- a/lib/decentralised_book_index_web/components/my_partials/footer.ex +++ b/lib/decentralised_book_index_web/components/my_partials/footer.ex @@ -6,7 +6,9 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Footer do """ diff --git a/lib/decentralised_book_index_web/components/my_partials/navbar.ex b/lib/decentralised_book_index_web/components/my_partials/navbar.ex index 0f808e6..3eea901 100644 --- a/lib/decentralised_book_index_web/components/my_partials/navbar.ex +++ b/lib/decentralised_book_index_web/components/my_partials/navbar.ex @@ -12,48 +12,125 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do def partial_navbar(assigns) do ~H""" """ end @@ -63,27 +140,40 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do defp user_info(assigns) do ~H""" <%= if @current_user != nil do %> -
- - - +
+ + + +
<% else %> - Sign in + + Sign in + <% end %> """ end