62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title><%= content_for(:title) || "Clinch" %></title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="application-name" content="Clinch">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= yield :head %>
|
|
|
|
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
|
|
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
|
|
|
|
<link rel="icon" href="/icon.png" type="image/png">
|
|
<link rel="icon" href="/icon.svg" type="image/svg+xml">
|
|
<link rel="apple-touch-icon" href="/icon.png">
|
|
|
|
<%# Includes all stylesheet files in app/assets/stylesheets %>
|
|
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
|
|
<%= javascript_importmap_tags %>
|
|
</head>
|
|
|
|
<body>
|
|
<% if authenticated? %>
|
|
<div data-controller="mobile-sidebar">
|
|
<%= render "shared/sidebar" %>
|
|
<div class="lg:pl-64">
|
|
<!-- Mobile menu button -->
|
|
<div class="sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:hidden">
|
|
<button type="button"
|
|
class="-m-2.5 p-2.5 text-gray-700"
|
|
id="mobile-menu-button"
|
|
data-action="click->mobile-sidebar#openSidebar">
|
|
<span class="sr-only">Open sidebar</span>
|
|
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
|
|
<main class="py-10">
|
|
<div class="px-4 sm:px-6 lg:px-8">
|
|
<%= render "shared/flash" %>
|
|
<%= yield %>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
<% else %>
|
|
<!-- Public layout (signup/signin) -->
|
|
<main class="container mx-auto mt-28 px-5">
|
|
<%= render "shared/flash" %>
|
|
<%= yield %>
|
|
</main>
|
|
<% end %>
|
|
|
|
</body>
|
|
</html>
|