Sha256: 9d1d96ef122dcacfdfc3f960a566c6c3642fdcdb633df36d4f713160ba5ad03d

Contents?: true

Size: 1.75 KB

Versions: 16

Compression:

Stored size: 1.75 KB

Contents

<div class="px-4 md:px-10 pt-8 md:pt-10 overflow-auto scroll-smooth w-full max-h-full pb-12" x-ref="scroller">
  <div class="w-full max-w-screen-lg mx-auto h-full flex flex-col">
    <% if @page.header? %>
      <header id="page-header" class="mb-8 prose max-w-none flex-none">
        <h1><%= @page.title %></h1>
      </header>
    <% end %>

    <%= render_component :prose, id: "page-content", markdown: false, class: "max-w-none flex-none" do %>
      <%= @page_content %>
    <% end %>

    <% if @page.sections.any? %>
      <%= render_component :page_tabs, id: "page-tabbed-sections", markdown: false, class: "mt-6" do |page_tabs| %>
        <% @page.sections.each do |section| %>
          <% page_tabs.tab name: "page-section-#{section.name}", label: section.label do %>
            <%= page_controller.render_page(section) %>
          <% end %>
        <% end %>
      <% end %>
    <% end %>

    <% if @page.footer? && @pages.many? %>
      <footer id="page-footer" class="flex items-center justify-between border-t border-gray-300 mt-12 pt-8 pb-10 ">
        <% if @previous_page %>
          <a href="<%= lookbook_page_path @previous_page.lookup_path %>"
            class="flex items-center flex-none">
            <%= icon  :arrow_left, size: 4, class: "hover:text-indigo-800" %>
            <span class="ml-2 underline"><%= @previous_page.title %></span>
          </a>
        <% end %>

        <% if @next_page %>
          <a href="<%= lookbook_page_path @next_page.lookup_path %>"
            class="flex items-center flex-none ml-auto">
            <span class="mr-2 underline"><%= @next_page.title %></span>
            <%= icon  :arrow_right, size: 4, class: "hover:text-indigo-800" %>
          </a>
        <% end %>
      </footer>
    <% end %>
  </div>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lookbook-1.0.8 app/views/lookbook/pages/show.html.erb
lookbook-1.0.7 app/views/lookbook/pages/show.html.erb
lookbook-1.0.6 app/views/lookbook/pages/show.html.erb
lookbook-1.0.5 app/views/lookbook/pages/show.html.erb
lookbook-1.0.4 app/views/lookbook/pages/show.html.erb
lookbook-1.0.3 app/views/lookbook/pages/show.html.erb
lookbook-1.0.2 app/views/lookbook/pages/show.html.erb
lookbook-1.0.1 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.rc.3 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.rc.2 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.rc.1 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.beta.8 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.beta.7 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.beta.6 app/views/lookbook/pages/show.html.erb
lookbook-1.0.0.beta.5 app/views/lookbook/pages/show.html.erb