Sha256: 7a23e7ef250cda69d79b10cee38939c1f768159fef6635822d3111ff09fee755
Contents?: true
Size: 1.93 KB
Versions: 2
Compression:
Stored size: 1.93 KB
Contents
<% yield p = np %> <% divider ||= nil %> <% no_background ||= false %> <% title_size ||= "text-xl" %> <% body = p.content_for(:body) || p.content_for(:raw_body) %> <% pagy ||= nil %> <div class="<%= "bg-white rounded-md shadow dark:bg-sealBlue-400" unless no_background %> overflow-hidden"> <div class="py-6 px-8 space-y-2 <%= 'border-b shadow-sm dark:border-sealBlue-500' if divider %>"> <% if p.content_for? :title %> <h2 class="<%= title_size %> font-semibold dark:text-white"> <%= p.content_for :title %> </h2> <% end %> <% if p.content_for? :description %> <p class="text-gray-400 font-light leading-normal"> <%= p.content_for :description %> </p> <% end %> </div> <div class="space-y-4"> <% if p.content_for? :table %> <div class="box-table <%= divider ? 'mt-4' : '-mt-1' %> pb-0.5"> <%= p.content_for :table %> </div> <% end %> <% if body %> <div class="<%= "pt-7 px-8 space-y-7 #{p.content_for?(:actions) ? 'pb-3' : 'pb-7'}" unless p.content_for?(:raw_body) %>"> <div class="space-y-4 <%= '-mt-4' unless divider %>"> <%= body %> </div> </div> <% end %> <% if p.content_for? :actions || pagy %> <div class="pb-7 px-8 space-y-7"> <div class="sm:flex"> <div class="flex-1 space-x"> <%= p.content_for :actions %> </div> <% if pagy && pagy.pages > 1 %> <div class="flex-0 mt-3 sm:mt-0"> <%== pagy_nav(pagy) %> </div> <% end %> </div> </div> <% end %> </div> <% if p.content_for? :footer %> <div class="py-4 px-8 bg-gray-50 border-t dark:bg-sealBlue-300 dark:border-sealBlue-500"> <%= p.content_for :footer %> </div> <% end %> <% if p.content_for? :raw_footer %> <div class="bg-gray-50 dark:bg-sealBlue-300"> <%= p.content_for :raw_footer %> </div> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-themes-light-1.0.16 | app/views/themes/light/_box.html.erb |
bullet_train-themes-light-1.0.15 | app/views/themes/light/_box.html.erb |