@burh/nuxt-core 1.0.472 → 1.0.474

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,84 +1,84 @@
1
- <template>
2
- <div class="recruitment__user__card">
3
- <div
4
- class="recruitment__user__card__header"
5
- >
6
- <skeleton-animate class="user__cover" />
7
- </div>
8
-
9
- <div class="recruitment__user__card__content">
10
- <skeleton-animate class="user__avatar" :width="120" :height="120" img />
11
-
12
- <skeleton-animate class="user__title" :width="160" :height="20" />
13
- <skeleton-animate class="user__age" :width="80" :height="15" />
14
-
15
- <skeleton-animate class="user__city" :width="120" :height="25" />
16
-
17
- <skeleton-animate class="user__text" :width="140" :height="15" />
18
- <skeleton-animate class="user__experience" :width="220" :height="20" />
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- import SkeletonAnimate from './SkeletonAnimate.vue';
25
-
26
- export default {
27
- name: 'base-card-user',
28
- components: {
29
- SkeletonAnimate
30
- }
31
- };
32
- </script>
33
-
34
- <style lang="scss" scoped>
35
-
36
- .recruitment__user__card {
37
- background: #fff;
38
- box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
39
- border-radius: 4px;
40
- overflow: hidden;
41
- cursor: pointer;
42
- transition: transform 0.25s;
43
- padding-bottom: 40px;
44
-
45
- &__header {
46
- width: 100%;
47
- height: 70px;
48
- overflow: hidden;
49
- position: relative;
50
- .user__cover {
51
- width: 100%!important;
52
- height: 100%!important;
53
- }
54
- }
55
- &__content {
56
- display: flex;
57
- flex-direction: column;
58
- align-items: center;
59
- justify-content: center;
60
- .user__avatar {
61
- margin-top: -20px;
62
- border: 4px solid #fff;
63
- z-index: 10;
64
- }
65
- .user__title {
66
- margin-top: 20px;
67
- }
68
- .user__age {
69
- margin-top: 10px;
70
- }
71
- .user__city {
72
- margin-top: 40px;
73
- }
74
- .user__text {
75
- margin-top: 40px;
76
- }
77
- .user__experience {
78
- margin-top: 5px;
79
- }
80
- }
81
- }
82
-
83
- </style>
84
-
1
+ <template>
2
+ <div class="recruitment__user__card">
3
+ <div
4
+ class="recruitment__user__card__header"
5
+ >
6
+ <skeleton-animate class="user__cover" />
7
+ </div>
8
+
9
+ <div class="recruitment__user__card__content">
10
+ <skeleton-animate class="user__avatar" :width="120" :height="120" img />
11
+
12
+ <skeleton-animate class="user__title" :width="160" :height="20" />
13
+ <skeleton-animate class="user__age" :width="80" :height="15" />
14
+
15
+ <skeleton-animate class="user__city" :width="120" :height="25" />
16
+
17
+ <skeleton-animate class="user__text" :width="140" :height="15" />
18
+ <skeleton-animate class="user__experience" :width="220" :height="20" />
19
+ </div>
20
+ </div>
21
+ </template>
22
+
23
+ <script>
24
+ import SkeletonAnimate from './SkeletonAnimate.vue';
25
+
26
+ export default {
27
+ name: 'base-card-user',
28
+ components: {
29
+ SkeletonAnimate
30
+ }
31
+ };
32
+ </script>
33
+
34
+ <style lang="scss" scoped>
35
+
36
+ .recruitment__user__card {
37
+ background: #fff;
38
+ box-shadow: 0 3px 20px rgba(0, 0, 0, 0.08);
39
+ border-radius: 4px;
40
+ overflow: hidden;
41
+ cursor: pointer;
42
+ transition: transform 0.25s;
43
+ padding-bottom: 40px;
44
+
45
+ &__header {
46
+ width: 100%;
47
+ height: 70px;
48
+ overflow: hidden;
49
+ position: relative;
50
+ .user__cover {
51
+ width: 100%!important;
52
+ height: 100%!important;
53
+ }
54
+ }
55
+ &__content {
56
+ display: flex;
57
+ flex-direction: column;
58
+ align-items: center;
59
+ justify-content: center;
60
+ .user__avatar {
61
+ margin-top: -20px;
62
+ border: 4px solid #fff;
63
+ z-index: 10;
64
+ }
65
+ .user__title {
66
+ margin-top: 20px;
67
+ }
68
+ .user__age {
69
+ margin-top: 10px;
70
+ }
71
+ .user__city {
72
+ margin-top: 40px;
73
+ }
74
+ .user__text {
75
+ margin-top: 40px;
76
+ }
77
+ .user__experience {
78
+ margin-top: 5px;
79
+ }
80
+ }
81
+ }
82
+
83
+ </style>
84
+
@@ -1,86 +1,86 @@
1
- <template>
2
- <div id="content">
3
- <div class="skeleton">
4
- <div class="skeleton-wrapper">
5
- <div class="skeleton-wrapper-inner">
6
- <div class="skeleton-wrapper-body">
7
- <skeleton-animate class="skeleton-avatar" :width="60" :height="60" img />
8
- <skeleton-animate class="skeleton-author" :width="150" :height="20" />
9
- <skeleton-animate class="skeleton-label" :width="100" :height="10" />
10
- <skeleton-animate class="skeleton-content-1" :width="500" :height="10" />
11
- <skeleton-animate class="skeleton-content-2" :width="500" :height="10" />
12
- <skeleton-animate class="skeleton-content-3" :width="500" :height="10" />
13
- </div>
14
- </div>
15
- </div>
16
- </div>
17
- </div>
18
- </template>
19
-
20
- <script>
21
- import SkeletonAnimate from './SkeletonAnimate.vue';
22
-
23
- export default {
24
- name: 'card-skeleton',
25
- components: {
26
- SkeletonAnimate
27
- }
28
- };
29
- </script>
30
-
31
- <style>
32
- #content {
33
- width: 100%;
34
- }
35
- .skeleton-wrapper {
36
- background: #fff;
37
- border-radius: 4px;
38
- -webkit-border-radius: 4px;
39
- margin: 10px 15px;
40
- box-shadow: 0 0 2rem 0 rgb(136 152 170 / 15%);
41
- padding: 40px 20px;
42
- border-radius: .375rem;
43
- }
44
-
45
- .skeleton-wrapper-inner {
46
- height: 150px;
47
- padding: 15px;
48
- position: relative;
49
- }
50
-
51
- .skeleton-wrapper-body div {
52
- position: absolute;
53
- right: 15px;
54
- left: 15px;
55
- top: 15px;
56
- }
57
-
58
- div.skeleton-avatar {
59
- right: auto;
60
- }
61
- div.skeleton-author {
62
- top: 20px;
63
- left: 95px;
64
- }
65
-
66
- div.skeleton-label {
67
- left: 95px;
68
- top: 50px;
69
- }
70
- div.skeleton-content-1,
71
- div.skeleton-content-2,
72
- div.skeleton-content-3 {
73
- left: 15px;
74
- right: 15px;
75
- width: 98%!important;
76
- }
77
- div.skeleton-content-1 {
78
- top: 100px;
79
- }
80
- div.skeleton-content-2 {
81
- top: 120px;
82
- }
83
- div.skeleton-content-3 {
84
- top: 140px;
85
- }
86
- </style>
1
+ <template>
2
+ <div id="content">
3
+ <div class="skeleton">
4
+ <div class="skeleton-wrapper">
5
+ <div class="skeleton-wrapper-inner">
6
+ <div class="skeleton-wrapper-body">
7
+ <skeleton-animate class="skeleton-avatar" :width="60" :height="60" img />
8
+ <skeleton-animate class="skeleton-author" :width="150" :height="20" />
9
+ <skeleton-animate class="skeleton-label" :width="100" :height="10" />
10
+ <skeleton-animate class="skeleton-content-1" :width="500" :height="10" />
11
+ <skeleton-animate class="skeleton-content-2" :width="500" :height="10" />
12
+ <skeleton-animate class="skeleton-content-3" :width="500" :height="10" />
13
+ </div>
14
+ </div>
15
+ </div>
16
+ </div>
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ import SkeletonAnimate from './SkeletonAnimate.vue';
22
+
23
+ export default {
24
+ name: 'card-skeleton',
25
+ components: {
26
+ SkeletonAnimate
27
+ }
28
+ };
29
+ </script>
30
+
31
+ <style>
32
+ #content {
33
+ width: 100%;
34
+ }
35
+ .skeleton-wrapper {
36
+ background: #fff;
37
+ border-radius: 4px;
38
+ -webkit-border-radius: 4px;
39
+ margin: 10px 15px;
40
+ box-shadow: 0 0 2rem 0 rgb(136 152 170 / 15%);
41
+ padding: 40px 20px;
42
+ border-radius: .375rem;
43
+ }
44
+
45
+ .skeleton-wrapper-inner {
46
+ height: 150px;
47
+ padding: 15px;
48
+ position: relative;
49
+ }
50
+
51
+ .skeleton-wrapper-body div {
52
+ position: absolute;
53
+ right: 15px;
54
+ left: 15px;
55
+ top: 15px;
56
+ }
57
+
58
+ div.skeleton-avatar {
59
+ right: auto;
60
+ }
61
+ div.skeleton-author {
62
+ top: 20px;
63
+ left: 95px;
64
+ }
65
+
66
+ div.skeleton-label {
67
+ left: 95px;
68
+ top: 50px;
69
+ }
70
+ div.skeleton-content-1,
71
+ div.skeleton-content-2,
72
+ div.skeleton-content-3 {
73
+ left: 15px;
74
+ right: 15px;
75
+ width: 98%!important;
76
+ }
77
+ div.skeleton-content-1 {
78
+ top: 100px;
79
+ }
80
+ div.skeleton-content-2 {
81
+ top: 120px;
82
+ }
83
+ div.skeleton-content-3 {
84
+ top: 140px;
85
+ }
86
+ </style>
@@ -1,146 +1,146 @@
1
- <template>
2
- <div
3
- class="skeleton skeleton--animate"
4
- :class="[
5
- { 'rounded': rounded },
6
- { 'img': img }
7
- ]"
8
- :style="`--skeleton-w: ${width < (windowWidth - 100) ? `${width}${percentageWidth ? '%' : 'px'}` : '100%'}; --skeleton-h: ${height}${percentageHeight ? '%' : 'px'};`"
9
- ></div>
10
- </template>
11
-
12
- <script>
13
- export default {
14
- name: 'skeleton-animate',
15
- props: {
16
- width: {
17
- type: Number,
18
- default: 200
19
- },
20
- height: {
21
- type: Number,
22
- default: 15
23
- },
24
- percentageWidth: {
25
- type: Boolean,
26
- default: false
27
- },
28
- percentageHeight: {
29
- type: Boolean,
30
- default: false
31
- },
32
- rounded: {
33
- type: Boolean,
34
- default: false
35
- },
36
- img: {
37
- type: Boolean,
38
- default: false
39
- }
40
- },
41
- data() {
42
- return {
43
- windowWidth: 1000
44
- };
45
- },
46
- methods: {
47
- handleResize() {
48
- this.windowWidth = window.innerWidth;
49
- }
50
- },
51
- mounted() {
52
- window.addEventListener('resize', this.handleResize);
53
- this.handleResize();
54
- },
55
- beforeDestroy() {
56
- window.removeEventListener('resize', this.handleResize);
57
- }
58
- };
59
- </script>
60
-
61
- <style lang="scss" scoped>
62
- @keyframes placeholderSkeleton {
63
- 0% {
64
- background-position: -468px 0;
65
- }
66
- 100% {
67
- background-position: 468px 0;
68
- }
69
- }
70
-
71
- @keyframes skeletonAnimate {
72
- from {
73
- background-position: top left;
74
- }
75
- to {
76
- background-position: top right;
77
- }
78
- }
79
-
80
- @-webkit-keyframes placeholderSkeleton {
81
- 0% {
82
- background-position: -468px 0;
83
- }
84
- 100% {
85
- background-position: 468px 0;
86
- }
87
- }
88
-
89
- @-webkit-keyframes skeletonAnimate {
90
- from {
91
- background-position: top left;
92
- }
93
- to {
94
- background-position: top right;
95
- }
96
- }
97
-
98
- .skeleton {
99
- width: var(--skeleton-w);
100
- height: var(--skeleton-h);
101
- border-radius: 2px;
102
- &.rounded {
103
- border-radius: 4px;
104
- }
105
- &.img {
106
- border-radius: 1000px;
107
- }
108
- }
109
-
110
- $skeletonBaseColor: #e0e3e6;
111
- $skeletonBaseLineColor: #edeef1;
112
-
113
- .skeleton--animate {
114
- -webkit-animation-duration: 1s;
115
- -webkit-animation-fill-mode: forwards;
116
- -webkit-animation-iteration-count: infinite;
117
- -webkit-animation-name: placeholderSkeleton;
118
- -webkit-animation-timing-function: linear;
119
-
120
- animation-duration: 1s;
121
- animation-fill-mode: forwards;
122
- animation-iteration-count: infinite;
123
- animation-name: placeholderSkeleton;
124
- animation-timing-function: linear;
125
-
126
- background: $skeletonBaseColor;
127
- background-image: -webkit-gradient(
128
- linear,
129
- left center,
130
- right center,
131
- from($skeletonBaseColor),
132
- color-stop(0.2, $skeletonBaseLineColor),
133
- color-stop(0.4, $skeletonBaseColor),
134
- to($skeletonBaseColor)
135
- );
136
- background-image: -webkit-linear-gradient(
137
- left,
138
- $skeletonBaseColor 0%,
139
- $skeletonBaseLineColor 20%,
140
- $skeletonBaseColor 40%,
141
- $skeletonBaseColor 100%
142
- );
143
- background-repeat: no-repeat;
144
- background-size: 100% 100%;
145
- }
146
- </style>
1
+ <template>
2
+ <div
3
+ class="skeleton skeleton--animate"
4
+ :class="[
5
+ { 'rounded': rounded },
6
+ { 'img': img }
7
+ ]"
8
+ :style="`--skeleton-w: ${width < (windowWidth - 100) ? `${width}${percentageWidth ? '%' : 'px'}` : '100%'}; --skeleton-h: ${height}${percentageHeight ? '%' : 'px'};`"
9
+ ></div>
10
+ </template>
11
+
12
+ <script>
13
+ export default {
14
+ name: 'skeleton-animate',
15
+ props: {
16
+ width: {
17
+ type: Number,
18
+ default: 200
19
+ },
20
+ height: {
21
+ type: Number,
22
+ default: 15
23
+ },
24
+ percentageWidth: {
25
+ type: Boolean,
26
+ default: false
27
+ },
28
+ percentageHeight: {
29
+ type: Boolean,
30
+ default: false
31
+ },
32
+ rounded: {
33
+ type: Boolean,
34
+ default: false
35
+ },
36
+ img: {
37
+ type: Boolean,
38
+ default: false
39
+ }
40
+ },
41
+ data() {
42
+ return {
43
+ windowWidth: 1000
44
+ };
45
+ },
46
+ methods: {
47
+ handleResize() {
48
+ this.windowWidth = window.innerWidth;
49
+ }
50
+ },
51
+ mounted() {
52
+ window.addEventListener('resize', this.handleResize);
53
+ this.handleResize();
54
+ },
55
+ beforeDestroy() {
56
+ window.removeEventListener('resize', this.handleResize);
57
+ }
58
+ };
59
+ </script>
60
+
61
+ <style lang="scss" scoped>
62
+ @keyframes placeholderSkeleton {
63
+ 0% {
64
+ background-position: -468px 0;
65
+ }
66
+ 100% {
67
+ background-position: 468px 0;
68
+ }
69
+ }
70
+
71
+ @keyframes skeletonAnimate {
72
+ from {
73
+ background-position: top left;
74
+ }
75
+ to {
76
+ background-position: top right;
77
+ }
78
+ }
79
+
80
+ @-webkit-keyframes placeholderSkeleton {
81
+ 0% {
82
+ background-position: -468px 0;
83
+ }
84
+ 100% {
85
+ background-position: 468px 0;
86
+ }
87
+ }
88
+
89
+ @-webkit-keyframes skeletonAnimate {
90
+ from {
91
+ background-position: top left;
92
+ }
93
+ to {
94
+ background-position: top right;
95
+ }
96
+ }
97
+
98
+ .skeleton {
99
+ width: var(--skeleton-w);
100
+ height: var(--skeleton-h);
101
+ border-radius: 2px;
102
+ &.rounded {
103
+ border-radius: 4px;
104
+ }
105
+ &.img {
106
+ border-radius: 1000px;
107
+ }
108
+ }
109
+
110
+ $skeletonBaseColor: #e0e3e6;
111
+ $skeletonBaseLineColor: #edeef1;
112
+
113
+ .skeleton--animate {
114
+ -webkit-animation-duration: 1s;
115
+ -webkit-animation-fill-mode: forwards;
116
+ -webkit-animation-iteration-count: infinite;
117
+ -webkit-animation-name: placeholderSkeleton;
118
+ -webkit-animation-timing-function: linear;
119
+
120
+ animation-duration: 1s;
121
+ animation-fill-mode: forwards;
122
+ animation-iteration-count: infinite;
123
+ animation-name: placeholderSkeleton;
124
+ animation-timing-function: linear;
125
+
126
+ background: $skeletonBaseColor;
127
+ background-image: -webkit-gradient(
128
+ linear,
129
+ left center,
130
+ right center,
131
+ from($skeletonBaseColor),
132
+ color-stop(0.2, $skeletonBaseLineColor),
133
+ color-stop(0.4, $skeletonBaseColor),
134
+ to($skeletonBaseColor)
135
+ );
136
+ background-image: -webkit-linear-gradient(
137
+ left,
138
+ $skeletonBaseColor 0%,
139
+ $skeletonBaseLineColor 20%,
140
+ $skeletonBaseColor 40%,
141
+ $skeletonBaseColor 100%
142
+ );
143
+ background-repeat: no-repeat;
144
+ background-size: 100% 100%;
145
+ }
146
+ </style>