implement submission page

This commit is contained in:
Alex Turchyn
2023-06-20 22:38:38 +03:00
parent 587be1bb67
commit 1da67011c4
17 changed files with 231 additions and 130 deletions
+1 -13
View File
@@ -14,19 +14,7 @@
<body>
<turbo-frame id="modal"></turbo-frame>
<%= render 'shared/navbar' %>
<% if flash.present? %>
<div id="flash" class="absolute top-0 w-full h-0">
<div class="max-w-xl mx-auto mt-1.5">
<div class="alert py-3">
<%= svg_icon('info_circle', class: 'stroke-info flex-shrink-0 w-6 h-6') %>
<div>
<span><%= flash[:notice] || flash[:alert] %></span>
</div>
<a href="#" class="w-6 h-6 rounded-lg text-center hover:bg-base-300" onclick="[event.preventDefault(), window.flash.remove()]">&times;</a>
</div>
</div>
</div>
<% end %>
<% if flash.present? %><% render 'shared/flash' %><% end %>
<div class="max-w-6xl mx-auto px-4 md:px-2">
<%= yield %>
</div>