diff --git a/src/components/Ingame.vue b/src/components/Ingame.vue index ad6eedf..72fbdcc 100644 --- a/src/components/Ingame.vue +++ b/src/components/Ingame.vue @@ -1,15 +1,30 @@ @@ -17,34 +32,46 @@ const ig = useIngame() - + + + + + - + - + - + - + - + @@ -77,4 +104,17 @@ const ig = useIngame() text-align: center; padding: 10px; } +.full-overlay-blur { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + backdrop-filter: blur(5px); + background-color: rgba(0, 0, 0, 0.2); + + display: flex; + justify-content: center; + align-items: center; +} diff --git a/src/components/ingame/TrumpC.vue b/src/components/ingame/TrumpC.vue new file mode 100644 index 0000000..34ed20a --- /dev/null +++ b/src/components/ingame/TrumpC.vue @@ -0,0 +1,134 @@ + + + + + + {{ trumpInf.self?.name || "Loading Player..."}} + + + + + + + You won the last round! + + + + + + Select a trumpsuit + + + + + + + + + + + Your Hand ({{ trumpInf.selfHand?.cards.length || 0 }} Cards) + + + + + + + + + + + + + + Waiting for {{ trumpInf.chooser?.name || 'the other player' }} to select the trump suit... + + + + + + Your Hand ({{ trumpInf.selfHand?.cards.length || 0 }} Cards) + + + + + + + + + + + + + diff --git a/src/components/ingame/TurnC.vue b/src/components/ingame/TurnC.vue index d4259fa..6e5dcdb 100644 --- a/src/components/ingame/TurnC.vue +++ b/src/components/ingame/TurnC.vue @@ -5,8 +5,8 @@ import {useIngame} from "@/composables/useIngame.ts"; import type {GameInfo} from "@/types/GameTypes.ts"; const ig = useIngame() -const currentPlayer = computed(() => (ig.data).playerQueue.currentPlayer) -const queue = computed(() => { return (ig.data).playerQueue.queue ?? []}) +const currentPlayer = computed(() => (ig.data).playerQueue?.currentPlayer) +const queue = computed(() => { return (ig.data).playerQueue?.queue ?? []}) diff --git a/src/views/Game.vue b/src/views/Game.vue index 3798bcc..c837e41 100644 --- a/src/views/Game.vue +++ b/src/views/Game.vue @@ -33,7 +33,7 @@ ui.requestState().then(() => { - +