From cd8f7a52d3f1a5ebc8c52179596c5392f1ba7b8b Mon Sep 17 00:00:00 2001 From: carlobeltrame Date: Sat, 17 Feb 2024 19:07:46 +0100 Subject: [PATCH] Working version of the name game --- lang/de/t.php | 2 ++ .../js/components/nameGame/NameGameGuess.vue | 20 ++++++++++++---- .../js/components/nameGame/NameGameRound.vue | 21 ++++++++++++----- .../js/components/nameGame/ScoreScreen.vue | 23 +++++++++++++++++++ 4 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 resources/js/components/nameGame/ScoreScreen.vue diff --git a/lang/de/t.php b/lang/de/t.php index f2ad0db1..933f4b5f 100644 --- a/lang/de/t.php +++ b/lang/de/t.php @@ -557,9 +557,11 @@ "next" => "Weiter", "page_title" => "Name Game", "participants" => "TN", + "play_again" => "Nochmals", "select_all" => "Alle auswählen", "start" => "Los geht's", "this_is" => "Das ist:", + "well_done" => "Super gemacht!", "who_is_this" => "Wer ist das?", "you_guessed" => "Deine Antwort:", ), diff --git a/resources/js/components/nameGame/NameGameGuess.vue b/resources/js/components/nameGame/NameGameGuess.vue index 43357bdc..228710b2 100644 --- a/resources/js/components/nameGame/NameGameGuess.vue +++ b/resources/js/components/nameGame/NameGameGuess.vue @@ -6,19 +6,31 @@
- {{ $t('t.views.name_game.correct') }} +
{{ $t('t.views.name_game.correct') }}
+
{{ $t('t.views.name_game.this_is') }}
+
+ +   + {{ participant.scout_name }} +
{{ $t('t.views.name_game.this_is') }}
-
{{ participant.scout_name }}
+
+ {{ participant.scout_name }} +
{{ $t('t.views.name_game.you_guessed') }}
-
+
  {{ submittedGuess.scout_name }}
- +
diff --git a/resources/js/components/nameGame/NameGameRound.vue b/resources/js/components/nameGame/NameGameRound.vue index 97098cc4..bd840a9a 100644 --- a/resources/js/components/nameGame/NameGameRound.vue +++ b/resources/js/components/nameGame/NameGameRound.vue @@ -30,18 +30,20 @@ @incorrect="incorrect" @advance="step += 1" > - + + +