Updating game data to mid season patch and made card gallery nicer

This commit is contained in:
2026-07-17 09:42:50 -04:00
parent 7b0f2ce1a5
commit 5aff9910c1
709 changed files with 1485 additions and 547 deletions
@@ -1,5 +1,4 @@
@using System.Text.RegularExpressions
@using global::Model
@namespace Chrono.Components
@if (Card != null)
@@ -12,7 +11,7 @@
{
<div class="detail-image">
<img src="@Card.ImagePath" alt="@Card.Name"
onerror="this.style.display='none';this.parentElement.style.display='none'"/>
onerror="this.src='@Card.SmallImagePath';this.onerror=null;"/>
</div>
}
<div class="detail-info">
@@ -42,7 +41,7 @@
@if (Card.Faction != null)
{
<div class="detail-field">
<span class="field-label"><i class="bi bi-flag-fill"></i> Faction</span>
<span class="field-label"><i class="bi bi-flag-fill"></i> Syndicate</span>
<span class="field-value">@Card.Faction</span>
</div>
}
@@ -26,7 +26,7 @@
border: 1px solid var(--border);
border-radius: 16px;
padding: 0;
max-width: 720px;
max-width: 850px;
width: 92vw;
max-height: 88vh;
overflow-y: auto;
@@ -76,13 +76,15 @@
}
.detail-image {
flex: 0 0 260px;
flex: 0 0 320px;
}
.detail-image img {
width: 100%;
border-radius: var(--radius);
box-shadow: var(--shadow);
max-height: 80vh;
object-fit: contain;
}
/* ── No-image layout ── */
@@ -1,4 +1,3 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">
@@ -13,12 +12,12 @@
<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">
<nav class="nav flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<NavLink class="nav-link" href="home">
<i class="bi bi-house-door-fill nav-icon"></i> Home
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="cards">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<i class="bi bi-collection-fill nav-icon"></i> Cards
</NavLink>
</div>
+87 -22
View File
@@ -1,5 +1,6 @@
@page "/"
@page "/cards"
@using Model
@using Chrono.Components
@inject AnalyticsService AnalyticsService
<PageTitle>Chrono CCG - Card Gallery</PageTitle>
@@ -27,7 +28,8 @@
<i class="bi bi-person-fill"></i> Immortalized
</button>
<div class="tab link-toggle @(agentLink ? "active" : "")" @onclick="ToggleAgentLink" title="Link Agents and Immortalized cards">
<div class="tab link-toggle @(agentLink ? "active" : "")" @onclick="ToggleAgentLink"
title="Link Agents and Immortalized cards">
<i class="bi bi-link-45deg"></i>
<span>Linked</span>
<span class="toggle-switch @(agentLink ? "on" : "off")"></span>
@@ -50,13 +52,16 @@
<button class="search-clear" @onclick="ClearSearch"><i class="bi bi-x-lg"></i></button>
}
</div>
<select @bind="factionFilter" class="form-select filter-select">
<option value="">All Factions</option>
@foreach (var f in factions)
<div class="syndicate-toggle-group">
@foreach (var s in syndicates)
{
<option value="@f">@f</option>
<button class="syndicate-btn @(syndicateFilter.Contains(s) ? "active" : "") @s.ToLowerInvariant()"
@onclick="() => SetSyndicate(s)" title="@s">
<span class="syn-icon"></span>
<span class="syn-name">@s</span>
</button>
}
</select>
</div>
<select @bind="costFilter" class="form-select filter-select">
<option value="">All Costs</option>
@for (var i = 0; i <= 13; i++)
@@ -94,12 +99,15 @@
<button @onclick="ClearCategoryFilter"><i class="bi bi-x"></i></button>
</span>
}
@if (factionFilter != "")
@if (syndicateFilter.Count > 0)
{
<span class="filter-chip">
<i class="bi bi-flag-fill"></i> @factionFilter
<button @onclick="ClearFactionFilter"><i class="bi bi-x"></i></button>
</span>
@foreach (var s in syndicateFilter)
{
<span class="filter-chip">
<i class="bi bi-flag-fill"></i> @s
<button @onclick="() => SetSyndicate(s)"><i class="bi bi-x"></i></button>
</span>
}
}
@if (costFilter != "")
{
@@ -133,11 +141,55 @@
<div class="card-shimmer"></div>
<img src="@card.ImagePath" alt="@card.Name" loading="lazy"
onerror="this.src='data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%22200%22 height=%22280%22><rect fill=%22%23222244%22 width=%22200%22 height=%22280%22/><text fill=%22%23686888%22 font-size=%2214%22 x=%22100%22 y=%22140%22 text-anchor=%22middle%22 dominant-baseline=%22middle%22>No Image</text></svg>'"/>
@if (card.IsImmortalized)
@if (card.Cost.HasValue)
{
<div class="card-immortalize-badge" title="Immortalizes"><i class="bi bi-star-fill"></i>
<div class="card-cost-badge" title="Cost">@card.Cost</div>
}
@if (card.IsImmortalized || card.HasImmortalize)
{
<div class="card-immortalize-badge" title="@(card.IsImmortalized ? "Immortalized" : "Immortalizes")">
<i class="bi bi-star-fill"></i>
</div>
}
<div class="card-info-overlay">
<div class="card-name-overlay">
<span class="name-text">@card.Name</span>
</div>
@if (!string.IsNullOrEmpty(card.Description))
{
<div class="card-description">@card.Description</div>
}
@if (card.IsImmortalized && !string.IsNullOrEmpty(card.ImmortalizeFrom))
{
<div class="card-immortalize-info">
<i class="bi bi-arrow-left-circle-fill"></i> From @card.ImmortalizeFrom
</div>
}
else if (!string.IsNullOrEmpty(card.ImmortalizeWhen))
{
<div class="card-immortalize-info">
<i class="bi bi-star-fill"></i> @card.ImmortalizeWhen
</div>
}
@if (card.Attack.HasValue || card.Health.HasValue)
{
<div class="card-stats-row">
@if (card.Attack.HasValue)
{
<span class="stat attack"><i class="bi bi-crosshair"></i> @card.Attack</span>
}
@if (card.Health.HasValue)
{
<span class="stat health"><i class="bi bi-heart-fill"></i> @card.Health</span>
}
</div>
}
</div>
</div>
@if (showDetailedView)
{
@@ -187,20 +239,20 @@
private string categoryFilter = "";
private string immortalFilter = "";
private bool agentLink = true;
private string factionFilter = "";
private HashSet<string> syndicateFilter = [];
private string costFilter = "";
private string sortBy = "Cost";
private bool sortDescending;
private bool showDetailedView;
private CardData? selectedCard;
private List<string> factions = [];
private List<string> syndicates = [];
private bool HasActiveFilters => categoryFilter != "" || factionFilter != "" || costFilter != "" || immortalFilter != "";
private bool HasActiveFilters => categoryFilter != "" || syndicateFilter.Count > 0 || costFilter != "" || immortalFilter != "";
protected override void OnInitialized()
{
allCards = CardDatabase.Cards;
factions = allCards
syndicates = allCards
.Select(c => c.Faction)
.Where(f => f != null)
.Distinct()
@@ -213,7 +265,7 @@
var primarySet = allCards.Where(c =>
c.MatchesSearch(search) &&
(categoryFilter == "" || c.Category == categoryFilter) &&
(factionFilter == "" || c.Faction == factionFilter) &&
(syndicateFilter.Count == 0 || (c.Faction != null && syndicateFilter.Contains(c.Faction))) &&
(costFilter == "" || c.Cost?.ToString() == costFilter)
);
@@ -273,6 +325,7 @@
seen.Add(card.Name);
}
}
return result;
}
@@ -286,6 +339,18 @@
immortalFilter = "";
}
private void SetSyndicate(string syn)
{
if (syndicateFilter.Contains(syn))
{
syndicateFilter.Remove(syn);
}
else
{
syndicateFilter.Add(syn);
}
}
private void SetCategory(string cat)
{
categoryFilter = categoryFilter == cat ? "" : cat;
@@ -298,9 +363,9 @@
_ = AnalyticsService.TrackEvent("filter_category", new { category = "All" });
}
private void ClearFactionFilter()
private void ClearSyndicateFilter()
{
factionFilter = "";
syndicateFilter.Clear();
}
private void ToggleAgentLink()
@@ -339,7 +404,7 @@
{
search = "";
categoryFilter = "";
factionFilter = "";
syndicateFilter.Clear();
costFilter = "";
}
+187 -14
View File
@@ -183,7 +183,74 @@
.filter-select {
width: auto;
min-width: 140px;
min-width: 120px;
}
/* ── Syndicate Toggle Group ── */
.syndicate-toggle-group {
display: flex;
gap: 0.25rem;
background: var(--bg-surface);
padding: 0.25rem;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
}
.syndicate-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem 0.75rem;
border: 1px solid transparent;
border-radius: 4px;
background: transparent;
color: var(--text-secondary);
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.syndicate-btn:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.syndicate-btn.active {
background: var(--bg-elevated);
border-color: var(--border);
color: var(--text-primary);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* Syndicate Colors */
.syndicate-btn.active.singularity { border-color: #ffffff; color: #ffffff; }
.syndicate-btn.active.phasetide { border-color: #2196f3; color: #2196f3; }
.syndicate-btn.active.silence { border-color: #9c27b0; color: #9c27b0; }
.syndicate-btn.active.lifeblood { border-color: #4caf50; color: #4caf50; }
.syndicate-btn.active.sungrace { border-color: #ff9800; color: #ff9800; }
.syndicate-btn.active.splittergleam { border-color: #f44336; color: #f44336; }
.syndicate-btn.active.eclipse { border-color: #ffea00; color: #ffea00; }
.syn-icon {
width: 12px;
height: 12px;
border-radius: 50%;
background: currentColor;
opacity: 0.5;
}
.syndicate-btn.active .syn-icon {
opacity: 1;
box-shadow: 0 0 8px currentColor;
}
@media (max-width: 1100px) {
.syndicate-toggle-group {
display: grid;
grid-template-columns: repeat(3, 1fr);
}
}
/* ── Active Filter Chips ── */
@@ -262,14 +329,27 @@
/* ── Card Grid ── */
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
}
@media (min-width: 1400px) {
.card-grid {
grid-template-columns: repeat(6, 1fr);
}
}
.card-grid.detailed-view {
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card-grid.detailed-view .card-name-overlay,
.card-grid.detailed-view .card-info-overlay,
.card-grid.detailed-view .card-cost-badge,
.card-grid.detailed-view .card-immortalize-badge {
display: none;
}
.card-grid.detailed-view .card-cell {
display: flex;
flex-direction: row;
@@ -437,25 +517,114 @@
z-index: 1;
}
.card-name-overlay {
padding: 0 0 0.25rem;
color: white;
font-size: 0.85rem;
font-weight: 700;
text-align: center;
text-shadow: 0 1px 3px rgba(0,0,0,0.8);
display: flex;
justify-content: center;
align-items: flex-start;
}
.name-text {
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.1;
max-width: 100%;
}
.card-info-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 2.5rem 0.5rem 0.5rem;
background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
display: flex;
flex-direction: column;
gap: 0.25rem;
z-index: 2;
}
.card-description {
font-size: 0.7rem;
color: rgba(255, 255, 255, 0.9);
line-height: 1.25;
text-align: center;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.card-immortalize-info {
font-size: 0.65rem;
color: var(--gold);
font-weight: 600;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.02em;
background: rgba(0, 0, 0, 0.3);
padding: 0.15rem 0.3rem;
border-radius: 4px;
margin: 0 auto;
}
.card-stats-row {
display: flex;
justify-content: space-around;
align-items: center;
margin-top: 0.1rem;
}
.card-stats-row .stat {
display: flex;
align-items: center;
gap: 0.25rem;
font-weight: 800;
font-size: 1rem;
text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.card-stats-row .stat.attack {
color: #ffcc80;
}
.card-stats-row .stat.health {
color: #ef9a9a;
}
.card-stats-row .stat i {
font-size: 0.85rem;
}
.card-cost-badge {
position: absolute;
top: 0.4rem;
left: 0.4rem;
background: rgba(0, 0, 0, 0.75);
top: 0.3rem;
left: 0.3rem;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(4px);
color: var(--gold);
font-weight: 700;
font-size: 0.8rem;
padding: 0.15rem 0.5rem;
border-radius: 100px;
border: 1px solid rgba(255, 215, 0, 0.3);
z-index: 2;
line-height: 1.4;
color: #fff;
font-weight: 800;
font-size: 0.75rem;
padding: 0.1rem 0.4rem;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.2);
z-index: 3;
line-height: 1.2;
}
.card-cost-badge::before {
content: "⚡";
margin-right: 0.15rem;
margin-right: 0.1rem;
color: #ffd700;
}
.card-immortalize-badge {
@@ -558,6 +727,10 @@
flex-direction: column;
}
.syndicate-toggle-group {
grid-template-columns: repeat(2, 1fr);
}
.filter-select {
width: 100%;
min-width: 0;
+3 -3
View File
@@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="10.0.9" PrivateAssets="all"/>
<PackageReference Include="MudBlazor" Version="9.6.0" />
<PackageReference Include="MudBlazor" Version="9.6.0"/>
<PackageReference Include="Telerik.UI.for.Blazor" Version="14.0.0" PrivateAssets="none"/>
</ItemGroup>
@@ -27,7 +27,7 @@
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="Components\Layout\MainLayout.razor" />
<AdditionalFiles Include="Components\Layout\NavMenu.razor" />
<AdditionalFiles Include="Components\Layout\MainLayout.razor"/>
<AdditionalFiles Include="Components\Layout\NavMenu.razor"/>
</ItemGroup>
</Project>
+2 -1
View File
@@ -13,4 +13,5 @@
@using Standalone.Components.Layout
@using Telerik.Blazor
@using Telerik.Blazor.Components
@using Telerik.DataSource
@using Telerik.DataSource
@using Standalone.Components

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 568 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 808 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 532 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 584 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 531 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 512 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 577 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 515 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 567 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 579 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Some files were not shown because too many files have changed in this diff Show More