Setup user login/logout #21

Merged
atomaka merged 5 commits from user-session into main 2024-08-01 21:41:43 -04:00
2 changed files with 14 additions and 0 deletions
Showing only changes of commit 76918fff3e - Show all commits

View file

@ -2,6 +2,12 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
.msg-notice {
@apply bg-green-300 text-green-900;
}
.msg-alert {
@apply bg-red-300 text-red-900;
}
/* /*
@layer components { @layer components {

View file

@ -22,6 +22,14 @@
</ul> </ul>
</nav> </nav>
<% if flash.any? %>
<% flash.each do |type, msg| %>
<div class="py-2 px-4 font-bold msg-<%= type %>">
<%= msg %>
</div>
<% end %>
<% end %>
<main class="container mx-auto mt-28 px-5 flex"> <main class="container mx-auto mt-28 px-5 flex">
<%= yield %> <%= yield %>
</main> </main>