From ba4ee10a2a8cc5c5a393e71c5c3621a127cbf797 Mon Sep 17 00:00:00 2001 From: Victor Roest Date: Sun, 7 Jul 2019 19:44:33 +0200 Subject: [PATCH] Card Stuff (WIP) --- src/App.vue | 2 +- src/components/CardComponent.vue | 42 ++++++++++++++++++++++++++++++++ src/components/StackedCards.vue | 34 ++++++++++++++++++++++++++ src/views/Game.vue | 2 +- src/views/JoinRoom.vue | 6 +++++ yarn.lock | 31 ++++++++++++----------- 6 files changed, 99 insertions(+), 18 deletions(-) create mode 100644 src/components/CardComponent.vue create mode 100644 src/components/StackedCards.vue diff --git a/src/App.vue b/src/App.vue index 2246669..a2c1558 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,7 +10,7 @@ diff --git a/src/components/StackedCards.vue b/src/components/StackedCards.vue new file mode 100644 index 0000000..075de02 --- /dev/null +++ b/src/components/StackedCards.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/views/Game.vue b/src/views/Game.vue index 69b2cb8..c568647 100644 --- a/src/views/Game.vue +++ b/src/views/Game.vue @@ -40,7 +40,7 @@ import { Card } from "../models/Card"; import { Answer } from "../models/Answer"; @Component({ - name: "Game", + components: {Card}, }) export default class GameVueView extends Vue { private game: Game = {}; diff --git a/src/views/JoinRoom.vue b/src/views/JoinRoom.vue index aef8fb6..8875962 100644 --- a/src/views/JoinRoom.vue +++ b/src/views/JoinRoom.vue @@ -14,19 +14,25 @@ + +