restore basic layout
This commit is contained in:
parent
9779520d0c
commit
7bd63caae7
2 changed files with 25 additions and 2 deletions
lib/web
|
@ -1 +1,24 @@
|
|||
{@inner_content}
|
||||
<div class="sticky top-0 z-50 flex flex-row bg-white justify-between py-1 md:mb-2 border-b border-gray-200">
|
||||
<div class="flex flex-col md:flex-row">
|
||||
<section class="flex flex-row gap-x-2 md:border-r border-gray-200 px-2">
|
||||
<.link href={~p"/"} class="font-bold group">
|
||||
💜 <span class="group-hover:underline">sloanelybutsurely.com</span>
|
||||
</.link>
|
||||
<nav>
|
||||
<ul class="flex flex-row gap-x-2"></ul>
|
||||
</nav>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<%= if is_nil(@current_user) do %>
|
||||
<.link class="px-2 text-transparent hover:text-current" href={~p"/admin/users/log_in"}>
|
||||
sign in
|
||||
</.link>
|
||||
<% else %>
|
||||
<.link class="px-2" href={~p"/admin/users/log_out"} method="delete">sign out</.link>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<main class="p-2 max-w-2xl mx-auto">
|
||||
{@inner_content}
|
||||
</main>
|
||||
|
|
|
@ -38,7 +38,7 @@ defmodule Web.Router do
|
|||
|
||||
get "/", PageController, :home
|
||||
|
||||
delete "/users/log_out", UserSessionController, :delete
|
||||
delete "/admin/users/log_out", UserSessionController, :delete
|
||||
|
||||
# live_session :current_user, on_mount: [{Web.UserAuth, :mount_current_user}] do
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue