49 lines
1.2 KiB
Vue
49 lines
1.2 KiB
Vue
<template>
|
|
<v-container class="pa-4">
|
|
<v-row class="justify-center mt-6">
|
|
<v-col cols="12" md="8" lg="6">
|
|
<v-card elevation="2">
|
|
<v-card-title class="text-h6 font-weight-bold">Информация</v-card-title>
|
|
<v-card-text class="d-flex flex-lg-column ga-6 border-b-thin">
|
|
<p>
|
|
{{ data?.description }}
|
|
</p>
|
|
<p>
|
|
<strong>Время на прохождение — {{ data?.time }} минут</strong>
|
|
</p>
|
|
</v-card-text>
|
|
<v-card-actions class="mx-2 my-4">
|
|
<v-btn
|
|
color="white"
|
|
class="ml-auto bg-teal-darken-1 px-9"
|
|
@click="startTest"
|
|
>
|
|
{{ isExamMode ? 'Начать' : 'Тренироваться' }}
|
|
</v-btn>
|
|
</v-card-actions>
|
|
</v-card>
|
|
</v-col>
|
|
</v-row>
|
|
</v-container>
|
|
</template>
|
|
|
|
<script>
|
|
import { useRoute } from 'vue-router';
|
|
import { computed } from 'vue';
|
|
|
|
export default {
|
|
props: {
|
|
startTest: Function,
|
|
data: Object,
|
|
},
|
|
setup() {
|
|
const route = useRoute();
|
|
const isExamMode = computed(() => route.query.mode === 'exam');
|
|
|
|
return {
|
|
isExamMode
|
|
};
|
|
}
|
|
};
|
|
</script>
|