summaryrefslogtreecommitdiff
path: root/app/views/layouts/application.html.erb
blob: d95614587809d2712b6a36c1289e8d3421f561a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Cable Club</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <%= csrf_meta_tags %>
    <%= csp_meta_tag %>
    <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>

    <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
    <%= javascript_importmap_tags %>
  </head>

  <body class="flex flex-col min-h-screen bg-slate-100">

  <nav class="flex flex-wrap items-center justify-between px-4 py-2 text-display">
    <div class="flex flex-grow items-center space-x-8">
      <%= link_to "Cable Club", root_path, class: "text-xl" %>
      <%= link_to "Runs", runs_path %>
    </div>
    <div class="space-x-8">
      <% if user_signed_in? %>
        <%= link_to "Profile", "#" %>
        <%= link_to "Sign out", destroy_user_session_path %>
      <% else %>
        <%= link_to "Sign in", new_user_session_path %>
      <% end %>
    </div>
  </nav>

  <main class="container mx-auto mt-28 px-5">
    <p class="notice"><%= notice %></p>
    <p class="alert"><%= alert %></p>

    <%= yield %>
  </main>

  <footer class="flex-shrink">
    <div class="max-w-screen-lg mx-auto pb-4">
    </div>
  </footer>
  </body>
</html>