Przeglądaj źródła

:construction: Finished first pass on dividing word structure of survey

tags/0.0.3^2
tomit4 3 lat temu
rodzic
commit
aaf0fd919d

+ 11
- 1
frontend/src/components/onboarding/FormDropdown.vue Wyświetl plik

@@ -1,7 +1,10 @@
1 1
 <template lang="pug">
2 2
 .role
3
-    span {{ question.response_key_prompt }}
3
+    span(style='text-align:center;') {{ parsedPrompt.start }}
4
+    span(style='text-align:center;') {{ parsedPrompt.mid }}
4 5
     w-select.mt4(:items='items' placeholder='i am' v-model='selection')
6
+    br
7
+    p(style='text-align:center;') {{ parsedPrompt.end }}
5 8
     w-button.ma1.grow(@click='handleSubmit') NEXT
6 9
 </template>
7 10
 
@@ -17,12 +20,19 @@ export default {
17 20
     emits: ['update-answers'],
18 21
     data: () => ({
19 22
         selection: null,
23
+        parsedPrompt: {},
20 24
     }),
21 25
     computed: {
22 26
         items() {
23 27
             return this.question.responses.map(res => ({ label: res }))
24 28
         },
25 29
     },
30
+    created() {
31
+        const parsedPromptArr = this.question.response_key_prompt.split('[break]')
32
+        this.parsedPrompt.start = parsedPromptArr[0]
33
+        this.parsedPrompt.mid = parsedPromptArr[1]
34
+        this.parsedPrompt.end = parsedPromptArr[2]
35
+    },
26 36
     methods: {
27 37
         handleSubmit() {
28 38
             let payload = {

+ 12
- 1
frontend/src/components/onboarding/FormInput.vue Wyświetl plik

@@ -1,10 +1,14 @@
1 1
 <template lang="pug">
2 2
 .form-input
3
-    span {{ question.response_key_prompt }}
3
+    span(style='text-align:center;') {{ parsedPrompt.start }}
4
+    br
5
+    br
6
+    span(style='text-align:center;') {{ parsedPrompt.mid }}
4 7
     input(v-if="question.survey_stage !== 'image' && question.survey_stage !== 'blurb' && question.survey_stage !== 'password'" :placeholder='question.placeholder' type='text' v-model='input')
5 8
     input.pass(v-else-if="question.survey_stage === 'password'" :placeholder='question.placeholder' type='password' v-model='input' style="-webkit-text-security: circle")
6 9
     w-button.ma1.grow(v-else-if="question.survey_stage === 'image'" @click="submitImage") UPLOAD IMAGE
7 10
     textarea(v-else-if="question.survey_stage === 'blurb'" rows="4" cols="50" v-model='input' :placeholder="`${question.placeholder}`")
11
+    span(style='text-align:center;') {{ parsedPrompt.end }}
8 12
     w-button.ma1.grow(@click="handleSubmit({ question, input })") NEXT
9 13
     
10 14
 </template>
@@ -20,7 +24,14 @@ export default {
20 24
     emits: ['update-answers'],
21 25
     data: () => ({
22 26
         input: null,
27
+        parsedPrompt: {},
23 28
     }),
29
+    created() {
30
+        const parsedPromptArr = this.question.response_key_prompt.split('[break]')
31
+        this.parsedPrompt.start = parsedPromptArr[0]
32
+        this.parsedPrompt.mid = parsedPromptArr[1]
33
+        this.parsedPrompt.end = parsedPromptArr[2]
34
+    },
24 35
     methods: {
25 36
         handleSubmit(answerInfo) {
26 37
             this.$emit('update-answers', answerInfo)

+ 0
- 1
frontend/src/components/onboarding/QuestionResponse.vue Wyświetl plik

@@ -1,6 +1,5 @@
1 1
 <template lang="pug">
2 2
 w-card.question
3
-    p {{ question }}
4 3
     p {{question.question}} 
5 4
     section.radio-buttons.w-flex.row.justify-space-between
6 5
         p(v-for="label in question.labels") {{label}}

+ 12
- 17
frontend/src/utils/lang.js Wyświetl plik

@@ -84,25 +84,20 @@ possible.usa = {
84 84
 // TODO: set up a separate object of similar prompts based off of
85 85
 // employer/employee, right now is generic
86 86
 const promptOverrides = {
87
-    name: "What's your name?:",
88
-    email: "In order for you to reach out to others on siimee, we'll need an email address. Where can we best reach you?:",
87
+    name: "First things first, could you provide us with your name? [break] I am called [break] when others address me.",
88
+    email: "In order for others to reach out to you on Siimee, you'll need to provide your email address.[break]When reaching out to me, [break] is my preferred email.",
89 89
     password:
90
-        "Next we'll need you to establish a super secret password. Your password should be at least 10 characters long and have at least 2 special characters. Please enter your:",
91
-    zipcode:
92
-        "Looking good so far! You're doing great. The next piece of info we'll need is your zip code. That way we can be sure to only show you other people in your area. What's your zip code?:",
93
-    blurb: "Please provide us with a short blurb about yourself. What's your backstory?:",
90
+        "So far so good! Next we'll need you to establish a super secret password. Your password should be at least 10 characters long and have at least 2 special characters.[break]My [break] is a very secure passcode that only I will have access to!",
91
+    zipcode: "Looking good! You're doing great. The next piece of info we'll need is your zip code. That way we can be sure to only show you other people in your area.[break]My zip code, [break] is the general area where I wish to see results in.",
92
+    seeking: "Alright, let's continue! What are you seeking? Are you looking to find a position to be employed in, or are you looking to employ a candidate?[break] I am a [break] seeking an employer/employee.",
93
+    blurb: "Please provide us with a short blurb about yourself. What's your backstory?[break] My origin story starts like this:[break]",
94 94
     image: "Hey, you're almost done! Please provide an image of yourself so others can recognize you if you ever meet up IRL:",
95
-    seeking:
96
-        "Alright, let's continue! What are you seeking? Are you looking to find a position to be employed in, or are you looking to employ a candidate?",
97
-    pronouns:
98
-        'When others refer to you, what pronouns do you prefer they use?:',
99
-    urgency:
100
-        'How soon do you need the position filled or you need to be employed?',
101
-    presence: 'Would you prefer remote, hybrid, in-person work?',
102
-    duration:
103
-        'What kind of duration would you prefer? Are you looking for part-time, full-time, other?',
104
-    language: 'Your native language is?...',
105
-    distance: 'What distance from your home are you looking to work in?',
95
+    pronouns: 'When others refer to you, what pronouns do you prefer they use?[break]I prefer to be called [break] when others refer to me.',
96
+    urgency: "How soon do you need the position filled or you need to be employed? [break]I am currently [break] when it comes to employment opportunities right now.",
97
+    presence: "Would you prefer remote, hybrid, in-person work?[break] Personally I'd prefer a [break] job right now. It's just what works best for me.",
98
+    duration: "What kind of duration would you prefer? Are you looking for part-time, full-time, other?[break] Currently, I'm looking for a [break] job at this time.",
99
+    language: "What language is your native language?[break] I consider [break] language as my native language.",
100
+    distance: "What distance from your home are you looking to work in?[break] Preferably, I'd like to work [break] from my place of residence.",
106 101
 }
107 102
 
108 103
 const inputPlaceholders = {

Ładowanie…
Anuluj
Zapisz