|
|
@@ -1,17 +1,129 @@
|
|
1
|
1
|
<template lang="pug">
|
|
2
|
2
|
main.f-col.start.w-full
|
|
3
|
|
- article.match
|
|
4
|
|
- h1 Survey Page
|
|
5
|
|
- SurveyForm(v-if="validSurvey && validSurvey.steps" :form="validSurvey.steps" :pid="pid")
|
|
|
3
|
+ ButtonMulti
|
|
|
4
|
+ //- ButtonChoice
|
|
|
5
|
+ //- InputString
|
|
|
6
|
+ article.match.w-full
|
|
|
7
|
+ ul.w-full
|
|
|
8
|
+ li(v-if="step == 0")
|
|
|
9
|
+ header
|
|
|
10
|
+ p step 1
|
|
|
11
|
+ section
|
|
|
12
|
+ input(v-model="name")
|
|
|
13
|
+ footer
|
|
|
14
|
+ button(@click="step++").w-full next
|
|
|
15
|
+
|
|
|
16
|
+ li(v-if="step == 1")
|
|
|
17
|
+ header
|
|
|
18
|
+ p step 1
|
|
|
19
|
+ section
|
|
|
20
|
+ p
|
|
|
21
|
+ span(v-if="name") {{ name }}
|
|
|
22
|
+ span(v-else) ______________
|
|
|
23
|
+ span .
|
|
|
24
|
+ span Let's get started on you profile while we verify your account.
|
|
|
25
|
+ footer.f-row
|
|
|
26
|
+ button(@click="step--").w-full back
|
|
|
27
|
+ button(@click="step++").w-full next
|
|
|
28
|
+
|
|
|
29
|
+ li(v-if="step == 2")
|
|
|
30
|
+ header
|
|
|
31
|
+ p step 2
|
|
|
32
|
+ section
|
|
|
33
|
+ p
|
|
|
34
|
+ span What are you looking for
|
|
|
35
|
+ span {{ name }}
|
|
|
36
|
+ span ?
|
|
|
37
|
+ footer.f-col.w-full
|
|
|
38
|
+ button(@click="saveNext('position')") a position
|
|
|
39
|
+ button(@click="saveNext('cadidate')") a candidate
|
|
|
40
|
+
|
|
|
41
|
+ li(v-if="step == 3")
|
|
|
42
|
+ header
|
|
|
43
|
+ p step 3
|
|
|
44
|
+ section
|
|
|
45
|
+ p
|
|
|
46
|
+ span {{ seeking }}
|
|
|
47
|
+ span .
|
|
|
48
|
+ span You're in the right place. How would you like to use siimee?
|
|
|
49
|
+ section
|
|
|
50
|
+ p
|
|
|
51
|
+ span i am
|
|
|
52
|
+ select
|
|
|
53
|
+ option actively searching
|
|
|
54
|
+ option networking
|
|
|
55
|
+ option exploring
|
|
|
56
|
+ footer.f-row
|
|
|
57
|
+ button(@click="step--").w-full back
|
|
|
58
|
+ button(@click="step++").w-full next
|
|
|
59
|
+
|
|
|
60
|
+ li(v-if="step == 4")
|
|
|
61
|
+ header
|
|
|
62
|
+ p step 4
|
|
|
63
|
+ section
|
|
|
64
|
+ p
|
|
|
65
|
+ span i am
|
|
|
66
|
+ span(v-if="role") a {{ role }}.
|
|
|
67
|
+ span(v-else) ______________.
|
|
|
68
|
+ section
|
|
|
69
|
+ p
|
|
|
70
|
+ span(v-if="location") Looking for a {{ location }},
|
|
|
71
|
+ span(v-else) Looking for a ______________,
|
|
|
72
|
+ span(v-if="experience") {{ experience }}
|
|
|
73
|
+ span(v-else) ______________
|
|
|
74
|
+ span(v-if="position") {{ position }}ing role.
|
|
|
75
|
+ span(v-else) ______________ role.
|
|
|
76
|
+
|
|
|
77
|
+ footer(v-if="!role").f-row
|
|
|
78
|
+ button(@click="role = 'recruiter'") a recruiter
|
|
|
79
|
+ button(@click="role = 'hiring_manager'") a hiring manager
|
|
|
80
|
+ footer.f-row(v-else-if="!location")
|
|
|
81
|
+ button(@click="location = 'remote'") remote
|
|
|
82
|
+ button(@click="location = 'in_person'") in person
|
|
|
83
|
+ footer.f-row(v-else-if="location == 'in_person' && zipcode.length > 5")
|
|
|
84
|
+ input(v-model="zipcode")
|
|
|
85
|
+ footer.f-row(v-else-if="!experience")
|
|
|
86
|
+ button(@click="experience = 'junior'") junior
|
|
|
87
|
+ button(@click="experience = 'mid-level'") mid-level
|
|
|
88
|
+ button(@click="experience = 'senior'") senior
|
|
|
89
|
+ button(@click="experience = 'staff'") staff
|
|
|
90
|
+ footer.f-row(v-else-if="!position")
|
|
|
91
|
+ button(@click="position = 'engineer'") engineering
|
|
|
92
|
+ footer.f-row(v-else)
|
|
|
93
|
+ button(@click="step++").w-full next
|
|
|
94
|
+
|
|
|
95
|
+ li(v-if="step == 5")
|
|
|
96
|
+ header
|
|
|
97
|
+ p step 5
|
|
|
98
|
+ section
|
|
|
99
|
+ SurveyForm(v-if="validSurvey && validSurvey.steps" :form="validSurvey.steps" :pid="pid")
|
|
|
100
|
+ footer.f-row
|
|
|
101
|
+ button(@click="step--").w-full back
|
|
|
102
|
+ button(@click="step=0").w-full save
|
|
|
103
|
+ //- SurveyForm(v-if="validSurvey && validSurvey.steps" :form="validSurvey.steps" :pid="pid")
|
|
6
|
104
|
MainNav(:pid="pid" @show-sidebar="$emit('show-sidebar')")
|
|
7
|
105
|
</template>
|
|
8
|
106
|
|
|
9
|
107
|
<script>
|
|
10
|
108
|
import SurveyForm from '../components/form.vue'
|
|
11
|
109
|
import { fetchSurveyByProfileId } from '../services'
|
|
|
110
|
+import ButtonMulti from '../components/form/button-multi.vue'
|
|
|
111
|
+import ButtonChoice from '../components/form/button-choice.vue'
|
|
|
112
|
+import InputString from '../components/form/input-string.vue'
|
|
|
113
|
+
|
|
|
114
|
+const locations = ['remote', 'in_person']
|
|
|
115
|
+const roles = [
|
|
|
116
|
+ ['recruiter', 'hiring_manager'],
|
|
|
117
|
+ [
|
|
|
118
|
+ 'junior_engineer',
|
|
|
119
|
+ 'mid-level_engineer',
|
|
|
120
|
+ 'senior_engineer',
|
|
|
121
|
+ 'staff_engineer',
|
|
|
122
|
+ ],
|
|
|
123
|
+]
|
|
12
|
124
|
|
|
13
|
125
|
export default {
|
|
14
|
|
- components: { SurveyForm },
|
|
|
126
|
+ components: { SurveyForm, ButtonMulti, ButtonChoice, InputString },
|
|
15
|
127
|
props: {
|
|
16
|
128
|
pid: {
|
|
17
|
129
|
type: Number,
|
|
|
@@ -21,8 +133,23 @@ export default {
|
|
21
|
133
|
data() {
|
|
22
|
134
|
return {
|
|
23
|
135
|
validSurvey: null,
|
|
|
136
|
+ step: 0,
|
|
|
137
|
+ name: '',
|
|
|
138
|
+ seeking: '',
|
|
|
139
|
+ role: '',
|
|
|
140
|
+ experience: '',
|
|
|
141
|
+ position: '',
|
|
|
142
|
+ location: '',
|
|
|
143
|
+ zipcode: '',
|
|
24
|
144
|
}
|
|
25
|
145
|
},
|
|
|
146
|
+ methods: {
|
|
|
147
|
+ saveNext(val) {
|
|
|
148
|
+ console.log(val)
|
|
|
149
|
+ this.seeking = val
|
|
|
150
|
+ this.step++
|
|
|
151
|
+ },
|
|
|
152
|
+ },
|
|
26
|
153
|
async created() {
|
|
27
|
154
|
this.validSurvey = await fetchSurveyByProfileId(this.pid)
|
|
28
|
155
|
console.log('survey for:', this.validSurvey)
|
|
|
@@ -42,7 +169,14 @@ article
|
|
42
|
169
|
height: 100%
|
|
43
|
170
|
width: 100%
|
|
44
|
171
|
flex-direction: column
|
|
45
|
|
-
|
|
|
172
|
+ ul
|
|
|
173
|
+ height: 100%
|
|
|
174
|
+ list-style: none
|
|
|
175
|
+ button
|
|
|
176
|
+ padding: 1em
|
|
|
177
|
+ p
|
|
|
178
|
+ padding: 1em
|
|
|
179
|
+ color: white
|
|
46
|
180
|
.form
|
|
47
|
181
|
border: 1px solid #fff
|
|
48
|
182
|
width: 100%
|