|
1 | 1 | <div class="max-w-5xl mx-auto px-4 py-10"> |
2 | | - <%= link_to "← Temporadas", seasons_path, class: "text-sm text-gray-500 hover:text-white transition-colors mb-6 inline-block" %> |
| 2 | + <%= link_to "← Temporadas", seasons_path, |
| 3 | + style: "font-size:11px;color:var(--retro-gold-dim);font-family:var(--retro-font);text-decoration:none;letter-spacing:0.08em;display:inline-block;margin-bottom:20px" %> |
3 | 4 |
|
4 | | - <div class="mb-8"> |
5 | | - <p class="text-kl-teal text-sm font-medium uppercase tracking-wider mb-1">IDL Kings Lendas</p> |
6 | | - <h1 class="text-3xl font-black text-white"><%= @season_data[:label] %></h1> |
| 5 | + <div style="margin-bottom:24px"> |
| 6 | + <div class="retro-section-label">// IDL Kings Lendas</div> |
| 7 | + <h1 class="retro-title-lg"><%= @season_data[:label] %></h1> |
7 | 8 | <% if @season_data[:champion] %> |
8 | | - <p class="text-lg text-kl-gold mt-1"> |
9 | | - <i class="ri-trophy-fill"></i> Campeão: <span class="font-bold"><%= @season_data[:champion] %></span> |
10 | | - </p> |
| 9 | + <p style="font-size:13px;color:var(--retro-gold);font-family:var(--retro-font);margin-top:8px">◆ Campeão: <strong><%= @season_data[:champion] %></strong></p> |
11 | 10 | <% end %> |
12 | 11 | </div> |
13 | 12 |
|
14 | 13 | <!-- Standings --> |
15 | | - <div class="card-glass rounded-2xl overflow-hidden mb-6"> |
16 | | - <div class="p-5 border-b border-kl-border"> |
17 | | - <h2 class="text-lg font-bold text-white">Classificação Final</h2> |
18 | | - </div> |
19 | | - <% if @standings.any? %> |
20 | | - <div class="divide-y divide-kl-border/40"> |
21 | | - <% @standings.each_with_index do |row, idx| %> |
22 | | - <div class="flex items-center gap-4 px-5 py-3 hover:bg-white/3 transition-colors"> |
23 | | - <span class="w-7 text-center font-bold <%= idx.zero? ? 'text-kl-gold' : 'text-gray-500' %>"> |
24 | | - <%= idx + 1 %> |
25 | | - <%= idx.zero? ? "🏆" : "" %> |
26 | | - </span> |
27 | | - <%= team_logo(row["Team"], size: 32) %> |
28 | | - <span class="flex-1 font-medium text-white"><%= row["Team"] %></span> |
29 | | - <span class="text-kl-win font-semibold"><%= row["Wins"] %>V</span> |
30 | | - <span class="text-kl-loss font-semibold ml-2"><%= row["Losses"] %>D</span> |
31 | | - </div> |
32 | | - <% end %> |
33 | | - </div> |
34 | | - <% else %> |
35 | | - <div class="p-8 text-center text-gray-500">Dados não disponíveis</div> |
| 14 | + <div style="margin-bottom:24px"> |
| 15 | + <%= retro_panel(title: "Classificação Final", category: "// TEMPORADA", footer: @season_data[:name]) do %> |
| 16 | + <% if @standings.any? %> |
| 17 | + <table style="width:100%;border-collapse:collapse"> |
| 18 | + <thead> |
| 19 | + <tr style="border-bottom:1px solid var(--retro-gold-dim)"> |
| 20 | + <th class="retro-table-head" style="text-align:center;width:32px">#</th> |
| 21 | + <th class="retro-table-head" style="text-align:left">Time</th> |
| 22 | + <th class="retro-table-head" style="text-align:center">V</th> |
| 23 | + <th class="retro-table-head" style="text-align:center">D</th> |
| 24 | + <th class="retro-table-head" style="text-align:center">WR%</th> |
| 25 | + </tr> |
| 26 | + </thead> |
| 27 | + <tbody> |
| 28 | + <% @standings.each_with_index do |row, idx| %> |
| 29 | + <tr class="retro-table-row" style="border-bottom:1px solid rgba(200,155,60,0.08)"> |
| 30 | + <td style="padding:10px 8px;text-align:center;white-space:nowrap"> |
| 31 | + <span style="font-size:12px;font-weight:bold;color:<%= idx.zero? ? 'var(--retro-gold)' : 'rgba(255,255,255,0.4)' %>;font-family:var(--retro-font)"><%= idx + 1 %></span> |
| 32 | + <% if idx.zero? %><span style="font-size:10px;margin-left:2px">🏆</span><% end %> |
| 33 | + </td> |
| 34 | + <td style="padding:10px 8px 10px 0"> |
| 35 | + <div style="display:flex;align-items:center;gap:8px"> |
| 36 | + <%= team_logo(row["Team"], size: 26) %> |
| 37 | + <span style="font-size:12px;font-weight:bold;color:rgba(255,255,255,0.85);font-family:var(--retro-font)"><%= row["Team"] %></span> |
| 38 | + </div> |
| 39 | + </td> |
| 40 | + <td style="padding:10px 8px;text-align:center"> |
| 41 | + <span style="font-size:13px;font-weight:bold;color:var(--color-kl-win);font-family:var(--retro-font)"><%= row["Wins"] %></span> |
| 42 | + </td> |
| 43 | + <td style="padding:10px 8px;text-align:center"> |
| 44 | + <span style="font-size:13px;font-weight:bold;color:var(--color-kl-loss);font-family:var(--retro-font)"><%= row["Losses"] %></span> |
| 45 | + </td> |
| 46 | + <td style="padding:10px 8px;text-align:center"> |
| 47 | + <% w = row["Wins"].to_i; l = row["Losses"].to_i; t = w + l %> |
| 48 | + <% pct = t.zero? ? 0 : (w.to_f / t * 100).round %> |
| 49 | + <span style="font-size:12px;font-weight:bold;font-family:var(--retro-font);color:<%= pct >= 60 ? 'var(--color-kl-win)' : (pct >= 40 ? 'rgba(255,255,255,0.6)' : 'var(--color-kl-loss)') %>"><%= pct %>%</span> |
| 50 | + </td> |
| 51 | + </tr> |
| 52 | + <% end %> |
| 53 | + </tbody> |
| 54 | + </table> |
| 55 | + <% else %> |
| 56 | + <p style="padding:28px;text-align:center;font-size:12px;color:rgba(255,255,255,0.3);font-family:var(--retro-font)">Dados não disponíveis</p> |
| 57 | + <% end %> |
36 | 58 | <% end %> |
37 | 59 | </div> |
38 | 60 |
|
39 | 61 | <!-- Top champions --> |
40 | 62 | <% if @champion_stats.any? %> |
41 | | - <div class="card-glass rounded-2xl p-5"> |
42 | | - <h2 class="text-lg font-bold text-white mb-4">Top Campeões</h2> |
43 | | - <div class="grid grid-cols-5 sm:grid-cols-10 gap-3"> |
| 63 | + <%= retro_panel(title: "Top Campeões", category: "// ESTATÍSTICAS", footer: @season_data[:name]) do %> |
| 64 | + <div style="display:flex;flex-wrap:wrap;gap:12px;padding:4px 0 8px"> |
44 | 65 | <% @champion_stats.each do |champ| %> |
45 | | - <div class="text-center"> |
| 66 | + <div style="text-align:center;width:58px"> |
46 | 67 | <%= champion_icon(champ["Champion"], size: 44, css_class: "mx-auto") %> |
47 | | - <p class="text-xs text-gray-400 mt-1 truncate"><%= champ["Champion"] %></p> |
48 | | - <p class="text-xs text-kl-teal"><%= champ["Picks"] %>P</p> |
| 68 | + <p style="font-size:9px;color:rgba(255,255,255,0.4);margin-top:4px;font-family:var(--retro-font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap"><%= champ["Champion"] %></p> |
| 69 | + <p style="font-size:10px;color:var(--retro-teal);font-family:var(--retro-font)"><%= champ["Picks"] %>P</p> |
49 | 70 | </div> |
50 | 71 | <% end %> |
51 | 72 | </div> |
52 | | - </div> |
| 73 | + <% end %> |
53 | 74 | <% end %> |
54 | 75 | </div> |
0 commit comments