diff options
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/application.html.erb | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index e7f5226..1f70197 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,8 +1,9 @@ <!DOCTYPE html> -<html> +<html lang="en"> <head> <title>Esoterra</title> <meta name="viewport" content="width=device-width,initial-scale=1"> + <meta name="turbolinks-cache-control" content="no-cache"> <%= csrf_meta_tags %> <%= csp_meta_tag %> @@ -10,7 +11,35 @@ <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> </head> - <body> - <%= yield %> + <body class="text-base text-gray-400 bg-gray-800"> + <div> + <%= render "header" %> + <div class="main-wrapper bg-gray-900 rounded"> + <div class="game-container mx-auto p-2 grid gap-2 grid-cols-12 px-2"> + <% if user_signed_in? %> + <%= render "navbar" %> + <% end %> + <div id="world_box" class="game-container-box col-span-12 sm:col-span-8"> + <p><%= notice %></p> + <p><%= alert %></p> + <%= yield %> + </div> + <% if user_signed_in? %> + <div id="chat_box" class="game-container-box side-box col-span-12 sm:col-span-4" + data-turbolinks-permanent> + <%= render "chat" %> + </div> + <% else %> + <div id="game_info_box" class="game-container-box side-box col-span-12 sm:col-span-4" + data-turbolinks-permanent> + <%= render "game_info" %> + </div> + <% end %> + </div> + </div> + <div class="bg-gray-800 p-2 text-display text-center text-xs text-gray-400"> + Esoterra © 2020-2021 + </div> + </div> </body> </html> |