Sha256: b22f8e6ef5b19d5d08859e8ac045ce48e9874cd9a5b2b58e74d126e7b3d1b9e8

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 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 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 opacity-90 absolute inset-0 w-full h-full z-0"></div>
        <div class="relative z-10 flex items-center">
        
        <% if @previous_page %>
          <%= render_component :button,
            size: :lg,
            icon: :chevron_left,
            tooltip: "Previous page",
            href: lookbook_page_path(@previous_page.lookup_path),
            class: "pr-0.5 bg-transparent" %>
        <% else %>
          <%= render_component :button,
            size: :lg,
            icon: :chevron_left,
            disabled: true,
            class: "opacity-50 !cursor-default pr-0.5 bg-transparent" %>
        <% end %>

        <% if @next_page %>
          <%= render_component :button,
            size: :lg,
            icon: :chevron_right,
            tooltip: "Next page",
            href: lookbook_page_path(@next_page.lookup_path),
            class: "pl-0.5 bg-transparent" %>
        <% else %>
          <%= render_component :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

3 entries across 3 versions & 1 rubygems

Version Path
lookbook-1.0.0.beta.4 app/views/layouts/lookbook/page.html.erb
lookbook-1.0.0.beta.3 app/views/layouts/lookbook/page.html.erb
lookbook-1.0.0.beta.2 app/views/layouts/lookbook/page.html.erb