aboutsummaryrefslogtreecommitdiffstats
path: root/frontend/src/components/TetrisBoard.vue
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/TetrisBoard.vue')
-rw-r--r--frontend/src/components/TetrisBoard.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontend/src/components/TetrisBoard.vue b/frontend/src/components/TetrisBoard.vue
index 0185e53..9767d03 100644
--- a/frontend/src/components/TetrisBoard.vue
+++ b/frontend/src/components/TetrisBoard.vue
@@ -6,7 +6,8 @@ import { type Board } from '@/model/board';
const props = defineProps({
networked: Boolean,
- inputQueue: Array<string>
+ inputQueue: Array<string>,
+ qrCode: String,
});
const renderBoard: Ref<Board> = ref([[]]);
@@ -292,6 +293,10 @@ onMounted(() => {
To do a hard drop, use the arrow up key or <kbd>K</kbd>.
</p>
</div>
+ <div v-if="networked">
+ <h2>Join this game</h2>
+ <QRCode size=200 level="M" :value="qrCode"></QRCode>
+ </div>
</div>
</div>