Przeglądaj źródła

Merge branch 'onboarding-style' of fyindr/siimee into dev

tags/0.0.3^2
maeda 3 lat temu
rodzic
commit
5e8d00ff70

BIN
frontend/assets/logos/siimee_logo.jpg Wyświetl plik


+ 9
- 5
frontend/src/components/onboarding/AccountType.vue Wyświetl plik

@@ -1,10 +1,14 @@
1 1
 <template lang="pug">
2
-.account-typpe
3
-    h3 {{ question }}
4
-    //- w-button.ma1.grow(@click="this.$emit('go-to-step', currentStep + 1)") CANDIDATES
5
-    w-button.ma1.grow(@click='handleSubmit("Recruiter")') CANDIDATES
6
-    w-button.ma1.grow(@click='handleSubmit("Jobseeker")') JOBS
2
+w-card.w-flex.column
3
+    p {Name}, let's get started on your profile while we verify your account
4
+    w-button.search-type(@click='handleSubmit("Recruiter")')
5
+        w-icon.mr1 mdi mdi-account-multiple
6
+        | CANDIDATES
7
+    w-button.search-type(@click='handleSubmit("Jobseeker")')
8
+        w-icon.mr1 mdi mdi-bookmark-box-multiple
9
+        | JOBS
7 10
 </template>
11
+
8 12
 <script>
9 13
 export default {
10 14
     name: 'AccountType',

+ 6
- 5
frontend/src/components/onboarding/Aspects.vue Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <template lang="pug">
2
-.aspects
2
+w-card.aspects.w-flex.column
3 3
     form.questionnaire(@submit.prevent='this.$emit("handle-submit")')
4 4
         QuestionResponse(
5 5
             :question='question'
@@ -10,6 +10,7 @@
10 10
             w-icon.mr1 wi-check
11 11
             | SUBMIT ANSWERS
12 12
 </template>
13
+
13 14
 <script>
14 15
 import QuestionResponse from './QuestionResponse.vue'
15 16
 const answered = [null, null, null, null, null, null]
@@ -27,17 +28,17 @@ export default {
27 28
     },
28 29
     emits: ['handle-submit', 'update-answers'],
29 30
     async created() {
30
-        this.aspectQuestions.forEach((q,i) => {
31
-            console.log(`Aspect #${i}: ${JSON.stringify(q)}`) 
31
+        this.aspectQuestions.forEach((q, i) => {
32
+            console.log(`Aspect #${i}: ${JSON.stringify(q)}`)
32 33
         })
33 34
     },
34 35
     methods: {
35 36
         updateRadio(onRadioSelect) {
36
-            answered[onRadioSelect.id-1] = onRadioSelect.answer
37
+            answered[onRadioSelect.id - 1] = onRadioSelect.answer
37 38
             this.$emit('update-answers', {
38 39
                 key: 'Aspects',
39 40
                 question: {
40
-                    response_key_prompt: 'aspects'
41
+                    response_key_prompt: 'aspects',
41 42
                 },
42 43
                 answer: answered,
43 44
             })

+ 3
- 2
frontend/src/components/onboarding/CompanyID.vue Wyświetl plik

@@ -1,5 +1,5 @@
1 1
 <template lang="pug">
2
-.company-id
2
+w-card.company-id.w-flex.column
3 3
     h3 Company ID
4 4
     p {{ question }}
5 5
     input(
@@ -7,8 +7,9 @@
7 7
         type='text'
8 8
         v-model='companyID'
9 9
     )
10
-    w-button.ma1.grow(@click='handleSubmit') NEXT
10
+    w-button.next-btn(@click='handleSubmit') Next
11 11
 </template>
12
+
12 13
 <script>
13 14
 export default {
14 15
     name: 'CompanyID',

+ 3
- 3
frontend/src/components/onboarding/Interests.vue Wyświetl plik

@@ -1,13 +1,13 @@
1 1
 <template lang="pug">
2
-.interests
2
+w-card.interests.w-flex.column
3 3
     h3 Interests
4 4
     p {{ question }}
5
-    DynamicTagList(:placeholder='"interest"' :tags='interests')
6
-    w-button.ma1.grow(@click='handleSubmit') NEXT
5
+    w-button.next-btn(@click='handleSubmit') NEXT
7 6
 </template>
8 7
 
9 8
 <script>
10 9
 import DynamicTagList from '../DynamicTagList.vue'
10
+
11 11
 export default {
12 12
     name: 'Interests',
13 13
     components: {

+ 5
- 3
frontend/src/components/onboarding/LicensesAndCertifications.vue Wyświetl plik

@@ -1,15 +1,17 @@
1 1
 <template lang="pug">
2
-.licenses-certifications
3
-    h3 Licenses &amp; Certifications
2
+w-card.licenses-certifications.w-flex.column
3
+    h3 Licenses & Certifications
4 4
     p {{ question }}
5 5
     DynamicTagList(
6 6
         :placeholder='"requirement"'
7 7
         :tags='licensesAndCertifications'
8 8
     )
9
-    w-button.ma1.grow(@click='handleSubmit') NEXT
9
+    w-button.next-btn(@click='handleSubmit') NEXT
10 10
 </template>
11
+
11 12
 <script>
12 13
 import DynamicTagList from '../DynamicTagList.vue'
14
+
13 15
 export default {
14 16
     name: 'LicensesAndCertifications',
15 17
     components: {

+ 3
- 2
frontend/src/components/onboarding/Location.vue Wyświetl plik

@@ -1,10 +1,11 @@
1 1
 <template lang="pug">
2
-.location
2
+w-card.location.w-flex.column
3 3
     h3 Location
4 4
     p {{ question }}
5 5
     DynamicTagList(:placeholder='"location"' :tags='locations')
6
-    w-button.ma1.grow(@click='handleSubmit') NEXT
6
+    w-button.next-btn(@click='handleSubmit') NEXT
7 7
 </template>
8
+
8 9
 <script>
9 10
 import DynamicTagList from '../DynamicTagList.vue'
10 11
 export default {

+ 4
- 5
frontend/src/components/onboarding/QuestionResponse.vue Wyświetl plik

@@ -1,10 +1,9 @@
1 1
 <template lang="pug">
2
-.question.pa12
3
-    header.w-flex.row.justify-space-between.pb6
4
-        label {{question.question}}
2
+w-card.question
3
+    p {{question.question}} 
5 4
     section.radio-buttons.w-flex.row.justify-space-between
6
-        h3(v-for="label in question.labels") {{label}}
7
-    w-radios.w-flex.row.justify-space-between(@update:model-value="onUpdate" :items="radioItems")
5
+        p(v-for="label in question.labels") {{label}}
6
+    w-radios.w-flex.row.justify-space-between(@update:model-value="onUpdate" :items="radioItems" color="red")
8 7
 </template>
9 8
 
10 9
 <script>

+ 3
- 3
frontend/src/components/onboarding/Role.vue Wyświetl plik

@@ -1,9 +1,9 @@
1 1
 <template lang="pug">
2
-.role
3
-    h3 ACTIVELY SEARCHING
2
+w-card.role.w-flex.column
3
+    h3 Actively Searching
4 4
     p {{ question }}
5 5
     w-select.mt4(:items='items' placeholder='i am' v-model='selectedRole')
6
-    w-button.ma1.grow(@click='handleSubmit') NEXT
6
+    w-button.next-btn(@click='handleSubmit') NEXT
7 7
 </template>
8 8
 
9 9
 <script>

+ 5
- 3
frontend/src/components/onboarding/Skills.vue Wyświetl plik

@@ -1,12 +1,14 @@
1 1
 <template lang="pug">
2
-.skills
3
-    h3 RECRUITER
2
+w-card.skills.w-flex.column
3
+    h3 Recruiter
4 4
     p {{ question }}
5 5
     DynamicTagList(:placeholder='"skill"' :tags='skills')
6
-    w-button.ma1.grow(@click='handleSubmit') NEXT
6
+    w-button.next-btn(@click='handleSubmit') NEXT
7 7
 </template>
8
+
8 9
 <script>
9 10
 import DynamicTagList from '../DynamicTagList.vue'
11
+
10 12
 export default {
11 13
     name: 'Skills',
12 14
     components: {

+ 21
- 6
frontend/src/components/onboarding/Splash.vue Wyświetl plik

@@ -1,9 +1,19 @@
1 1
 <template lang="pug">
2
-.splash
3
-    .splash--icon(style='width: 347px; height: 347px; background-color: red')
4
-    div(style='text-align: center')
5
-        w-button.ma1.grow(@click='handleSubmit') GET STARTED
6
-
2
+w-flex.column
3
+    w-image.splash-logo(
4
+        :height='300'
5
+        :src='`/assets/logos/siimee_logo.jpg`'
6
+        :width='300'
7
+    )
8
+    w-button.ma1.grow.next-btn(
9
+        :height='50'
10
+        :width='315'
11
+        @click='this.$emit("go-to-step", currentStep + 1)'
12
+        bg-color='success'
13
+        shadow
14
+        text
15
+        xl
16
+    ) GET STARTED
7 17
 </template>
8 18
 
9 19
 <script>
@@ -22,6 +32,11 @@ export default {
22 32
             this.$emit('update-answers', null)
23 33
         },
24 34
     },
25
-
26 35
 }
27 36
 </script>
37
+
38
+<style lang="sass">
39
+.w-button
40
+    &.next-btn
41
+        background-color: #5BA626
42
+</style>

+ 100
- 2
frontend/src/views/OnboardingView.vue Wyświetl plik

@@ -45,15 +45,113 @@ export default {
45 45
         },
46 46
         updateAnswers(payload) {
47 47
             // null payload is passed on splash page
48
-            if(payload){
48
+            if (payload) {
49 49
                 const k = payload.question.response_key_prompt
50 50
                 this.answered[k] = payload.answer
51 51
                 console.log(`${k}:`, this.answered[k])
52 52
                 console.log(`Updated answers: ${JSON.stringify(this.answered)}`)
53
-                if(k === 'aspects') return
53
+                if (k === 'aspects') return
54 54
             }
55 55
             this.goToStep(this.currentStep + 1)
56 56
         },
57 57
     },
58 58
 }
59 59
 </script>
60
+
61
+<style lang="sass">
62
+.view--onboarding
63
+    width: 100%
64
+    max-width: 428px
65
+    background-color: #fff
66
+    color: #1F2024
67
+    font-family: Century Gothic,CenturyGothic,AppleGothic,sans-serif
68
+    margin: 0 auto
69
+
70
+    article
71
+        height: 100vh
72
+
73
+    .w-button
74
+            display: flex
75
+            width: 315px
76
+            height: 60px
77
+            border-radius: 6
78
+            background-color: #D5D5D5
79
+            color: #1F2024
80
+            margin: 11px auto
81
+            font-weight: bold
82
+            font-size: 16px
83
+            text-transform: uppercase
84
+            &.next-btn
85
+                border-radius: 6px
86
+                background-color: #5BA626
87
+                color: #1F2024
88
+                height: 50px
89
+                width: 315px
90
+                font-size: 18px
91
+                padding: 7px
92
+
93
+    .w-card
94
+        background-color: #1F2024
95
+        justify-content: center
96
+        align-items: center
97
+        width: 100%
98
+
99
+
100
+        h3
101
+            text-transform: uppercase
102
+            text-align: center
103
+            font-size: 28px
104
+            font-weight: bold
105
+            color: white
106
+            margin-top: 88px
107
+
108
+        p
109
+            color: white
110
+            font-size: 18px
111
+            padding: 11px
112
+            text-align: center
113
+            margin: 22px auto
114
+            font-weight: bold
115
+
116
+        input
117
+            display: flex
118
+            width: 315px
119
+            height: 60px
120
+            padding: 11px
121
+            border-radius: 6
122
+            background-color: #D5D5D5
123
+            color: #1F2024
124
+            margin: 11px auto
125
+            font-weight: bold
126
+            font-size: 16px
127
+
128
+            .w-select
129
+                padding: 11px
130
+                color: #1F2024
131
+
132
+            .search-type
133
+                color: #1F2024
134
+                height: 50px
135
+
136
+        &.question
137
+            p
138
+                font-size: 18px
139
+                text-align: left
140
+                margin: 7px auto
141
+                font-weight: normal
142
+            section
143
+                p
144
+                    margin: 0
145
+                    font-weight: bold
146
+                    text-transform: capitalize
147
+    .w-radio__input
148
+
149
+        &.primary
150
+            background-color: #FFFFFF
151
+            border: #BCC5D3 1px solid
152
+
153
+    .w-card__content
154
+        .w-button
155
+            height: 50px
156
+            background-color: #5BA626
157
+</style>

Ładowanie…
Anuluj
Zapisz