unika-components 1.0.57 → 1.0.58

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.
@@ -15,115 +15,6 @@ button.uni-text-component {
15
15
  white-space: pre-wrap;
16
16
  }
17
17
 
18
- .uni-background-component {
19
- width: 100%;
20
- }
21
- .bg-img {
22
- width: 100%;
23
- height: 100%;
24
- object-fit: cover;
25
- z-index:1;
26
- }
27
- .watermark {
28
- height: 100%;
29
- position: absolute;
30
- top: 0;
31
- left: 0;
32
- right: 0;
33
- bottom: 0;
34
- }
35
- .watermark-div {
36
- height: 100%;
37
- width:100%;
38
- position:absolute;
39
- z-index:99999999;
40
- }
41
- body:before{
42
- content: '';
43
- position: fixed;
44
- top: 0;
45
- bottom: 0;
46
- left: 0;
47
- right: 0;
48
- z-index: -1;
49
- /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
50
- background-position: center;
51
- opacity: 0.1;
52
- }
53
-
54
- .slide-guide {
55
- position: absolute;
56
- bottom: 90px;
57
- left: 50%;
58
- transform: translateX(-50%);
59
- }
60
- .slide-guide img {
61
- animation: flowing 2s ease-in-out infinite;
62
- width: 33px;
63
- vertical-align: middle;
64
- border-style: none;
65
- }
66
- body, html {
67
- position: relative;
68
- width: 100%;
69
- height: 100%;
70
- margin: 0px;
71
- }
72
- .swiper-container {
73
- width: 100%;
74
- height: 100%;
75
- }
76
- .swiper-slide {
77
- width: 100%;
78
- height: 100%;
79
- overflow: hidden;
80
- background-size: cover;
81
- background-position: center;
82
- background-repeat: no-repeat;
83
- }
84
- .up-arrow {
85
- width: 2rem;
86
- height: 2rem;
87
- position: fixed;
88
- bottom: 2rem;
89
- left: 50%;
90
- transform: translate3d(-50%, 0, 0);
91
- z-index: 999;
92
- background: none;
93
- border: none;
94
- padding: 0;
95
- animation: upArrowAni 2s infinite linear;
96
- }
97
- .up-arrow img {
98
- width: 2rem;
99
- height: 2rem;
100
- text-align: center;
101
- line-height: 2rem;
102
- color: #fff;
103
- font-size: 1.5rem;
104
- }
105
- @keyframes upArrowAni {
106
- 0% {
107
- opacity: 0;
108
- transform: translate3d(-50%, 30%, 0);
109
- }
110
-
111
- 30% {
112
- opacity: 1;
113
- transform: translate3d(-50%, -20%, 0);
114
- }
115
-
116
- 60% {
117
- opacity: 0;
118
- transform: translate3d(-50%, -35%, 0);
119
- }
120
-
121
- 100% {
122
- opacity: 0;
123
- transform: translate3d(-50%, -50%, 0);
124
- }
125
- }
126
-
127
18
  #audio {
128
19
  position: absolute;
129
20
  right: 10px;
@@ -218,6 +109,136 @@ body, html {
218
109
  -webkit-transform: rotate(360deg);
219
110
  }
220
111
  }
112
+
113
+ .slide-guide {
114
+ position: absolute;
115
+ bottom: 90px;
116
+ left: 50%;
117
+ transform: translateX(-50%);
118
+ }
119
+ .slide-guide img {
120
+ animation: flowing 2s ease-in-out infinite;
121
+ width: 33px;
122
+ vertical-align: middle;
123
+ border-style: none;
124
+ }
125
+ body, html {
126
+ position: relative;
127
+ width: 100%;
128
+ height: 100%;
129
+ margin: 0px;
130
+ }
131
+ .swiper-container {
132
+ width: 100%;
133
+ height: 100%;
134
+ }
135
+ .swiper-slide {
136
+ width: 100%;
137
+ height: 100%;
138
+ overflow: hidden;
139
+ background-size: cover;
140
+ background-position: center;
141
+ background-repeat: no-repeat;
142
+ }
143
+ .up-arrow {
144
+ width: 2rem;
145
+ height: 2rem;
146
+ position: fixed;
147
+ bottom: 2rem;
148
+ left: 50%;
149
+ transform: translate3d(-50%, 0, 0);
150
+ z-index: 999;
151
+ background: none;
152
+ border: none;
153
+ padding: 0;
154
+ animation: upArrowAni 2s infinite linear;
155
+ }
156
+ .up-arrow img {
157
+ width: 2rem;
158
+ height: 2rem;
159
+ text-align: center;
160
+ line-height: 2rem;
161
+ color: #fff;
162
+ font-size: 1.5rem;
163
+ }
164
+ @keyframes upArrowAni {
165
+ 0% {
166
+ opacity: 0;
167
+ transform: translate3d(-50%, 30%, 0);
168
+ }
169
+
170
+ 30% {
171
+ opacity: 1;
172
+ transform: translate3d(-50%, -20%, 0);
173
+ }
174
+
175
+ 60% {
176
+ opacity: 0;
177
+ transform: translate3d(-50%, -35%, 0);
178
+ }
179
+
180
+ 100% {
181
+ opacity: 0;
182
+ transform: translate3d(-50%, -50%, 0);
183
+ }
184
+ }
185
+
186
+ .uni-background-component {
187
+ width: 100%;
188
+ }
189
+ .bg-img {
190
+ width: 100%;
191
+ height: 100%;
192
+ object-fit: cover;
193
+ z-index:1;
194
+ }
195
+ .watermark {
196
+ height: 100%;
197
+ position: absolute;
198
+ top: 0;
199
+ left: 0;
200
+ right: 0;
201
+ bottom: 0;
202
+ }
203
+ .watermark-div {
204
+ height: 100%;
205
+ width:100%;
206
+ position:absolute;
207
+ z-index:99999999;
208
+ }
209
+ body:before{
210
+ content: '';
211
+ position: fixed;
212
+ top: 0;
213
+ bottom: 0;
214
+ left: 0;
215
+ right: 0;
216
+ z-index: -1;
217
+ /* background: url(https://unika-static-dev.unika.cc/logo.png) 0 0 repeat; */
218
+ background-position: center;
219
+ opacity: 0.1;
220
+ }
221
+
222
+ .uni-video-component {
223
+ position: relative;
224
+ text-align: center;
225
+ }
226
+ .play-pause-button {
227
+ position: absolute;
228
+ top: 50%;
229
+ left: 50%;
230
+ transform: translate(-50%, -50%);
231
+ cursor: pointer;
232
+ font-size: 2rem;
233
+ color: #fff;
234
+ background: rgba(0, 0, 0, 0.6);
235
+ border-radius: 50%;
236
+ padding: 10px;
237
+ transition: background 0.3s;
238
+ }
239
+ .play-pause-button:hover {
240
+ background: rgba(0, 0, 0, 0.8);
241
+ }
221
242
 
222
243
  .slot-number {
223
244
  position: absolute;
@@ -227,6 +248,20 @@ body, html {
227
248
  color: #666
228
249
  }
229
250
 
251
+ /*.swiper-container {
252
+ width: 100%;
253
+ height: 300px;
254
+ }
255
+
256
+ .swiper-slide {
257
+ text-align: center;
258
+ }
259
+
260
+ .swiper-slide img {
261
+ max-width: 100%;
262
+ max-height: 100%;
263
+ }*/
264
+
230
265
  .like-button {
231
266
  display: flex;
232
267
  flex-direction: column;
@@ -249,27 +284,6 @@ body, html {
249
284
  color: #333;
250
285
  }
251
286
 
252
- .uni-video-component {
253
- position: relative;
254
- text-align: center;
255
- }
256
- .play-pause-button {
257
- position: absolute;
258
- top: 50%;
259
- left: 50%;
260
- transform: translate(-50%, -50%);
261
- cursor: pointer;
262
- font-size: 2rem;
263
- color: #fff;
264
- background: rgba(0, 0, 0, 0.6);
265
- border-radius: 50%;
266
- padding: 10px;
267
- transition: background 0.3s;
268
- }
269
- .play-pause-button:hover {
270
- background: rgba(0, 0, 0, 0.8);
271
- }
272
-
273
287
  #app1 {
274
288
  position: relative;
275
289
  }
@@ -312,20 +326,6 @@ body, html {
312
326
  .play-pause-button:hover {
313
327
  background: rgba(0, 0, 0, 0.8);
314
328
  }
315
-
316
- /*.swiper-container {
317
- width: 100%;
318
- height: 300px;
319
- }
320
-
321
- .swiper-slide {
322
- text-align: center;
323
- }
324
-
325
- .swiper-slide img {
326
- max-width: 100%;
327
- max-height: 100%;
328
- }*/
329
329
  /**
330
330
  * Swiper 6.8.4
331
331
  * Most modern mobile touch slider and framework with hardware accelerated transitions
@@ -874,6 +874,193 @@ button.swiper-pagination-bullet {
874
874
  backface-visibility: hidden;
875
875
  }
876
876
 
877
+
878
+ .no-animation__card {
879
+ font-weight: 500;
880
+ font-size: var(--countdown-size, 2rem);
881
+ line-height: 1.5;
882
+ display: block;
883
+ color: var(--main-color, #EC685C);
884
+ }
885
+
886
+ .flip-clock {
887
+ text-align: center;
888
+ perspective: 600px;
889
+ margin: 0 auto;
890
+ }
891
+
892
+ .flip-clock *,
893
+ .flip-clock *:before,
894
+ .flip-clock *:after {
895
+ box-sizing: border-box;
896
+ }
897
+
898
+ .flip-clock__piece {
899
+ display: inline-block;
900
+ margin: 0 0.2vw;
901
+ }
902
+
903
+ @media (min-width: 1000px) {
904
+ .flip-clock__piece {
905
+ margin: 0 5px;
906
+ }
907
+ }
908
+
909
+ .flip-clock__slot {
910
+ font-size: var(--label-size, 1rem);
911
+ line-height: 1.5;
912
+ display: block;
913
+ color: var(--label-color, #222222);
914
+ }
915
+
916
+ .flip-card {
917
+ display: block;
918
+ position: relative;
919
+ padding-bottom: 0.72em; /* halfHeight */
920
+ font-size: var(--countdown-size, 2.25rem);
921
+ line-height: 0.95;
922
+ }
923
+
924
+ @media (min-width: 1000px) {
925
+ .flip-clock__slot {
926
+ font-size: 1.2rem;
927
+ }
928
+
929
+ .flip-card {
930
+ font-size: 3rem;
931
+ }
932
+ }
933
+
934
+ .flip-card__top,
935
+ .flip-card__bottom,
936
+ .flip-card__back-bottom,
937
+ .flip-card__back::before,
938
+ .flip-card__back::after{
939
+ display: block;
940
+ height: 0.72em; /* halfHeight */
941
+ color: var(--main-color, #EC685C);
942
+ background: var(--main-flip-background-color, #222222);
943
+ padding: 0.23em 0.15em 0.4em;
944
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
945
+ backface-visibility: hidden;
946
+ -webkit-backface-visibility: hidden;
947
+ transform-style: preserve-3d;
948
+ width: 2.1em;
949
+ }
950
+
951
+ .flip-card__top-4digits,
952
+ .flip-card__bottom-4digits,
953
+ .flip-card__back-bottom-4digits,
954
+ .flip-card__back-4digits::before,
955
+ .flip-card__back-4digits::after {
956
+ display: block;
957
+ height: 0.72em; /* halfHeight */
958
+ color: var(--main-color, #EC685C);
959
+ background: var(--main-flip-background-color, #222222);
960
+ padding: 0.23em 0.15em 0.4em;
961
+ border-radius: 0.15em 0.15em 0 0; /* borderRadius */
962
+ backface-visibility: hidden;
963
+ -webkit-backface-visibility: hidden;
964
+ transform-style: preserve-3d;
965
+ width: 2.65em;
966
+ }
967
+
968
+ .flip-card__bottom,
969
+ .flip-card__back-bottom,
970
+ .flip-card__bottom-4digits,
971
+ .flip-card__back-bottom-4digits {
972
+ color: var(--second-flip-color, #EC685C);
973
+ position: absolute;
974
+ top: 50%;
975
+ left: 0;
976
+ border-top: solid 1px var(--second-flip-background-color, #000);
977
+ background: var(--second-flip-background-color, #393939);
978
+ border-radius: 0 0 0.15em 0.15em; /* borderRadius */
979
+ pointer-events: none;
980
+ overflow: hidden;
981
+ z-index: 2;
982
+ }
983
+
984
+ .flip-card__back-bottom,
985
+ .flip-card__back-bottom-4digits {
986
+ z-index: 1;
987
+ }
988
+
989
+ .flip-card__bottom::after,
990
+ .flip-card__back-bottom::after,
991
+ .flip-card__bottom-4digits::after,
992
+ .flip-card__back-bottom-4digits::after {
993
+ display: block;
994
+ margin-top: -0.72em; /* Negative halfHeight */
995
+ }
996
+ .flip-card__back::before,
997
+ .flip-card__bottom::after,
998
+ .flip-card__back-bottom::after,
999
+ .flip-card__back-4digits::before,
1000
+ .flip-card__bottom-4digits::after,
1001
+ .flip-card__back-bottom-4digits::after {
1002
+ content: attr(data-value);
1003
+ }
1004
+
1005
+ .flip-card__back,
1006
+ .flip-card__back-4digits {
1007
+ position: absolute;
1008
+ top: 0;
1009
+ height: 100%;
1010
+ left: 0%;
1011
+ pointer-events: none;
1012
+ }
1013
+ .flip-card__back::before,
1014
+ .flip-card__back-4digits::before {
1015
+ position: relative;
1016
+ overflow: hidden;
1017
+ z-index: -1;
1018
+ }
1019
+
1020
+ .flip .flip-card__back::before,
1021
+ .flip .flip-card__back-4digits::before {
1022
+ z-index: 1;
1023
+ animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1024
+ animation-fill-mode: both;
1025
+ transform-origin: center bottom;
1026
+ }
1027
+
1028
+ .flip .flip-card__bottom,
1029
+ .flip .flip-card__bottom-4digits {
1030
+ transform-origin: center top;
1031
+ animation-fill-mode: both;
1032
+ animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1033
+ }
1034
+ @keyframes flipTop {
1035
+ 0% {
1036
+ transform: rotateX(0deg);
1037
+ z-index: 2;
1038
+ }
1039
+ 0%, 99% {
1040
+ opacity: 1;
1041
+ }
1042
+ 100% {
1043
+ transform: rotateX(-90deg);
1044
+ opacity: 0;
1045
+ }
1046
+ }
1047
+
1048
+ @keyframes flipBottom {
1049
+ 0%, 50% {
1050
+ z-index: -1;
1051
+ transform: rotateX(90deg);
1052
+ opacity: 0;
1053
+ }
1054
+ 51% {
1055
+ opacity: 1;
1056
+ }
1057
+ 100% {
1058
+ opacity: 1;
1059
+ transform: rotateX(0deg);
1060
+ z-index: 5;
1061
+ }
1062
+ }
1063
+
877
1064
  .unika-calendar-title {
878
1065
  font-size: 25px;
879
1066
  padding-bottom: 4px;
@@ -1125,190 +1312,3 @@ button.swiper-pagination-bullet {
1125
1312
  padding: 0 0px;
1126
1313
  border-bottom: 1px solid
1127
1314
  }
1128
-
1129
-
1130
- .no-animation__card {
1131
- font-weight: 500;
1132
- font-size: var(--countdown-size, 2rem);
1133
- line-height: 1.5;
1134
- display: block;
1135
- color: var(--main-color, #EC685C);
1136
- }
1137
-
1138
- .flip-clock {
1139
- text-align: center;
1140
- perspective: 600px;
1141
- margin: 0 auto;
1142
- }
1143
-
1144
- .flip-clock *,
1145
- .flip-clock *:before,
1146
- .flip-clock *:after {
1147
- box-sizing: border-box;
1148
- }
1149
-
1150
- .flip-clock__piece {
1151
- display: inline-block;
1152
- margin: 0 0.2vw;
1153
- }
1154
-
1155
- @media (min-width: 1000px) {
1156
- .flip-clock__piece {
1157
- margin: 0 5px;
1158
- }
1159
- }
1160
-
1161
- .flip-clock__slot {
1162
- font-size: var(--label-size, 1rem);
1163
- line-height: 1.5;
1164
- display: block;
1165
- color: var(--label-color, #222222);
1166
- }
1167
-
1168
- .flip-card {
1169
- display: block;
1170
- position: relative;
1171
- padding-bottom: 0.72em; /* halfHeight */
1172
- font-size: var(--countdown-size, 2.25rem);
1173
- line-height: 0.95;
1174
- }
1175
-
1176
- @media (min-width: 1000px) {
1177
- .flip-clock__slot {
1178
- font-size: 1.2rem;
1179
- }
1180
-
1181
- .flip-card {
1182
- font-size: 3rem;
1183
- }
1184
- }
1185
-
1186
- .flip-card__top,
1187
- .flip-card__bottom,
1188
- .flip-card__back-bottom,
1189
- .flip-card__back::before,
1190
- .flip-card__back::after{
1191
- display: block;
1192
- height: 0.72em; /* halfHeight */
1193
- color: var(--main-color, #EC685C);
1194
- background: var(--main-flip-background-color, #222222);
1195
- padding: 0.23em 0.15em 0.4em;
1196
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1197
- backface-visibility: hidden;
1198
- -webkit-backface-visibility: hidden;
1199
- transform-style: preserve-3d;
1200
- width: 2.1em;
1201
- }
1202
-
1203
- .flip-card__top-4digits,
1204
- .flip-card__bottom-4digits,
1205
- .flip-card__back-bottom-4digits,
1206
- .flip-card__back-4digits::before,
1207
- .flip-card__back-4digits::after {
1208
- display: block;
1209
- height: 0.72em; /* halfHeight */
1210
- color: var(--main-color, #EC685C);
1211
- background: var(--main-flip-background-color, #222222);
1212
- padding: 0.23em 0.15em 0.4em;
1213
- border-radius: 0.15em 0.15em 0 0; /* borderRadius */
1214
- backface-visibility: hidden;
1215
- -webkit-backface-visibility: hidden;
1216
- transform-style: preserve-3d;
1217
- width: 2.65em;
1218
- }
1219
-
1220
- .flip-card__bottom,
1221
- .flip-card__back-bottom,
1222
- .flip-card__bottom-4digits,
1223
- .flip-card__back-bottom-4digits {
1224
- color: var(--second-flip-color, #EC685C);
1225
- position: absolute;
1226
- top: 50%;
1227
- left: 0;
1228
- border-top: solid 1px var(--second-flip-background-color, #000);
1229
- background: var(--second-flip-background-color, #393939);
1230
- border-radius: 0 0 0.15em 0.15em; /* borderRadius */
1231
- pointer-events: none;
1232
- overflow: hidden;
1233
- z-index: 2;
1234
- }
1235
-
1236
- .flip-card__back-bottom,
1237
- .flip-card__back-bottom-4digits {
1238
- z-index: 1;
1239
- }
1240
-
1241
- .flip-card__bottom::after,
1242
- .flip-card__back-bottom::after,
1243
- .flip-card__bottom-4digits::after,
1244
- .flip-card__back-bottom-4digits::after {
1245
- display: block;
1246
- margin-top: -0.72em; /* Negative halfHeight */
1247
- }
1248
- .flip-card__back::before,
1249
- .flip-card__bottom::after,
1250
- .flip-card__back-bottom::after,
1251
- .flip-card__back-4digits::before,
1252
- .flip-card__bottom-4digits::after,
1253
- .flip-card__back-bottom-4digits::after {
1254
- content: attr(data-value);
1255
- }
1256
-
1257
- .flip-card__back,
1258
- .flip-card__back-4digits {
1259
- position: absolute;
1260
- top: 0;
1261
- height: 100%;
1262
- left: 0%;
1263
- pointer-events: none;
1264
- }
1265
- .flip-card__back::before,
1266
- .flip-card__back-4digits::before {
1267
- position: relative;
1268
- overflow: hidden;
1269
- z-index: -1;
1270
- }
1271
-
1272
- .flip .flip-card__back::before,
1273
- .flip .flip-card__back-4digits::before {
1274
- z-index: 1;
1275
- animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
1276
- animation-fill-mode: both;
1277
- transform-origin: center bottom;
1278
- }
1279
-
1280
- .flip .flip-card__bottom,
1281
- .flip .flip-card__bottom-4digits {
1282
- transform-origin: center top;
1283
- animation-fill-mode: both;
1284
- animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
1285
- }
1286
- @keyframes flipTop {
1287
- 0% {
1288
- transform: rotateX(0deg);
1289
- z-index: 2;
1290
- }
1291
- 0%, 99% {
1292
- opacity: 1;
1293
- }
1294
- 100% {
1295
- transform: rotateX(-90deg);
1296
- opacity: 0;
1297
- }
1298
- }
1299
-
1300
- @keyframes flipBottom {
1301
- 0%, 50% {
1302
- z-index: -1;
1303
- transform: rotateX(90deg);
1304
- opacity: 0;
1305
- }
1306
- 51% {
1307
- opacity: 1;
1308
- }
1309
- 100% {
1310
- opacity: 1;
1311
- transform: rotateX(0deg);
1312
- z-index: 5;
1313
- }
1314
- }
@@ -46750,12 +46750,24 @@ var script$1 = defineComponent({
46750
46750
  const animationLinkC = ref(props.animationLink);
46751
46751
  watch(loop, (newVal) => {
46752
46752
  loopC.value = newVal;
46753
+ if (lottieAnimation.value) {
46754
+ lottieAnimation.value.stop();
46755
+ lottieAnimation.value.play();
46756
+ }
46753
46757
  });
46754
46758
  watch(delay, (newVal) => {
46755
46759
  delayC.value = newVal;
46760
+ if (lottieAnimation.value) {
46761
+ lottieAnimation.value.stop();
46762
+ lottieAnimation.value.play();
46763
+ }
46756
46764
  });
46757
46765
  watch(animationLink, (newVal) => {
46758
46766
  animationLinkC.value = newVal;
46767
+ if (lottieAnimation.value) {
46768
+ lottieAnimation.value.stop();
46769
+ lottieAnimation.value.play();
46770
+ }
46759
46771
  });
46760
46772
  const play = () => {
46761
46773
  if (lottieAnimation.value) {
@@ -46757,12 +46757,24 @@
46757
46757
  const animationLinkC = vue.ref(props.animationLink);
46758
46758
  vue.watch(loop, (newVal) => {
46759
46759
  loopC.value = newVal;
46760
+ if (lottieAnimation.value) {
46761
+ lottieAnimation.value.stop();
46762
+ lottieAnimation.value.play();
46763
+ }
46760
46764
  });
46761
46765
  vue.watch(delay, (newVal) => {
46762
46766
  delayC.value = newVal;
46767
+ if (lottieAnimation.value) {
46768
+ lottieAnimation.value.stop();
46769
+ lottieAnimation.value.play();
46770
+ }
46763
46771
  });
46764
46772
  vue.watch(animationLink, (newVal) => {
46765
46773
  animationLinkC.value = newVal;
46774
+ if (lottieAnimation.value) {
46775
+ lottieAnimation.value.stop();
46776
+ lottieAnimation.value.play();
46777
+ }
46766
46778
  });
46767
46779
  const play = () => {
46768
46780
  if (lottieAnimation.value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",