-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCustomizePracticePage.vue
More file actions
115 lines (108 loc) · 2.41 KB
/
CustomizePracticePage.vue
File metadata and controls
115 lines (108 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<template>
<q-page class="mobile-container">
<div class="column full-viewport-height q-pb-lg">
<q-stepper
transition-next="slide-left"
flat
v-model="step"
ref="stepper"
contracted
color="primary"
animated
>
<q-step
title="Mode Picker"
:name="1"
:done="step > 1"
>
<mode-picker />
</q-step>
<q-step
:name="2"
title="Value Picker"
caption="Optional"
:done="step > 2"
>
<value-picker />
</q-step>
<q-step
:name="3"
title="Difficulty Picker"
>
<difficulty-picker />
</q-step>
<template v-slot:navigation>
<q-stepper-navigation class="flex justify-center q-gutter-sm">
<router-link
to="/"
>
<q-btn
class="q-px-xl q-py-xs"
rounded
color="red"
label="Exit"
size="12px"
/>
</router-link>
<q-btn
v-if="step < 3"
class="q-px-xl q-py-xs"
rounded
@click="$refs.stepper.next()"
color="primary"
label="Next"
size="12px"
/>
<router-link
v-else
to="/"
>
<q-btn
class="q-px-xl q-py-xs"
rounded
color="primary"
label="Done"
size="12px"
/>
</router-link>
</q-stepper-navigation>
</template>
</q-stepper>
</div>
</q-page>
</template>
<script>
import ModePicker from "../components/ModePicker.vue";
import ValuePicker from "../components/ValuePicker.vue";
import DifficultyPicker from "../components/DifficultyPicker.vue";
export default {
data () {
return {
step: 1
};
},
components: {
ModePicker,
ValuePicker,
DifficultyPicker
}
};
</script>
<style>
.mobile-container {
width: 420px;
max-height: 100%;
display: flex;
flex-direction: column;
}
@media (max-width: 599px) {
.mobile-container {
width: 100%;
min-height: 100vh;
min-height: -webkit-fill-available;
display: flex;
flex-direction: column;
justify-content: space-between;
}
}
</style>