Skip to content

Commit 23ae3fa

Browse files
committed
feat: implement flash
1 parent 6528c00 commit 23ae3fa

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/views/layouts/application.html.erb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,19 @@
2828
</head>
2929

3030
<body>
31-
<main class="container mx-auto mt-28 px-5 flex">
31+
<main>
32+
<% if notice %>
33+
<div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded mb-4 mx-4 mt-4" role="alert">
34+
<%= notice %>
35+
</div>
36+
<% end %>
37+
38+
<% if alert %>
39+
<div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded mb-4 mx-4 mt-4" role="alert">
40+
<%= alert %>
41+
</div>
42+
<% end %>
43+
3244
<%= yield %>
3345
</main>
3446
</body>

0 commit comments

Comments
 (0)