Sha256: c1f2c2e3088ab5312be0552d9b9d69c23c1880d36d92bca240597b2269633eb2

Contents?: true

Size: 1.67 KB

Versions: 8

Compression:

Stored size: 1.67 KB

Contents

<%= content_for :main do %>
  <div
    class="h-[calc(100vh_-_40px)]"
    x-data="{}"
    @navigation:complete.window="$refs.scroller.scrollTop = 0">
  
    <div class="h-full bg-lookbook-page-bg relative">
      <% unless @error %>
        
        <div class="absolute top-0 right-0 pt-1 pr-0 pl-1 pb-1 rounded-bl-md">
          <div class="bg-lookbook-page-bg opacity-90 absolute inset-0 w-full h-full z-0"></div>
          <div class="relative z-10 flex items-center">
          
          <% if @previous_page %>
            <%= lookbook_render :button,
              size: :lg,
              icon: :chevron_left,
              tooltip: "Previous page",
              href: lookbook_page_path(@previous_page.lookup_path),
              class: "pr-0.5 bg-transparent" %>
          <% else %>
            <%= lookbook_render :button,
              size: :lg,
              icon: :chevron_left,
              disabled: true,
              class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %>
          <% end %>

          <% if @next_page %>
            <%= lookbook_render :button,
              size: :lg,
              icon: :chevron_right,
              tooltip: "Next page",
              href: lookbook_page_path(@next_page.lookup_path),
              class: "pl-0.5 bg-transparent" %>
          <% else %>
            <%= lookbook_render :button,
              size: :lg,
              icon: :chevron_right,
              disabled: true,
              class: "opacity-50 !cursor-default pl-0.5 bg-transparent" %>
          <% end %>
          </div>
        </div>
      <% end %>

      <%= yield %>
    </div>
    
  </div>
<% end %>

<%= render template: "layouts/lookbook/application" %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lookbook-1.3.4 app/views/layouts/lookbook/page.html.erb
lookbook-1.3.3 app/views/layouts/lookbook/page.html.erb
lookbook-1.3.1 app/views/layouts/lookbook/page.html.erb
lookbook-1.3.0 app/views/layouts/lookbook/page.html.erb
lookbook-1.2.1 app/views/layouts/lookbook/page.html.erb
lookbook-1.2.0 app/views/layouts/lookbook/page.html.erb
lookbook-1.1.1 app/views/layouts/lookbook/page.html.erb
lookbook-1.1.0 app/views/layouts/lookbook/page.html.erb