From 60bbe4379f69bde9848edb2baeaecff33a67a8d7 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Wed, 25 Feb 2026 22:14:56 +0100 Subject: [PATCH] feat: move statistics action buttons above image list (#12) * feat: move statistics action buttons above image list Co-Authored-By: Claude Sonnet 4.6 * feat: add statistics button to start screen Co-Authored-By: Claude Sonnet 4.6 * feat: swap button order on statistics screen Co-Authored-By: Claude Sonnet 4.6 --------- Co-authored-by: Claude Sonnet 4.6 --- MemoryGame/Pages/Home.razor | 83 +++++++++++++++++++------------------ 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/MemoryGame/Pages/Home.razor b/MemoryGame/Pages/Home.razor index ca05a22..e279ed6 100644 --- a/MemoryGame/Pages/Home.razor +++ b/MemoryGame/Pages/Home.razor @@ -13,33 +13,7 @@

Lädt...

} - else if (_currentSession == null) - { -
-

Memory-Spiel

-

Übe das Zuordnen von Bildern zu Wörtern

- -
- } - else if (_currentSession.IsComplete && !_showStatistics) - { -
-

Spiel beendet!

-
-
- Richtig: - @_currentSession.CorrectAnswers -
-
- Falsch: - @_currentSession.IncorrectAnswers -
-
- - -
- } - else if (_currentSession.IsComplete && _showStatistics) + else if (_showStatistics) { var words = GameService.GetWords() .OrderBy(w => w.CorrectCount + w.IncorrectCount == 0 ? 1 : 0) @@ -64,6 +38,21 @@ } + + + @if (_confirmReset) + { +
+ Alle Statistiken wirklich zurücksetzen? + + +
+ } + else + { + + } +
@foreach (var word in words) { @@ -83,21 +72,33 @@
} - - @if (_confirmReset) - { -
- Alle Statistiken wirklich zurücksetzen? - - +
+ } + else if (_currentSession == null) + { +
+

Memory-Spiel

+

Übe das Zuordnen von Bildern zu Wörtern

+ + +
+ } + else if (_currentSession.IsComplete) + { +
+

Spiel beendet!

+
+
+ Richtig: + @_currentSession.CorrectAnswers
- } - else - { - - } - - +
+ Falsch: + @_currentSession.IncorrectAnswers +
+
+ +
} else