mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-11-02 23:20:51 +01:00
feat: player achievements view
This commit is contained in:
1 parent
3767ff6a71
commit
fff699faf1
12 files changed
+210
-58
No files matched your search
@@ -0,0 +1,41 @@
|
||||
@using WotBlitzStatisticsPro.Blazor.Model
|
||||
|
||||
<RadzenCard class="m-3">
|
||||
<div class="d-flex flex-column align-items-center">
|
||||
<RadzenImage Path="@MedalInfo.Image" Class="mr-3" Style="width: 100px; height: 100px;" />
|
||||
<div>
|
||||
<div>
|
||||
<b>@MedalInfo.Description</b>
|
||||
@if(MedalInfo.MaxSeriesValue != null)
|
||||
{
|
||||
@($" ({MedalInfo.MaxSeriesValue})")
|
||||
}
|
||||
</div>
|
||||
<div class="mt-3" style="margin-top: 20px;">
|
||||
@if(conditions != null)
|
||||
{
|
||||
@foreach (var conditionRow in conditions)
|
||||
{
|
||||
<p>@conditionRow</p>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</RadzenCard>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
public IMedal MedalInfo { get; set; }
|
||||
|
||||
string[] conditions;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
if(MedalInfo.Condition != null)
|
||||
{
|
||||
conditions = MedalInfo.Condition.Split(Environment.NewLine);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user