@blockspoon/cert-badge-renderer 1.0.32 → 1.0.33
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,5 +1,4 @@
|
|
|
1
|
-
import { ISvgProps } from "../../interface/index.js";
|
|
2
|
-
|
|
1
|
+
import { ISvgProps } from "../../interface/index.js";
|
|
3
2
|
|
|
4
3
|
export function createNewCertificateType31({
|
|
5
4
|
mainColor = "#96A6B4",
|
|
@@ -7,13 +6,11 @@ export function createNewCertificateType31({
|
|
|
7
6
|
extraColor1 = "#96A6B4",
|
|
8
7
|
extraColor2 = "#96A6B4",
|
|
9
8
|
}: ISvgProps): string {
|
|
10
|
-
|
|
11
9
|
const paintId0 = `paint0_linear_${Math.random().toString(36).substr(2, 9)}`;
|
|
12
10
|
const paintId1 = `paint1_linear_${Math.random().toString(36).substr(2, 9)}`;
|
|
13
11
|
const paintId2 = `paint2_linear_${Math.random().toString(36).substr(2, 9)}`;
|
|
14
12
|
const paintId3 = `paint3_linear_${Math.random().toString(36).substr(2, 9)}`;
|
|
15
13
|
|
|
16
|
-
|
|
17
14
|
return `
|
|
18
15
|
<svg
|
|
19
16
|
width="100%"
|
|
@@ -40,7 +37,7 @@ export function createNewCertificateType31({
|
|
|
40
37
|
y="41.4995"
|
|
41
38
|
width="1071"
|
|
42
39
|
height="732"
|
|
43
|
-
stroke="
|
|
40
|
+
stroke="${subColor}"
|
|
44
41
|
stroke-width="2"
|
|
45
42
|
/>
|
|
46
43
|
|
|
@@ -63,7 +60,7 @@ export function createNewCertificateType31({
|
|
|
63
60
|
width="16"
|
|
64
61
|
height="109"
|
|
65
62
|
transform="rotate(90 225 42.4995)"
|
|
66
|
-
fill="
|
|
63
|
+
fill="${subColor}"
|
|
67
64
|
/>
|
|
68
65
|
<rect
|
|
69
66
|
x="967"
|
|
@@ -94,7 +91,7 @@ export function createNewCertificateType31({
|
|
|
94
91
|
width="8.00001"
|
|
95
92
|
height="192"
|
|
96
93
|
transform="rotate(90 959 764.5)"
|
|
97
|
-
fill="
|
|
94
|
+
fill="${subColor}"
|
|
98
95
|
/>
|
|
99
96
|
<rect
|
|
100
97
|
x="1078"
|
|
@@ -102,7 +99,7 @@ export function createNewCertificateType31({
|
|
|
102
99
|
width="8.00001"
|
|
103
100
|
height="131"
|
|
104
101
|
transform="rotate(90 1078 745.5)"
|
|
105
|
-
fill="
|
|
102
|
+
fill="${subColor}"
|
|
106
103
|
/>
|
|
107
104
|
<rect
|
|
108
105
|
x="1110"
|
|
@@ -112,14 +109,14 @@ export function createNewCertificateType31({
|
|
|
112
109
|
transform="rotate(90 1110 753.5)"
|
|
113
110
|
fill="${mainColor}"
|
|
114
111
|
/>
|
|
115
|
-
<rect x="56" y="74.4995" width="32" height="88" fill="
|
|
116
|
-
<rect x="1078" y="665.5" width="32" height="88" fill="
|
|
117
|
-
<rect x="41" y="541.5" width="20" height="231" fill="
|
|
118
|
-
<rect x="41" y="42.4995" width="15" height="82" fill="
|
|
119
|
-
<rect x="1078" y="100.5" width="12" height="159" fill="
|
|
120
|
-
<rect x="1090" y="242.5" width="12" height="159" fill="
|
|
121
|
-
<rect x="943" y="58.4995" width="12" height="54" fill="
|
|
122
|
-
<rect x="955" y="85.4995" width="12" height="78" fill="
|
|
112
|
+
<rect x="56" y="74.4995" width="32" height="88" fill="${extraColor1}" />
|
|
113
|
+
<rect x="1078" y="665.5" width="32" height="88" fill="${extraColor1}" />
|
|
114
|
+
<rect x="41" y="541.5" width="20" height="231" fill="${subColor}" />
|
|
115
|
+
<rect x="41" y="42.4995" width="15" height="82" fill="${subColor}" />
|
|
116
|
+
<rect x="1078" y="100.5" width="12" height="159" fill="${extraColor1}" />
|
|
117
|
+
<rect x="1090" y="242.5" width="12" height="159" fill="${subColor}" />
|
|
118
|
+
<rect x="943" y="58.4995" width="12" height="54" fill="${subColor}" />
|
|
119
|
+
<rect x="955" y="85.4995" width="12" height="78" fill="${extraColor1}" />
|
|
123
120
|
<rect
|
|
124
121
|
x="156"
|
|
125
122
|
y="66.4995"
|
|
@@ -217,4 +214,4 @@ export function createNewCertificateType31({
|
|
|
217
214
|
</defs>
|
|
218
215
|
</svg>
|
|
219
216
|
`;
|
|
220
|
-
}
|
|
217
|
+
}
|