finish activity ui

This commit is contained in:
2025-06-22 08:51:48 +02:00
parent e79626972f
commit 7c14e469c9
19 changed files with 378 additions and 101 deletions

View File

@@ -0,0 +1,19 @@
<header class="site-header">
<div class="logo">
<a href="/" style="display: flex; align-items: center; gap: 0.5em; text-decoration: none;">
<img src="/plays_hub_logo.svg" alt="Plays Hub Logo" width="64" height="64" style="display: inline-block; vertical-align: middle;" />
<span style="font-weight: bold; font-size: 1.4em; color: #0071e3;">Plays Hub</span>
</a>
</div>
<% if user_signed_in? %>
<nav>
<a href="/statistics">Statistics</a>
<%= button_to "Logout", destroy_user_session_path, method: :delete, class: "logout-btn logout-link-btn", form: {style: 'display:inline'} %>
</nav>
<% else %>
<nav>
<a href="/users/sign_in">Login</a>
<a href="/users/sign_up">Sign up</a>
</nav>
<% end %>
</header>

View File

@@ -23,6 +23,7 @@
</head>
<body>
<%= render partial: 'layouts/header' %>
<%= yield %>
<% if notice %>
<p class="notice"><%= notice %></p>