Sha256: d26b9ba48110a186ca7a977677480b038246bab82737bd21bbf6d83e5a68dd00

Contents?: true

Size: 1.66 KB

Versions: 13

Compression:

Stored size: 1.66 KB

Contents

<% yield p = np %>

<% divider ||= nil %>
<% no_background ||= false %>
<% title_size ||= "text-xl" %>

<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 p.content_for?(:body) || p.content_for?(:actions) %>
      <div class="<%= p.content_for?(:body) ? 'py-7' : 'pb-7' %> px-8 space-y-7">
        <% if p.content_for? :body %>
          <div class="space-y-4 <%= '-mt-4' unless divider %>">
            <%= p.content_for :body %>
          </div>
        <% end %>

        <% if p.content_for? :actions %>
          <div class="space-x">
            <%= p.content_for :actions %>
          </div>
        <% end %>
      </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

13 entries across 13 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.0.12 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.11 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.10 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.9 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.8 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.7 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.6 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.5 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.4 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.3 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.2 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.1 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.0 app/views/themes/light/_box.html.erb