@burh/nuxt-core 1.0.353 → 1.0.356

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.
@@ -7,7 +7,7 @@
7
7
  :src="userData.urlAvatar"
8
8
  :alt="userData.name"
9
9
  />
10
- <div v-else class="no-image">
10
+ <div v-else class=".">
11
11
  {{ userData.name }}
12
12
  </div>
13
13
  </div>
@@ -392,12 +392,17 @@ export default {
392
392
 
393
393
  .profile {
394
394
  .avatar {
395
+ width: initial!important;
396
+ height: initial!important;
397
+ margin-top: -48px;
395
398
  background: transparent !important;
396
399
  img {
397
- width: 178.14px;
400
+ width: 163px;
398
401
  height: 163px;
399
402
  border-radius: 50%;
400
403
  top: 75%;
404
+ background: #adb5bd;
405
+ border: 4px solid #fff;
401
406
  }
402
407
 
403
408
  .no-image {
@@ -412,6 +417,7 @@ export default {
412
417
  top: 120;
413
418
  border-radius: 50%;
414
419
  margin-bottom: 20px;
420
+ border: 4px solid #fff;
415
421
  }
416
422
  }
417
423
 
@@ -8,7 +8,7 @@
8
8
  >
9
9
  <template>
10
10
  <div class="row d-flex justify-content-between mx-0 user-pdf">
11
- <img v-if="!isLoading" v-show="coverPhoto" :src="coverPhoto" alt="" />
11
+ <img v-if="!isLoading" v-show="coverPhoto" :src="coverPhoto" alt="" class="img__color" />
12
12
  <div v-show="!coverPhoto" class="no-cover-photo"></div>
13
13
  <slot name="content"></slot>
14
14
  </div>
@@ -164,6 +164,10 @@ export default {
164
164
  margin-top: 5vh!important;
165
165
  }
166
166
 
167
+ .img__color {
168
+ background: $primary;
169
+ }
170
+
167
171
  .user__cv__arrows {
168
172
  position: fixed;
169
173
  display: flex;
@@ -10,6 +10,7 @@
10
10
  <div class="d-flex justify-content-center align-items-center">
11
11
  <ul class="col-12 list-inline mb-4 mt-3 ml-5">
12
12
  <li
13
+ v-if="socialLinks.whatsapp"
13
14
  class="p list-inline-item ml-2 cursor-pointer"
14
15
  @click="$emit('whatsapp-modal')"
15
16
  >
@@ -25,7 +26,7 @@
25
26
  <span class="btn-inner--text">Whatsapp</span>
26
27
  </li>
27
28
  <a
28
- v-if="shareUrl"
29
+ v-if="socialLinks.facebook"
29
30
  :href="`https://www.facebook.com/sharer/sharer.php?u=${shareUrl}`"
30
31
  target="_blank"
31
32
  rel="noopener noreferrer"
@@ -44,7 +45,7 @@
44
45
  </li>
45
46
  </a>
46
47
  <a
47
- v-if="shareUrl"
48
+ v-if="socialLinks.twitter"
48
49
  :href="`https://twitter.com/intent/tweet?text=${shareUrl}`"
49
50
  target="_blank"
50
51
  rel="noopener noreferrer"
@@ -63,7 +64,7 @@
63
64
  </li>
64
65
  </a>
65
66
  <a
66
- v-if="shareUrl"
67
+ v-if="socialLinks.linkedin"
67
68
  :href="`https://www.linkedin.com/sharing/share-offsite/?url=${shareUrl}`"
68
69
  target="_blank"
69
70
  rel="noopener noreferrer"
@@ -133,7 +134,18 @@ export default {
133
134
  },
134
135
  props: {
135
136
  isActive: Boolean,
136
- shareUrl: String
137
+ shareUrl: String,
138
+ socialLinks: {
139
+ type: Object,
140
+ default: () => {
141
+ return {
142
+ whatsapp: true,
143
+ facebook: true,
144
+ twitter: true,
145
+ linkedin: true
146
+ };
147
+ }
148
+ }
137
149
  },
138
150
  methods: {
139
151
  copyToClipboard() {
@@ -0,0 +1,144 @@
1
+ <template>
2
+ <el-dialog
3
+ :visible.sync="isActive"
4
+ width="54%"
5
+ custom-class="position-relative"
6
+ @close="$emit('close')"
7
+ >
8
+ <template>
9
+ <div class="row mt-5">
10
+ <div class="col-12 px-3 mb-4">
11
+ <p class="lead mt-0 ml-5">
12
+ Insira aqui o número do telefone.
13
+ </p>
14
+ <base-input
15
+ class="mb-1 ml-5 mr-5"
16
+ v-model="phoneNumber"
17
+ placeholder="Ex: (15) 3342-6237"
18
+ type="text"
19
+ name="NumberCellphone"
20
+ >
21
+ </base-input>
22
+ </div>
23
+
24
+ <div class="col-12 d-flex">
25
+ <base-button
26
+ size="md"
27
+ outline
28
+ type="primary"
29
+ role="button"
30
+ class="ml-5"
31
+ @click="$emit('close-modal')"
32
+ >voltar
33
+ </base-button>
34
+ <base-button
35
+ size="md"
36
+ type="primary"
37
+ role="button"
38
+ @click="sendMessage()"
39
+ class="ml-auto mr-5"
40
+ >Enviar
41
+ </base-button>
42
+ </div>
43
+ </div>
44
+
45
+ <span class="tool tool-close" @click="$emit('close-modal')">
46
+ Fechar
47
+ <font-awesome-icon
48
+ :icon="['fas', 'times']"
49
+ class="text-white ml-1"
50
+ />
51
+ </span>
52
+ </template>
53
+ </el-dialog>
54
+ </template>
55
+
56
+ <script>
57
+ import { Dialog } from 'element-ui';
58
+
59
+ export default {
60
+ name: 'whatsapp-modal',
61
+ components: {
62
+ [Dialog.name]: Dialog
63
+ },
64
+ data() {
65
+ return {
66
+ phoneNumber: ''
67
+ };
68
+ },
69
+ props: {
70
+ isActive: Boolean,
71
+ shareUrl: {
72
+ type: String,
73
+ required: true
74
+ },
75
+ },
76
+ methods: {
77
+ sendMessage() {
78
+ let phoneNumber = this.phoneNumber
79
+ .replace('(', '')
80
+ .replace(')', '')
81
+ .replace(' ', '')
82
+ .replace('-', '');
83
+ window.open(
84
+ 'https://api.whatsapp.com/send?phone=' +
85
+ '+55' +
86
+ phoneNumber +
87
+ '&text=' +
88
+ this.shareUrl
89
+ );
90
+ }
91
+ },
92
+ watch: {
93
+ isActive(newValue) {
94
+ !newValue && this.$emit('close-modal');
95
+ }
96
+ }
97
+ };
98
+ </script>
99
+
100
+ <style lang="scss" scoped>
101
+ @import '@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss';
102
+
103
+ /deep/ .el-dialog__body {
104
+ padding: 0;
105
+ }
106
+
107
+ /deep/ .el-dialog__header {
108
+ display: none;
109
+ }
110
+
111
+ /deep/ .el-dialog {
112
+ overflow: hidden;
113
+ border-radius: 10px;
114
+ padding-bottom: 50px;
115
+ max-width: 725px;
116
+ min-width: 725px;
117
+ }
118
+
119
+ .tool {
120
+ position: absolute;
121
+ top: 1rem;
122
+ z-index: 10;
123
+ color: $primary;
124
+ cursor: pointer;
125
+
126
+ &-close {
127
+ position: absolute;
128
+ width: 88px;
129
+ height: 27px;
130
+ right: 7px;
131
+ top: 7px;
132
+ display: flex;
133
+ justify-content: center;
134
+ align-items: center;
135
+
136
+ font-size: 11px;
137
+
138
+ font-weight: 500;
139
+ background: rgba(0, 0, 0, 0.2);
140
+ border-radius: 17.5px;
141
+ color: #fff;
142
+ }
143
+ }
144
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.353",
3
+ "version": "1.0.356",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {