f88c1f5a7f
Implement foundational UI components including navigation bar, CSS styling, and improved rankings page. Changes: - Add navigation bar with links to Rankings, Profile, Schedule, Admin - Add comprehensive CSS styling for tables, forms, buttons, alerts - Improve rankings page with profile links - Support conditional navigation based on authentication status
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>EuchreCamp</title>
|
|
<%= favicon_tag %>
|
|
<%= stylesheet_tag "app" %>
|
|
</head>
|
|
<body>
|
|
<nav class="main-nav">
|
|
<div class="nav-brand">
|
|
<a href="/">EuchreCamp</a>
|
|
</div>
|
|
<div class="nav-links">
|
|
<a href="/rankings">Rankings</a>
|
|
<% if defined?(current_player) && current_player %>
|
|
<a href="/players/<%= current_player.id %>/profile">My Profile</a>
|
|
<a href="/players/<%= current_player.id %>/schedule">My Schedule</a>
|
|
<% if current_player.respond_to?(:admin?) && current_player.admin? %>
|
|
<a href="/admin">Admin</a>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="nav-user">
|
|
<% if defined?(current_player) && current_player %>
|
|
<span><%= current_player.name %></span>
|
|
<a href="/logout">Logout</a>
|
|
<% else %>
|
|
<a href="/login">Login</a>
|
|
<a href="/register">Register</a>
|
|
<% end %>
|
|
</div>
|
|
</nav>
|
|
<main class="main-content">
|
|
<%= yield %>
|
|
</main>
|
|
<%= javascript_tag "app" %>
|
|
</body>
|
|
</html>
|