Added icons, helperfunction and new fancy notice message
Added icons from webcrunch resp. heroicons Added helperfunction to display inline svg with the plugin inline-svg Implemented fancy notice message webcrunch. Realy nice but does only work with javascript on.
This commit is contained in:
10
app/views/layouts/_flashold.html.erb
Normal file
10
app/views/layouts/_flashold.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<div id="notice">
|
||||
<% if notice.present? %>
|
||||
<div class="flex p-1.5 text-l bg-green-100 text-green-700 font-medium shadow-lg border-l-4 border-green-700>
|
||||
<span class="flex p-1.5"><%= icon "check", class: "size-8 stroke-primary-500" %></span>
|
||||
<p class="p-1.5">
|
||||
<%= notice %>
|
||||
</p>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user