@burh/nuxt-core 1.0.410 → 1.0.412

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,167 +1,154 @@
1
1
  <template>
2
- <el-dialog
3
- :visible.sync="isActive"
4
- width="55%"
5
- custom-class="position-relative"
6
- @close="$emit('close')"
7
- >
8
- <template>
9
- <div class="plan">
10
- <img :src="cover" alt="" />
11
-
12
- <div class="plan__modal">
13
- <section class="plan__information">
14
- <h4>
15
- Você vai amar o Plano Empresas. <br />
16
- Dê um Upgrade no seu R&S
17
- </h4>
18
-
19
- <p>
20
- A Tecnologia Burh e suas Soluções oferecem um
21
- ambiente único de Recrutamento e Seleção.
22
- Treinamentos e Página de Carreiras para sua empresa.
23
- </p>
24
- </section>
25
- <section class="plan__contact">
26
- <p>
27
- Preencha as informações abaixo e nosso time entrará
28
- em contato.
29
- </p>
30
-
31
- <validation-observer ref="sendTest">
32
- <section>
33
- <validation-provider
34
- tag="div"
35
- name="Nome"
36
- rules="required"
37
- v-slot="{ errors }"
38
- >
39
- <base-input
40
- type="text"
41
- v-model="name"
42
- :error="errors[0]"
43
- :valid="errors.length ? true : false"
44
- placeholder="Nome Completo"
45
- />
46
- </validation-provider>
47
-
48
- <validation-provider
49
- tag="div"
50
- name="Telefone"
51
- rules="required"
52
- v-slot="{ errors }"
53
- >
54
- <base-input
55
- type="text"
56
- v-model="phone"
57
- v-on:input="maskCellphone($event)"
58
- id="phone"
59
- :error="errors[0]"
60
- :valid="errors.length ? true : false"
61
- placeholder="Telefone"
62
- />
63
- </validation-provider>
64
-
65
- <button type="button" @click="sendContact()">
66
- Solicitar Contato
67
- </button>
68
- </section>
69
- </validation-observer>
70
- </section>
71
- </div>
72
- </div>
73
-
74
- <span class="tool tool-close" @click="$emit('close')">
75
- Fechar
76
- <font-awesome-icon
77
- :icon="['fas', 'times']"
78
- class="text-white ml-1"
79
- />
80
- </span>
81
- </template>
82
- </el-dialog>
2
+ <modal
3
+ :show.sync="isActive"
4
+ :size="'lg'"
5
+ @close="$emit('close')"
6
+ >
7
+ <template>
8
+ <div class="plan">
9
+ <img :src="cover" alt="" />
10
+
11
+ <div class="plan__modal">
12
+ <section class="plan__information">
13
+ <h4>
14
+ Você vai amar o Plano Empresas. <br />
15
+ um Upgrade no seu R&S
16
+ </h4>
17
+
18
+ <p>
19
+ A Tecnologia Burh e suas Soluções oferecem um
20
+ ambiente único de Recrutamento e Seleção.
21
+ Treinamentos e Página de Carreiras para sua empresa.
22
+ </p>
23
+ </section>
24
+ <section class="plan__contact">
25
+ <p>
26
+ Preencha as informações abaixo e nosso time entrará
27
+ em contato.
28
+ </p>
29
+
30
+ <validation-observer ref="sendTest">
31
+ <section>
32
+ <validation-provider
33
+ tag="div"
34
+ name="Nome"
35
+ rules="required"
36
+ v-slot="{ errors }"
37
+ >
38
+ <base-input
39
+ type="text"
40
+ v-model="name"
41
+ :error="errors[0]"
42
+ :valid="errors.length ? true : false"
43
+ placeholder="Nome Completo"
44
+ />
45
+ </validation-provider>
46
+
47
+ <validation-provider
48
+ tag="div"
49
+ name="Telefone"
50
+ rules="required"
51
+ v-slot="{ errors }"
52
+ >
53
+ <base-input
54
+ type="text"
55
+ v-model="phone"
56
+ v-on:input="maskCellphone($event)"
57
+ id="phone"
58
+ :error="errors[0]"
59
+ :valid="errors.length ? true : false"
60
+ placeholder="Telefone"
61
+ />
62
+ </validation-provider>
63
+
64
+ <button type="button" @click="sendContact()">
65
+ Solicitar Contato
66
+ </button>
67
+ </section>
68
+ </validation-observer>
69
+ </section>
70
+ </div>
71
+ </div>
72
+
73
+ <span class="tool tool-close" @click="$emit('close')">
74
+ Fechar
75
+ <font-awesome-icon
76
+ :icon="['fas', 'times']"
77
+ class="text-white ml-1"
78
+ />
79
+ </span>
80
+ </template>
81
+ </modal>
83
82
  </template>
84
83
 
85
84
  <script>
86
- import { Dialog } from 'element-ui';
87
-
88
85
  export default {
89
- name: 'plan-modal',
90
- components: {
91
- [Dialog.name]: Dialog
92
- },
93
- props: {
94
- isActive: Boolean,
95
- cover: String
96
- },
97
- data() {
98
- return {
99
- name: '',
100
- phone: ''
101
- };
102
- },
103
- methods: {
104
- async sendContact() {
105
- const pass = await this.$refs.sendTest.validate();
106
- if (!pass) {
107
- return;
108
- }
109
-
110
- this.phone = this.phone.replace(/\D+/g, '');
111
-
112
- this.$emit('send-contact', this.name, this.phone);
113
- this.$emit('close');
114
- },
115
- maskCellphone(v, onlyMasking = false) {
116
- if (v == null || v == '') {
117
- return;
118
- }
119
- var mask = v.replace(/\D/g, '');
120
- mask = mask.replace(/^0/, '');
121
- if (mask.length > 10) {
122
- mask = mask.replace(/^(\d\d)(\d{5})(\d{4}).*/, '($1) $2-$3');
123
- } else if (mask.length > 5) {
124
- mask = mask.replace(/^(\d\d)(\d{4})(\d{0,4}).*/, '($1) $2-$3');
125
- } else if (mask.length > 2) {
126
- mask = mask.replace(/^(\d\d)(\d{0,5})/, '($1) $2');
127
- } else {
128
- mask = mask.replace(/^(\d*)/, '($1');
129
- }
130
-
131
- if (!onlyMasking) {
132
- this.phone = mask;
133
- } else {
134
- return mask;
135
- }
136
- }
137
- }
86
+ name: 'plan-modal',
87
+ components: {},
88
+ props: {
89
+ isActive: Boolean,
90
+ cover: String
91
+ },
92
+ data() {
93
+ return {
94
+ name: '',
95
+ phone: ''
96
+ };
97
+ },
98
+ methods: {
99
+ async sendContact() {
100
+ const pass = await this.$refs.sendTest.validate();
101
+ if (!pass) {
102
+ return;
103
+ }
104
+
105
+ this.phone = this.phone.replace(/\D+/g, '');
106
+
107
+ this.$emit('send-contact', this.name, this.phone);
108
+ this.$emit('close');
109
+ },
110
+ maskCellphone(v, onlyMasking = false) {
111
+ if (v == null || v == '') {
112
+ return;
113
+ }
114
+ var mask = v.replace(/\D/g, '');
115
+ mask = mask.replace(/^0/, '');
116
+ if (mask.length > 10) {
117
+ mask = mask.replace(/^(\d\d)(\d{5})(\d{4}).*/, '($1) $2-$3');
118
+ } else if (mask.length > 5) {
119
+ mask = mask.replace(/^(\d\d)(\d{4})(\d{0,4}).*/, '($1) $2-$3');
120
+ } else if (mask.length > 2) {
121
+ mask = mask.replace(/^(\d\d)(\d{0,5})/, '($1) $2');
122
+ } else {
123
+ mask = mask.replace(/^(\d*)/, '($1');
124
+ }
125
+
126
+ if (!onlyMasking) {
127
+ this.phone = mask;
128
+ } else {
129
+ return mask;
130
+ }
131
+ }
132
+ }
138
133
  };
139
134
  </script>
140
135
 
141
136
  <style lang="scss" scoped>
142
137
  @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
143
138
 
144
- /deep/ .el-dialog__body {
145
- padding: 0;
146
- }
147
-
148
- /deep/ .el-dialog__header {
149
- display: none;
150
- }
151
-
152
- /deep/ .el-dialog {
153
- overflow: hidden;
154
- border-radius: 10px;
155
- padding-bottom: 50px;
156
- max-width: 47.5rem;
139
+ /deep/ .modal-body {
140
+ margin-bottom: 2rem;
157
141
  }
158
142
 
159
143
  .plan {
160
144
  background: #fff;
145
+ border-radius: 0.4375rem;
161
146
  img {
162
147
  width: 100%;
163
148
  height: 8.12rem;
164
149
  object-fit: cover;
150
+ border-top-left-radius: 0.4375rem;
151
+ border-top-right-radius: 0.4375rem;
165
152
  }
166
153
 
167
154
  &__modal {
@@ -242,7 +229,7 @@ export default {
242
229
  width: 100%;
243
230
  height: 2rem;
244
231
 
245
- background: #1f8ceb;
232
+ background: #5865f2;
246
233
  box-shadow: 0px 4.22794px 10.1471px rgba(0, 0, 0, 0.15);
247
234
  border-radius: 22.8309px;
248
235
  border: 0;
@@ -254,32 +241,6 @@ export default {
254
241
  }
255
242
  }
256
243
 
257
- .tool {
258
- position: absolute;
259
- top: 1rem;
260
- z-index: 10;
261
- color: $primary;
262
- cursor: pointer;
263
-
264
- &-close {
265
- position: absolute;
266
- width: 88px;
267
- height: 27px;
268
- right: 7px;
269
- top: 7px;
270
- display: flex;
271
- justify-content: center;
272
- align-items: center;
273
-
274
- font-size: 11px;
275
-
276
- font-weight: 500;
277
- background: rgba(0, 0, 0, 0.2);
278
- border-radius: 17.5px;
279
- color: #fff;
280
- }
281
- }
282
-
283
244
  ::-webkit-input-placeholder {
284
245
  color: #c0c0c0;
285
246
  }