@betarena/ad-engine 0.0.58 → 0.0.59

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betarena/ad-engine",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "private": false,
5
5
  "description": "Betarena ad-engine widget",
6
6
  "keywords": [
@@ -263,40 +263,34 @@
263
263
  text-align: center;
264
264
  "
265
265
  >
266
- <div
267
- style=
268
- "
269
- margin: 0px auto;
270
- width: 100%;
271
- height: 100%;
272
- "
273
- >
274
- <a
275
- target="_blank"
276
- on:click=
266
+ <a
267
+ target="_blank"
268
+ on:click=
269
+ {
270
+ () =>
277
271
  {
278
- () =>
279
- {
280
- postMod
281
- (
282
- `${betarenaEndpoint}/ad/update/click`,
283
- {
284
- creativeId: objectAdverData.id
285
- }
286
- );
287
- }
272
+ postMod
273
+ (
274
+ `${betarenaEndpoint}/ad/update/click`,
275
+ {
276
+ creativeId: objectAdverData.id
277
+ }
278
+ );
288
279
  }
289
- href={objectAdverData.data?.cta_link}
290
- >
291
- <img
292
- alt="ad_image"
293
- class="ad_image"
294
- src={objectAdverData.data?.media}
295
- width="100%"
296
- height="100%"
297
- />
298
- </a>
299
- </div>
280
+ }
281
+ href={objectAdverData.data?.cta_link}
282
+ >
283
+ <div
284
+ style=
285
+ "
286
+ background: url({objectAdverData.data?.media});
287
+ height: 100vh;
288
+ width: 100vw;
289
+ background-repeat: no-repeat;
290
+ background-size: contain;
291
+ "
292
+ />
293
+ </a>
300
294
  </div>
301
295
  </div>
302
296