Enhance Event Rank Color System
This commit is contained in:
@@ -49,9 +49,12 @@ else
|
|||||||
<MudTd Class="@($"event-rank-{ii})")">
|
<MudTd Class="@($"event-rank-{ii})")">
|
||||||
@if (st != null)
|
@if (st != null)
|
||||||
{
|
{
|
||||||
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
|
||||||
|
<span style="@($"display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: {AppIcons.RankedEventColor(ii)}; flex-shrink: 0;")")></span>
|
||||||
<span>@st.EventDefinition.ShortName
|
<span>@st.EventDefinition.ShortName
|
||||||
<EventAttributes EventDefinition="@st.EventDefinition"></EventAttributes>
|
<EventAttributes EventDefinition="@st.EventDefinition"></EventAttributes>
|
||||||
</span>
|
</span>
|
||||||
|
</MudStack>
|
||||||
}
|
}
|
||||||
</MudTd>
|
</MudTd>
|
||||||
}
|
}
|
||||||
@@ -86,7 +89,10 @@ else
|
|||||||
<MudTd Class="@eventClass">
|
<MudTd Class="@eventClass">
|
||||||
@if (student != null)
|
@if (student != null)
|
||||||
{
|
{
|
||||||
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
|
||||||
|
<span style="@($"display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: {AppIcons.RankedEventColor(student.Item2)}; flex-shrink: 0;")")></span>
|
||||||
@student.Item1.FirstName
|
@student.Item1.FirstName
|
||||||
|
</MudStack>
|
||||||
}
|
}
|
||||||
</MudTd>
|
</MudTd>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,14 +11,24 @@
|
|||||||
.Find(e => e.EventDefinition == Team.Event)?.Rank;
|
.Find(e => e.EventDefinition == Team.Event)?.Rank;
|
||||||
var color = AppIcons.RankedEventColor(eventRank ?? 0);
|
var color = AppIcons.RankedEventColor(eventRank ?? 0);
|
||||||
var captain = Team.Captain != null && Team.Captain.Equals(student);
|
var captain = Team.Captain != null && Team.Captain.Equals(student);
|
||||||
|
var rankLabel = eventRank.HasValue ? $"Rank {eventRank}" : "Unranked";
|
||||||
|
|
||||||
<MudPaper Class="d-inline-flex pa-2 mx-3 my-1" Style="@($"background:{color};")">
|
<MudTooltip Text="@rankLabel">
|
||||||
|
<MudChip T="string"
|
||||||
|
Size="Size.Medium"
|
||||||
|
Variant="Variant.Outlined"
|
||||||
|
Class="mx-1 my-1">
|
||||||
|
@if (eventRank.HasValue)
|
||||||
|
{
|
||||||
|
<span style="@($"display: inline-block; width: 12px; height: 12px; border-radius: 50%; background-color: {color}; margin-right: 6px;")")></span>
|
||||||
|
}
|
||||||
@student.FirstName
|
@student.FirstName
|
||||||
@if (captain && Team.Event.EventFormat != EventFormat.Individual)
|
@if (captain && Team.Event.EventFormat != EventFormat.Individual)
|
||||||
{
|
{
|
||||||
<MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" />
|
<MudIcon Icon="@AppIcons.Captain" Size="Size.Small" Style="margin-left: 4px;" />
|
||||||
}
|
}
|
||||||
</MudPaper>
|
</MudChip>
|
||||||
|
</MudTooltip>
|
||||||
}
|
}
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
|||||||
@@ -224,7 +224,7 @@ Wrap main page content in consistent containers:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 8. Enhance Event Rank Color System
|
### 8. Enhance Event Rank Color System ✅ COMPLETED
|
||||||
**Current State**: Good color-coding system (ranks 1-6) defined in app.css
|
**Current State**: Good color-coding system (ranks 1-6) defined in app.css
|
||||||
|
|
||||||
**Potential Enhancement**:
|
**Potential Enhancement**:
|
||||||
@@ -336,7 +336,7 @@ Consider using MudChip components with rank colors for better visual distinction
|
|||||||
|
|
||||||
### Phase 3: Enhancements (Nice to Have)
|
### Phase 3: Enhancements (Nice to Have)
|
||||||
7. Audit and ensure button hierarchy consistency
|
7. Audit and ensure button hierarchy consistency
|
||||||
8. Enhance event rank visualization
|
8. ✅ Enhance event rank visualization
|
||||||
9. Improve form layout grouping
|
9. Improve form layout grouping
|
||||||
10. Add micro-interactions and transitions
|
10. Add micro-interactions and transitions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user