From b5c6b8244dafdd9354e8a43c5db3c18b403feab9 Mon Sep 17 00:00:00 2001 From: Lucas Morgan Date: Sat, 16 Nov 2024 21:39:17 -0600 Subject: [PATCH] Style boost --- Shogi.UI/Layout/NavMenu.razor | 22 ------ .../GameBoard/GameBoardPresentation.razor | 70 +++++++++---------- .../GameBoard/GameboardPresentation.razor.css | 26 +++++-- .../Pages/Play/GameBoard/OpponentName.razor | 4 +- .../Pages/Play/GameBoard/PlayerName.razor | 6 +- 5 files changed, 59 insertions(+), 69 deletions(-) diff --git a/Shogi.UI/Layout/NavMenu.razor b/Shogi.UI/Layout/NavMenu.razor index 246c67d..31a1476 100644 --- a/Shogi.UI/Layout/NavMenu.razor +++ b/Shogi.UI/Layout/NavMenu.razor @@ -29,33 +29,11 @@ @code { async Task CreateSession() - - - { - - - var sessionId = await Api.PostSession(); - - - if (!string.IsNullOrEmpty(sessionId)) - - - { - - - navigator.NavigateTo($"play/{sessionId}"); - - - } - - - } - } diff --git a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor index 9ecf4d7..516ff12 100644 --- a/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor +++ b/Shogi.UI/Pages/Play/GameBoard/GameBoardPresentation.razor @@ -5,24 +5,17 @@
@for (var rank = 1; rank < 10; rank++) - { - foreach (var file in Files) - { - var position = $"{file}{rank}"; - var piece = Session?.BoardState.Board[position]; - var isSelected = piece != null && SelectedPosition == position;
@if (piece != null) - { } @@ -56,9 +49,8 @@ @if (Session != null && UseSideboard == true) - { -