|
|
@@ -2,54 +2,6 @@
|
|
2
|
2
|
main.view--survey.f-col.start.w-full
|
|
3
|
3
|
header.w-full.f-col
|
|
4
|
4
|
p survey for profile: {{ current }}
|
|
5
|
|
- //- Transition(name="slide-up" :duration="1600")
|
|
6
|
|
- //- h3(v-if="step == 0") hello, what shall i call you?
|
|
7
|
|
- //- span(v-for="letter in name" class="fade") {{ letter }}
|
|
8
|
|
-
|
|
9
|
|
- //- h3(v-else-if="step == 1") Hi {{ name}}.
|
|
10
|
|
- //- span What can i help you with?
|
|
11
|
|
- //- br
|
|
12
|
|
- //- span I am seeking a
|
|
13
|
|
- //- span(v-if="!seeking") ___________.
|
|
14
|
|
- //- span(v-else class="fade") {{ seeking }}.
|
|
15
|
|
-
|
|
16
|
|
- //- h3(v-else-if="step == 2") Looking for a {{ seeking }} then.
|
|
17
|
|
- //- span You're in the right place.
|
|
18
|
|
- //- br
|
|
19
|
|
- //- span How would you like to use siimee?
|
|
20
|
|
- //- br
|
|
21
|
|
- //- span I am
|
|
22
|
|
- //- span(v-if="!urgency") ___________.
|
|
23
|
|
- //- span(v-else class="fade") {{ urgency }}.
|
|
24
|
|
-
|
|
25
|
|
- //- h3(v-else-if="[3, 4, 5, 6].includes(step)")
|
|
26
|
|
- //- span I am a
|
|
27
|
|
- //- span(v-if="!role && !experience" class="fade") _________ _________
|
|
28
|
|
- //- span(v-else-if="role && !experience" class="fade") _________ {{ role }}
|
|
29
|
|
- //- span(v-else-if="!role && experience" class="fade") {{ experience }} _________
|
|
30
|
|
- //- span(v-else class="fade") {{ experience }} {{ role }}
|
|
31
|
|
- //- span .
|
|
32
|
|
- //- br
|
|
33
|
|
- //- span Looking for a
|
|
34
|
|
- //- span(v-if="!distance && !duration" class="fade") ________ ________
|
|
35
|
|
- //- span(v-else-if="!distance && duration" class="fade") {{ duration }} ________
|
|
36
|
|
- //- span(v-else-if="distance && !duration" class="fade") _________ {{ distance }}
|
|
37
|
|
- //- span(v-else class="fade") {{ duration }} {{ distance }}
|
|
38
|
|
- //- span role.
|
|
39
|
|
-
|
|
40
|
|
- //- h3(v-else)
|
|
41
|
|
- //- p My name is {{ name }}.
|
|
42
|
|
- //- span(v-if="pronouns") My pronouns are {{ pronouns }}.
|
|
43
|
|
- //- p I am
|
|
44
|
|
- //- span a {{ experience }}
|
|
45
|
|
- //- span {{ role }}
|
|
46
|
|
- //- p Looking for a {{ duration }},
|
|
47
|
|
- //- span {{ distance }}
|
|
48
|
|
- //- span {{ seeking }}.
|
|
49
|
|
- //- p I am proficient in
|
|
50
|
|
- //- span(v-for="(lang, i) in language") {{ lang }}
|
|
51
|
|
- //- span(v-if="i > 1") ,
|
|
52
|
|
-
|
|
53
|
5
|
article.match.w-full
|
|
54
|
6
|
ul.w-full
|
|
55
|
7
|
template(v-for="(q, i) in profileQuestions" :key="q.response_key_prompt")
|
|
|
@@ -61,6 +13,7 @@ main.view--survey.f-col.start.w-full
|
|
61
|
13
|
span {{q.response_key_prompt}}?
|
|
62
|
14
|
span {{q.response_key_description}}
|
|
63
|
15
|
|
|
|
16
|
+ //- Select
|
|
64
|
17
|
div(v-if="q.responses.length")
|
|
65
|
18
|
button(
|
|
66
|
19
|
v-for="(res, index) in q.responses"
|
|
|
@@ -68,9 +21,13 @@ main.view--survey.f-col.start.w-full
|
|
68
|
21
|
@click="profile[q.response_key_prompt] = res; step++"
|
|
69
|
22
|
:disabled="profile[q.response_key_prompt] == res"
|
|
70
|
23
|
).p-0 {{res}}
|
|
|
24
|
+
|
|
|
25
|
+ //- Fill in the blank
|
|
71
|
26
|
div(v-else-if="q.response_key_category === 'profile'")
|
|
72
|
27
|
input(v-model="profile[q.response_key_prompt]" @keyup.enter="step++")
|
|
73
|
28
|
label >{{ profile[q.response_key_prompt]}}
|
|
|
29
|
+
|
|
|
30
|
+ //- Questionaire
|
|
74
|
31
|
div(v-else).f-col
|
|
75
|
32
|
input(type="range" min="-3" max="3" list="ticks" v-model="questionaire[q.response_key_category]").w-full
|
|
76
|
33
|
label {{ questionaireResponses[parseInt(questionaire[q.response_key_category]) + 3] }}
|
|
|
@@ -78,6 +35,8 @@ main.view--survey.f-col.start.w-full
|
|
78
|
35
|
button(:disabled="step == 0" @click="step--") back
|
|
79
|
36
|
p {{step + 1}} of {{profileQuestions.length}}
|
|
80
|
37
|
button(@click="step++") next
|
|
|
38
|
+
|
|
|
39
|
+ //- Confirmation
|
|
81
|
40
|
li(v-if="step == profileQuestions.length")
|
|
82
|
41
|
p Does this look correct?
|
|
83
|
42
|
h4 {{ profile }}
|
|
|
@@ -86,7 +45,7 @@ main.view--survey.f-col.start.w-full
|
|
86
|
45
|
button(@click="step--") back
|
|
87
|
46
|
p(@click="step = 0").p-1 start over
|
|
88
|
47
|
button(@click="$router.push({ name: 'HomeView' })") save
|
|
89
|
|
-
|
|
|
48
|
+
|
|
90
|
49
|
MainNav(@show-sidebar="$emit('show-sidebar')")
|
|
91
|
50
|
</template>
|
|
92
|
51
|
|
|
|
@@ -112,6 +71,7 @@ export default {
|
|
112
|
71
|
return {
|
|
113
|
72
|
validSurvey: null,
|
|
114
|
73
|
componentMap: stepToComponentMap,
|
|
|
74
|
+ slideDuration: 1200,
|
|
115
|
75
|
step: 0,
|
|
116
|
76
|
profile: {
|
|
117
|
77
|
name: '',
|
|
|
@@ -195,7 +155,7 @@ export default {
|
|
195
|
155
|
opacity: 0
|
|
196
|
156
|
|
|
197
|
157
|
.fade
|
|
198
|
|
- animation: fadeIn 300ms ease-in
|
|
|
158
|
+ animation: fadeIn 1200ms ease-in
|
|
199
|
159
|
|
|
200
|
160
|
@keyframes fadeIn
|
|
201
|
161
|
0%
|
|
|
@@ -238,9 +198,8 @@ article
|
|
238
|
198
|
padding: 1vh
|
|
239
|
199
|
ul
|
|
240
|
200
|
display: flex
|
|
241
|
|
- /* color: blue */
|
|
242
|
201
|
width: 100%
|
|
243
|
|
- li
|
|
|
202
|
+ > li
|
|
244
|
203
|
flex-direction: column
|
|
245
|
204
|
border: 0px solid yellow
|
|
246
|
205
|
width: 100%
|