style boost
This commit is contained in:
38
Shogi.UI/Pages/Play/GameBoard/OpponentName.razor
Normal file
38
Shogi.UI/Pages/Play/GameBoard/OpponentName.razor
Normal file
@@ -0,0 +1,38 @@
|
||||
@using Shogi.Contracts.Types
|
||||
<div style="margin: 0" class="PrimaryTheme">
|
||||
|
||||
@if (IsTurn)
|
||||
{
|
||||
<span class="turn-marker" title="Shows which player is next to move a piece.">Turn</span>
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@if (InCheck)
|
||||
{
|
||||
<span class="check-marker" title="King is in danger!">Check</span>
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@if (IsVictor)
|
||||
{
|
||||
<span class="victory-marker" title="Victory!">Victor</span>
|
||||
<span> </span>
|
||||
}
|
||||
|
||||
@if (string.IsNullOrEmpty(Name))
|
||||
{
|
||||
<div>Empty Seat</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div>@Name</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public bool IsTurn { get; set; }
|
||||
[Parameter][EditorRequired] public bool InCheck { get; set; }
|
||||
[Parameter][EditorRequired] public bool IsVictor { get; set; }
|
||||
[Parameter][EditorRequired] public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user