From 60d89610ce9b8f88ffa05051c4e51cae5e2eb0b5 Mon Sep 17 00:00:00 2001 From: Adam Piontek Date: Fri, 26 Mar 2021 19:14:14 -0400 Subject: [PATCH] fixing navbar to be on par with shift73k work --- .../templates/layout/_navbar.html.eex | 32 +++++++++++++++---- .../layout/navbar/_user_menu.html.eex | 11 ------- priv/repo/seeds.exs | 6 ++-- 3 files changed, 28 insertions(+), 21 deletions(-) diff --git a/lib/bones73k_web/templates/layout/_navbar.html.eex b/lib/bones73k_web/templates/layout/_navbar.html.eex index 998e9cc..ccc5d0d 100644 --- a/lib/bones73k_web/templates/layout/_navbar.html.eex +++ b/lib/bones73k_web/templates/layout/_navbar.html.eex @@ -3,16 +3,23 @@

<%= link to: Routes.page_path(@conn, :index), class: "navbar-brand fs-4" do %> - <%= icon_div @conn, "mdi-skull-crossbones", [class: "icon baseline fs-3"] %> + <%= icon_div @conn, "mdi-skull-crossbones", [class: "icon baseline me-1"] %> Bones73k <% end %>

- + <%= if @current_user do %> + + <% else %> + <%= link nav_link_opts(@conn, to: Routes.user_session_path(@conn, :new), class: "btn btn-outline-dark d-block d-lg-none") do %> + <%= icon_div @conn, "bi-door-open", [class: "icon baseline"] %> + Log in + <% end %> + <% end %>