Refactor: layout

This commit is contained in:
2022-11-03 15:32:22 +01:00
parent fe7d3d98b0
commit dba0ab3e23
8 changed files with 100 additions and 62 deletions

35
components/Challenge.vue Normal file
View File

@@ -0,0 +1,35 @@
<template>
<v-container fluid>
<v-subheader class="text-h5 text--primary">Challenge</v-subheader>
<v-divider></v-divider>
<v-btn depressed color="success" class="my-3" @click="playVersus">
<v-icon left>mdi-play</v-icon>
Quiz Spielen
</v-btn>
<AddClosedEndedQuestion />
</v-container>
</template>
<script>
export default {
name: 'ChallengeComponent',
props: {
courseId: {
type: String,
required: true
}
},
data () {
return {
}
},
created () {
},
methods: {
playVersus () {
// TODO
this.$router.push(`${this.$route.path}/play`)
}
}
}
</script>