Skip to content

Commit cd436d4

Browse files
committed
feat: improve matchs details and teams UI
1 parent 102e9e3 commit cd436d4

11 files changed

Lines changed: 102 additions & 106 deletions

app/views/cup/champions.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-6xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px">
33
<div>
44
<div class="retro-section-label">// Kings Lendas Cup 2026</div>

app/views/cup/draft.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-6xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px">
33
<div>
44
<div class="retro-section-label">// Kings Lendas Cup 2026</div>

app/views/cup/game_scoreboard.html.erb

Lines changed: 87 additions & 87 deletions
Large diffs are not rendered by default.

app/views/cup/matches.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-5xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="margin-bottom:24px">
33
<div class="retro-section-label">// Kings Lendas Cup 2026</div>
44
<h1 class="retro-title-lg">Partidas</h1>

app/views/cup/results.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-6xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="margin-bottom:24px">
33
<div class="retro-section-label">// Kings Lendas Cup 2026</div>
44
<h1 class="retro-title-lg">Resultados</h1>

app/views/cup/standings.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-5xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="margin-bottom:24px">
33
<div class="retro-section-label">// Kings Lendas Cup 2026</div>
44
<h1 class="retro-title-lg">Classificação</h1>

app/views/seasons/show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-5xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<%= link_to "← Temporadas", seasons_path,
33
style: "font-size:17px;color:var(--retro-gold-dim);font-family:var(--retro-font);text-decoration:none;letter-spacing:0.08em;display:inline-block;margin-bottom:20px" %>
44

app/views/shared/_match_card.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<% tag = show_expand ? "details" : "div" %>
1515
<%= content_tag tag,
16-
style: "border:1px solid var(--retro-gold-dim);background:var(--retro-card);position:relative;overflow:hidden",
16+
style: "border:1px solid var(--retro-gold-dim);background:var(--retro-card);position:relative",
1717
**(show_expand ? {
1818
"data-match-details": true,
1919
ontoggle: "if(this.open){document.querySelectorAll('details[data-match-details]').forEach(function(d){if(d!==this)d.open=false},this);this.querySelectorAll('turbo-frame[data-lazy-src]').forEach(function(f){if(!f.src)f.src=f.dataset.lazySrc})}"

app/views/shared/_navbar.html.erb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
<div class="flex items-center justify-between" style="height:56px">
77

88
<!-- Logo -->
9-
<%= link_to root_path, style: "display:flex;align-items:center;gap:10px;text-decoration:none" do %>
10-
<%= image_tag "/Kings_Lendas_Cup.webp", alt: "Kings Lendas Cup", width: 32, height: 32,
9+
<%= link_to root_path, style: "display:flex;align-items:center;text-decoration:none" do %>
10+
<%= image_tag "/Kings_Lendas_Cup.webp", alt: "Kings Lendas Cup", width: 44, height: 44,
1111
style: "object-fit:contain;filter:drop-shadow(0 0 8px rgba(200,155,60,0.5))",
12-
onerror: "this.onerror=null;this.outerHTML='<div style=\"width:32px;height:32px;background:var(--retro-gold);display:flex;align-items:center;justify-content:center;\"><span style=\"color:#0A0E1A;font-weight:900;font-size:17px;font-family:Verdana\">KL</span></div>'" %>
13-
<div>
14-
<div style="font-size:17px;font-weight:bold;color:var(--retro-gold);letter-spacing:0.06em;line-height:1.2;text-shadow:0 0 12px rgba(200,155,60,0.5)">KINGS LENDAS</div>
15-
<div style="font-size:17px;color:var(--retro-gold-dim);letter-spacing:0.2em">CUP 2026 ◆ BY BAIANO</div>
16-
</div>
12+
onerror: "this.onerror=null;this.outerHTML='<div style=\"width:44px;height:44px;background:var(--retro-gold);display:flex;align-items:center;justify-content:center;\"><span style=\"color:#0A0E1A;font-weight:900;font-size:18px;font-family:Verdana\">KL</span></div>'" %>
1713
<% end %>
1814

1915
<!-- Nav links desktop -->
@@ -32,7 +28,7 @@
3228
<% nav_links.each do |label, path| %>
3329
<% active = current_page?(path) %>
3430
<%= link_to label, path,
35-
style: "font-size:17px;letter-spacing:0.1em;padding:6px 10px;text-transform:uppercase;font-family:Verdana,sans-serif;text-decoration:none;transition:all 0.15s;#{active ? 'color:var(--retro-gold);border-bottom:2px solid var(--retro-gold);' : 'color:rgba(255,255,255,0.5);border-bottom:2px solid transparent;'}",
31+
style: "font-size:14px;letter-spacing:0.06em;padding:6px 8px;text-transform:uppercase;font-family:Verdana,sans-serif;text-decoration:none;transition:all 0.15s;#{active ? 'color:var(--retro-gold);border-bottom:2px solid var(--retro-gold);' : 'color:rgba(255,255,255,0.5);border-bottom:2px solid transparent;'}",
3632
onmouseover: active ? "" : "this.style.color='rgba(255,255,255,0.85)';this.style.borderBottomColor='var(--retro-gold-dim)'",
3733
onmouseout: active ? "" : "this.style.color='rgba(255,255,255,0.5)';this.style.borderBottomColor='transparent'" %>
3834
<% end %>
@@ -42,8 +38,8 @@
4238
<div class="flex items-center gap-3">
4339
<a href="https://kick.com/BaianoTV" target="_blank" rel="noopener"
4440
class="hidden sm:flex items-center gap-2"
45-
style="font-size:16px;font-weight:bold;letter-spacing:0.12em;color:#fff;background:#e53e3e;padding:5px 12px;border:1px solid #fc8181;font-family:Verdana,sans-serif;text-decoration:none">
46-
<span style="width:5px;height:5px;border-radius:50%;background:#fff;animation:live-pulse 2s ease-in-out infinite;display:inline-block"></span>
41+
style="font-size:13px;font-weight:bold;letter-spacing:0.1em;color:#fff;background:#c53030;padding:3px 8px;border:1px solid rgba(252,129,129,0.5);font-family:Verdana,sans-serif;text-decoration:none">
42+
<span style="width:4px;height:4px;border-radius:50%;background:#fff;animation:live-pulse 2s ease-in-out infinite;display:inline-block"></span>
4743
AO VIVO
4844
</a>
4945
<button data-controller="mobile-nav" data-action="click->mobile-nav#toggle"

app/views/teams/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="max-w-6xl mx-auto px-4 py-10">
1+
<div class="max-w-7xl mx-auto px-4 py-10">
22
<div style="margin-bottom:24px">
33
<div class="retro-section-label">// Kings Lendas Cup 2026</div>
44
<h1 class="retro-title-lg">Times</h1>

0 commit comments

Comments
 (0)