@azuro-org/images-generator 1.3.6 → 1.3.8

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.
@@ -10,7 +10,6 @@ export type Props = {
10
10
  isLong: boolean;
11
11
  };
12
12
  pnl: number;
13
- referralUrl: string;
14
13
  };
15
14
  declare const template: Template<Props>;
16
15
  export default template;
@@ -129,8 +129,8 @@
129
129
  .card {
130
130
  background: --card-bg-color;
131
131
  width: 1200px;
132
- height: 800px;
133
- padding: 32px 32px 26px;
132
+ height: 630px;
133
+ padding: 48px;
134
134
  position: relative;
135
135
  }
136
136
 
@@ -178,19 +178,6 @@
178
178
  font-weight: 700;
179
179
  }
180
180
 
181
- .code__text {
182
- color: rgba(0, 0, 0, 0.8);
183
- font-size: 24px;
184
- line-height: 100%;
185
- opacity: 50%;
186
- }
187
-
188
- .code__link {
189
- margin-top: 4px;
190
- font-size: 28px;
191
- line-height: 37px;
192
- }
193
-
194
181
  .right-img {
195
182
  position: absolute;
196
183
  top: 0px;
@@ -207,7 +194,7 @@
207
194
 
208
195
  .person-img {
209
196
  position: absolute;
210
- height: 90%;
197
+ height: 100%;
211
198
  bottom: 0px;
212
199
  right: 0px;
213
200
  mix-blend-mode: multiply;
@@ -216,6 +203,7 @@
216
203
  .bg-img {
217
204
  position: absolute;
218
205
  top: 0px;
206
+ left: 0px;
219
207
  width: 100%;
220
208
  }
221
209
  </style>
@@ -241,10 +229,6 @@
241
229
  </div>
242
230
  <div class="pnl">{pnl}%</div>
243
231
  </div>
244
- <div class="code">
245
- <div class="code__text">Referral code</div>
246
- <div class="code__link">{refferalLink}</div>
247
- </div>
248
232
  </div>
249
233
  </body>
250
234
  </html>
@@ -9,15 +9,15 @@ import {_ as __awaiter,a as __generator,g as getFile,b as getBase64Image,d as do
9
9
  }
10
10
  };
11
11
  var template = {
12
- width: 670,
13
- height: 445,
12
+ width: 1200,
13
+ height: 630,
14
14
  type: 'jpeg',
15
15
  html: function (props) { return __awaiter(void 0, void 0, void 0, function () {
16
- var type, trend, pnl, position, referralUrl, isProfit, _a, rightImg, bgColor, leverage, isLong, html, logo, bgImage, rightImage, personImage, arrowImage, trendImage, positionInfo;
16
+ var type, trend, pnl, position, isProfit, _a, rightImg, bgColor, leverage, isLong, html, logo, bgImage, rightImage, personImage, arrowImage, trendImage, positionInfo;
17
17
  return __generator(this, function (_b) {
18
18
  switch (_b.label) {
19
19
  case 0:
20
- type = props.type, trend = props.trend, pnl = props.pnl, position = props.position, referralUrl = props.referralUrl;
20
+ type = props.type, trend = props.trend, pnl = props.pnl, position = props.position;
21
21
  isProfit = pnl > 0;
22
22
  _a = isProfit ? cardTypes.profit : cardTypes.loss, rightImg = _a.rightImg, bgColor = _a.bgColor;
23
23
  leverage = position.leverage, isLong = position.isLong;
@@ -41,7 +41,6 @@ var template = {
41
41
  .replace('{trendTitle}', trend.title)
42
42
  .replace('{positionInfo}', positionInfo)
43
43
  .replace('{arrowImage}', arrowImage)
44
- .replace('{refferalLink}', referralUrl)
45
44
  .replace('{pnl}', pnl > 0 ? "+".concat(pnl) : "".concat(pnl))];
46
45
  }
47
46
  });
@@ -10,7 +10,6 @@ export type Props = {
10
10
  isLong: boolean;
11
11
  };
12
12
  pnl: number;
13
- referralUrl: string;
14
13
  };
15
14
  declare const template: Template<Props>;
16
15
  export default template;
@@ -129,8 +129,8 @@
129
129
  .card {
130
130
  background: --card-bg-color;
131
131
  width: 1200px;
132
- height: 800px;
133
- padding: 32px 32px 26px;
132
+ height: 630px;
133
+ padding: 48px;
134
134
  position: relative;
135
135
  }
136
136
 
@@ -178,19 +178,6 @@
178
178
  font-weight: 700;
179
179
  }
180
180
 
181
- .code__text {
182
- color: rgba(0, 0, 0, 0.8);
183
- font-size: 24px;
184
- line-height: 100%;
185
- opacity: 50%;
186
- }
187
-
188
- .code__link {
189
- margin-top: 4px;
190
- font-size: 28px;
191
- line-height: 37px;
192
- }
193
-
194
181
  .right-img {
195
182
  position: absolute;
196
183
  top: 0px;
@@ -207,7 +194,7 @@
207
194
 
208
195
  .person-img {
209
196
  position: absolute;
210
- height: 90%;
197
+ height: 100%;
211
198
  bottom: 0px;
212
199
  right: 0px;
213
200
  mix-blend-mode: multiply;
@@ -216,6 +203,7 @@
216
203
  .bg-img {
217
204
  position: absolute;
218
205
  top: 0px;
206
+ left: 0px;
219
207
  width: 100%;
220
208
  }
221
209
  </style>
@@ -241,10 +229,6 @@
241
229
  </div>
242
230
  <div class="pnl">{pnl}%</div>
243
231
  </div>
244
- <div class="code">
245
- <div class="code__text">Referral code</div>
246
- <div class="code__link">{refferalLink}</div>
247
- </div>
248
232
  </div>
249
233
  </body>
250
234
  </html>
@@ -9,15 +9,15 @@
9
9
  }
10
10
  };
11
11
  var template = {
12
- width: 670,
13
- height: 445,
12
+ width: 1200,
13
+ height: 630,
14
14
  type: 'jpeg',
15
15
  html: function (props) { return index._(void 0, void 0, void 0, function () {
16
- var type, trend, pnl, position, referralUrl, isProfit, _a, rightImg, bgColor, leverage, isLong, html, logo, bgImage, rightImage, personImage, arrowImage, trendImage, positionInfo;
16
+ var type, trend, pnl, position, isProfit, _a, rightImg, bgColor, leverage, isLong, html, logo, bgImage, rightImage, personImage, arrowImage, trendImage, positionInfo;
17
17
  return index.a(this, function (_b) {
18
18
  switch (_b.label) {
19
19
  case 0:
20
- type = props.type, trend = props.trend, pnl = props.pnl, position = props.position, referralUrl = props.referralUrl;
20
+ type = props.type, trend = props.trend, pnl = props.pnl, position = props.position;
21
21
  isProfit = pnl > 0;
22
22
  _a = isProfit ? cardTypes.profit : cardTypes.loss, rightImg = _a.rightImg, bgColor = _a.bgColor;
23
23
  leverage = position.leverage, isLong = position.isLong;
@@ -41,7 +41,6 @@ var template = {
41
41
  .replace('{trendTitle}', trend.title)
42
42
  .replace('{positionInfo}', positionInfo)
43
43
  .replace('{arrowImage}', arrowImage)
44
- .replace('{refferalLink}', referralUrl)
45
44
  .replace('{pnl}', pnl > 0 ? "+".concat(pnl) : "".concat(pnl))];
46
45
  }
47
46
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azuro-org/images-generator",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "license": "ISC",
5
5
  "engines": {
6
6
  "node": ">=16.15.1",