@burh/nuxt-core 1.0.502 → 1.0.503
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.
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-tooltip
|
|
3
|
+
placement="top"
|
|
4
|
+
:content="profile"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
class="aboutme--profile"
|
|
8
|
+
:style="`--profile-gradient: ${getProfileColors()}; --profile-size: ${size}px`"
|
|
9
|
+
>
|
|
10
|
+
<span
|
|
11
|
+
:style="`--count: ${String(profile).length || 4}`"
|
|
12
|
+
>
|
|
13
|
+
{{String(profile).toUpperCase()}}
|
|
14
|
+
</span>
|
|
15
|
+
</div>
|
|
16
|
+
</el-tooltip>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
import { Tooltip } from 'element-ui';
|
|
21
|
+
|
|
22
|
+
export default {
|
|
23
|
+
name: 'aboutme-profile',
|
|
24
|
+
components: {
|
|
25
|
+
[Tooltip.name]: Tooltip
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
profile: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: ''
|
|
31
|
+
},
|
|
32
|
+
size: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 32
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
methods: {
|
|
38
|
+
getProfileColors() {
|
|
39
|
+
const colors = {
|
|
40
|
+
'd': '#EB5757',
|
|
41
|
+
'i': '#FFCF02',
|
|
42
|
+
's': '#33E3B5',
|
|
43
|
+
'c': '#4460F4'
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const gradient = [];
|
|
47
|
+
|
|
48
|
+
this.profile.split('').forEach(letter => {
|
|
49
|
+
gradient.push(colors[String(letter || '').toLowerCase()]);
|
|
50
|
+
|
|
51
|
+
if (this.profile.length <= 1) {
|
|
52
|
+
gradient.push(colors[String(letter || '').toLowerCase()]);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
return gradient.filter(Boolean).join(', ');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<style lang="scss" scoped>
|
|
63
|
+
.aboutme--profile {
|
|
64
|
+
$size: var(--profile-size);
|
|
65
|
+
$gradient: var(--profile-gradient);
|
|
66
|
+
|
|
67
|
+
position: relative;
|
|
68
|
+
|
|
69
|
+
user-select: none;
|
|
70
|
+
|
|
71
|
+
width: $size;
|
|
72
|
+
height: $size;
|
|
73
|
+
|
|
74
|
+
display: grid;
|
|
75
|
+
place-items: center;
|
|
76
|
+
|
|
77
|
+
border-radius: 100rem;
|
|
78
|
+
|
|
79
|
+
> span {
|
|
80
|
+
position: relative;
|
|
81
|
+
z-index: 2;
|
|
82
|
+
|
|
83
|
+
font-weight: 600;
|
|
84
|
+
font-size: calc((var(--profile-size) - (var(--profile-size) / 3)) / var(--count));
|
|
85
|
+
|
|
86
|
+
background-image: linear-gradient(-45deg, $gradient);
|
|
87
|
+
background-clip: text;
|
|
88
|
+
-webkit-text-fill-color: transparent;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&::before {
|
|
92
|
+
content: "";
|
|
93
|
+
|
|
94
|
+
position: absolute;
|
|
95
|
+
z-index: 1;
|
|
96
|
+
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
|
|
100
|
+
top: 0;
|
|
101
|
+
left: 0;
|
|
102
|
+
|
|
103
|
+
border: 2px solid transparent;
|
|
104
|
+
border-radius: inherit;
|
|
105
|
+
|
|
106
|
+
background-image: linear-gradient(white, white), linear-gradient(-45deg, $gradient);
|
|
107
|
+
background-origin: border-box;
|
|
108
|
+
background-clip: content-box, border-box;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
</style>
|
|
@@ -10,9 +10,19 @@
|
|
|
10
10
|
/>
|
|
11
11
|
</div>
|
|
12
12
|
|
|
13
|
+
<template
|
|
14
|
+
v-if="userData && userData.profile"
|
|
15
|
+
>
|
|
16
|
+
<div class="aboutme">
|
|
17
|
+
<profile
|
|
18
|
+
:profile="userData.profile"
|
|
19
|
+
:size="48"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
13
24
|
<h5
|
|
14
25
|
class="mb-0 text-wrap"
|
|
15
|
-
:class="{ 'mt-5': !userData.urlAvatar }"
|
|
16
26
|
v-html="
|
|
17
27
|
highlightText(
|
|
18
28
|
search,
|
|
@@ -230,10 +240,13 @@ import getPrefixes from '~/util/getPrefixes.js';
|
|
|
230
240
|
import VueQrcode from '@chenfengyuan/vue-qrcode';
|
|
231
241
|
import moment from 'moment';
|
|
232
242
|
|
|
243
|
+
import Profile from '../../Aboutme/Profile.vue';
|
|
244
|
+
|
|
233
245
|
export default {
|
|
234
246
|
name: 'user-cv-left-side',
|
|
235
247
|
components: {
|
|
236
|
-
VueQrcode
|
|
248
|
+
VueQrcode,
|
|
249
|
+
Profile
|
|
237
250
|
},
|
|
238
251
|
computed: {
|
|
239
252
|
currentCompany() {
|
|
@@ -387,6 +400,12 @@ export default {
|
|
|
387
400
|
color: #000;
|
|
388
401
|
}
|
|
389
402
|
|
|
403
|
+
.aboutme {
|
|
404
|
+
display: grid;
|
|
405
|
+
place-items: center;
|
|
406
|
+
margin: 1rem 0;
|
|
407
|
+
}
|
|
408
|
+
|
|
390
409
|
.teste-block {
|
|
391
410
|
display: inline !important;
|
|
392
411
|
}
|