@betarena/ad-engine 0.0.30 → 0.0.31
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.
package/package.json
CHANGED
|
@@ -493,13 +493,19 @@
|
|
|
493
493
|
-->
|
|
494
494
|
<DevInfoBox>
|
|
495
495
|
<p>
|
|
496
|
-
Device Type :|: {deviceType}
|
|
496
|
+
[detected] Device Type :|: {deviceType}
|
|
497
497
|
</p>
|
|
498
498
|
<p>
|
|
499
|
-
Geo-Location :|: {geoLocation?.country_code}
|
|
499
|
+
[detected] Geo-Location :|: {geoLocation?.country_code}
|
|
500
500
|
</p>
|
|
501
501
|
<p>
|
|
502
|
-
|
|
502
|
+
[detected] Page Advert Snippets Number :|: {betarenaAdsInjectMap.size}
|
|
503
|
+
</p>
|
|
504
|
+
<p>
|
|
505
|
+
[properties] AuthorId :|: {authorId}
|
|
506
|
+
</p>
|
|
507
|
+
<p>
|
|
508
|
+
[properties] AuthorArticleTagIds :|: [{authorArticleTagIds}]
|
|
503
509
|
</p>
|
|
504
510
|
</DevInfoBox>
|
|
505
511
|
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
* @description
|
|
90
90
|
* 📝 number of `milliseconds` for advert close action show
|
|
91
91
|
* @example
|
|
92
|
-
* =>
|
|
92
|
+
* => 5000 (5 seconds)
|
|
93
93
|
*/
|
|
94
|
-
timeoutForAdvertCloseAction =
|
|
94
|
+
timeoutForAdvertCloseAction = 5000
|
|
95
95
|
;
|
|
96
96
|
|
|
97
97
|
let
|
|
@@ -225,11 +225,22 @@
|
|
|
225
225
|
╰─────
|
|
226
226
|
-->
|
|
227
227
|
{#if ((adData.type == 1 || adData.type == 4) && adData.data?.media)}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
<a
|
|
229
|
+
href={adData.data?.video_link}
|
|
230
|
+
target="_blank"
|
|
231
|
+
rel=
|
|
232
|
+
"
|
|
233
|
+
noopener
|
|
234
|
+
noreferrer
|
|
235
|
+
"
|
|
236
|
+
>
|
|
237
|
+
<!--
|
|
238
|
+
<iframe
|
|
239
|
+
width=250
|
|
240
|
+
height=250
|
|
241
|
+
src={adData.data?.media}
|
|
242
|
+
/>
|
|
243
|
+
-->
|
|
233
244
|
<video
|
|
234
245
|
id="banner"
|
|
235
246
|
width=250
|
|
@@ -240,6 +251,7 @@
|
|
|
240
251
|
playsinline={true}
|
|
241
252
|
loop={true}
|
|
242
253
|
/>
|
|
254
|
+
</a>
|
|
243
255
|
|
|
244
256
|
{:else if (adData.type == 2)}
|
|
245
257
|
<img
|
|
@@ -357,6 +369,15 @@
|
|
|
357
369
|
border-radius: 40px 40px 0px 0px;
|
|
358
370
|
background-color: var(--dark-theme-1-4-shade);
|
|
359
371
|
|
|
372
|
+
@mixin banner
|
|
373
|
+
{
|
|
374
|
+
/* 🎨 style */
|
|
375
|
+
max-height: 355px;
|
|
376
|
+
min-height: 355px;
|
|
377
|
+
width: 100%;
|
|
378
|
+
object-fit: cover;
|
|
379
|
+
}
|
|
380
|
+
|
|
360
381
|
img
|
|
361
382
|
{
|
|
362
383
|
&#close
|
|
@@ -370,24 +391,21 @@
|
|
|
370
391
|
|
|
371
392
|
&#banner
|
|
372
393
|
{
|
|
394
|
+
@include banner;
|
|
373
395
|
/* 🎨 style */
|
|
374
|
-
height: 355px;
|
|
375
|
-
width: 100%;
|
|
376
396
|
}
|
|
377
397
|
}
|
|
378
398
|
|
|
379
399
|
iframe
|
|
380
400
|
{
|
|
381
401
|
/* 🎨 style */
|
|
382
|
-
|
|
383
|
-
object-fit: cover;
|
|
402
|
+
@include banner;
|
|
384
403
|
}
|
|
385
404
|
|
|
386
405
|
video
|
|
387
406
|
{
|
|
388
407
|
/* 🎨 style */
|
|
389
|
-
|
|
390
|
-
object-fit: cover;
|
|
408
|
+
@include banner;
|
|
391
409
|
}
|
|
392
410
|
|
|
393
411
|
div#main-box
|
|
@@ -409,6 +427,7 @@
|
|
|
409
427
|
/* 🎨 style */
|
|
410
428
|
border-radius: 7.57px;
|
|
411
429
|
max-height: 50px;
|
|
430
|
+
min-height: 50px;
|
|
412
431
|
width: 100%;
|
|
413
432
|
padding: 10px;
|
|
414
433
|
background: radial-gradient(97.9% 290.93% at 11.52% 99.71%, #2E6514 0%, #66BE3C 100%) /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */;
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
align-content: space-between;
|
|
166
166
|
/* 🛝 layout */
|
|
167
167
|
display: grid;
|
|
168
|
-
grid-template-columns: 1fr
|
|
168
|
+
grid-template-columns: 1fr;
|
|
169
169
|
|
|
170
170
|
div.grid-box
|
|
171
171
|
{
|
|
@@ -196,4 +196,21 @@
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
/*
|
|
200
|
+
╭──────────────────────────────────────────────────────────────────────────────╮
|
|
201
|
+
│ ⚡️ RESPONSIVNESS │
|
|
202
|
+
╰──────────────────────────────────────────────────────────────────────────────╯
|
|
203
|
+
*/
|
|
204
|
+
|
|
205
|
+
@media only screen
|
|
206
|
+
and (min-width: 560px)
|
|
207
|
+
{
|
|
208
|
+
div#developer-admin-infobox
|
|
209
|
+
{
|
|
210
|
+
/* 🛝 layout */
|
|
211
|
+
display: grid;
|
|
212
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
199
216
|
</style>
|