Sha256: da8b912cba35732de3d19342c5458dbf044fbcd18e25244347a2ec177bbd063f

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <title>Shoelace Test</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>

    <style>
      body {
        font-family: var(--sl-font-sans);
        font-size: var(--sl-font-size-medium);
        font-weight: var(--sl-font-weight-normal);
        letter-spacing: var(--sl-letter-spacing-normal);
        color: var(--sl-color-gray-800);
        line-height: var(--sl-line-height-normal);
      }

      sl-form div, sl-turbo-form div {
        margin-bottom: 2em;
      }
    </style>

    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.87/dist/themes/light.css">
    <script type="module" src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0-beta.87/dist/shoelace.js"></script>

    <% if request.path.include?("hotwire") %>
      <%= javascript_pack_tag 'hotwire' %>
    <% else %>
      <%= javascript_pack_tag 'turbolinks' %>
    <% end %>
  </head>

  <body>
    <div style="width: 950px; margin: auto">
      <%= yield %>
    </div>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoelace-rails-0.3.0 test/dummy_app/app/views/layouts/application.html.erb