feat: Search player component implemented. Plus Winrate color schale implementation

This commit is contained in:
Mikhail Shabanov committed 2021-05-18 23:23:39 +02:00
1 parent edfc9aa139
commit 4fb56c3b16
10 files changed
+160 -4

No files matched your search

@@ -18,6 +18,7 @@
</div>
</div>
</div>
<hr>
@code {
[Parameter]
@@ -1,4 +1,24 @@
@Player.Nickname @(Player.ClanTag == null ? string.Empty : $"[{Player.ClanTag}]")
@using WotBlitzStatisticsPro.Blazor.Helpers
@inject IStringLocalizer<App> Localize
<div class="container">
<div class="row">
@Player.Nickname
@if (Player.ClanTag != null)
{
<span style="color: @Constants.ClanTagColor;"> [<span style="font-weight: bolder;">@Player.ClanTag</span>]</span>
}
</div>
<div class="row">
<span style="font-size: 12px; color: @Player.WinRate.ScaleColor()"> <RadzenIcon Icon="flag" Style="height: 15px;" /> @Player.WinRate%</span>
</div>
<div class="row" title="@Localize["Battles"]">
<span style="font-size: 12px"><RadzenIcon Icon="videogame_asset" /> @Player.BattlesCount</span>
</div>
<div class="row" title="@Localize["Last battle"]">
<span style="font-size: 12px"><RadzenIcon Icon="schedule" /> @Player.LastBattle.SinceTime(Localize)</span>
</div>
</div>
<hr>
@code {
[Parameter]