From 591ba844bd979e6f9c371a1e7ed84205d2c93750 Mon Sep 17 00:00:00 2001
From: Leonardo Bishop <me@leonardobishop.com>
Date: Sun, 5 Nov 2023 10:11:43 +0000
Subject: add qr to tetris playing screen

---
 frontend/src/components/TetrisBoard.vue | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/TetrisBoard.vue')

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>
 
-- 
cgit v1.2.3-70-g09d2

