diff --git a/client/src/components/BingoTile.vue b/client/src/components/BingoTile.vue index 034fbf3..e22653d 100644 --- a/client/src/components/BingoTile.vue +++ b/client/src/components/BingoTile.vue @@ -2,90 +2,96 @@ import { computed } from 'vue' const props = defineProps<{ - type: "connect" | "understand" | "act" - text: string - status: "not started" | "started" | "completed" - selected: boolean + type: 'connect' | 'understand' | 'act' + text: string + status: 'not started' | 'started' | 'completed' + selected: boolean }>() - const icon = computed(() => { - switch (props.type) { - case "act": - return "walking.svg" - case "understand": - return "brain.svg" - default: - return "link.svg" - } + switch (props.type) { + case 'act': + return 'walking.svg' + case 'understand': + return 'brain.svg' + default: + return 'link.svg' + } }) - const backgroundColour = computed(() => { - switch (props.status) { - case "started": - return "bg-primaryPink" - case "completed": - return "bg-lightBlue" - default: - return "bg-creamWhite" - } + switch (props.status) { + case 'started': + return 'bg-primaryPink' + case 'completed': + return 'bg-lightBlue' + default: + return 'bg-creamWhite' + } }) const textColour = computed(() => { - switch (props.status) { - case "started": - case "completed": - return "text-primaryWhite" - default: - return "text-primaryBlack" - } + switch (props.status) { + case 'completed': + return 'text-primaryWhite' + default: + return 'text-primaryBlack' + } }) const iconBackground = computed(() => { - switch (backgroundColour.value) { - case "bg-creamWhite": - return "dark" - default: - return "light" - } + switch (backgroundColour.value) { + case 'bg-creamWhite': + return 'dark' + default: + return 'light' + } }) - diff --git a/client/src/views/BlingoView.vue b/client/src/views/BlingoView.vue index d8469b6..2be78d0 100644 --- a/client/src/views/BlingoView.vue +++ b/client/src/views/BlingoView.vue @@ -3,18 +3,57 @@ import BlingoTile from '@/components/BingoTile.vue'