qrdx 0.0.46 → 0.0.48

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.
Files changed (212) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +358 -300
  3. package/dist/index.js +27 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +27 -7
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/qr-code-canvas.js +12 -0
  8. package/dist/qr-code-canvas.js.map +1 -0
  9. package/dist/qr-code-canvas.mjs +12 -0
  10. package/dist/qr-code-canvas.mjs.map +1 -0
  11. package/dist/src/api.d.ts.map +1 -1
  12. package/dist/src/art-trace.d.ts +46 -0
  13. package/dist/src/art-trace.d.ts.map +1 -0
  14. package/dist/src/art.d.ts +138 -0
  15. package/dist/src/art.d.ts.map +1 -0
  16. package/dist/src/body-patterns.d.ts +34 -0
  17. package/dist/src/body-patterns.d.ts.map +1 -0
  18. package/dist/src/codegen.d.ts +5 -5
  19. package/dist/src/codegen.d.ts.map +1 -1
  20. package/dist/src/codeword-map.d.ts +40 -0
  21. package/dist/src/codeword-map.d.ts.map +1 -0
  22. package/dist/src/constants.d.ts +4 -7
  23. package/dist/src/constants.d.ts.map +1 -1
  24. package/dist/src/corner-dot.d.ts +3 -1
  25. package/dist/src/corner-dot.d.ts.map +1 -1
  26. package/dist/src/corner-eye.d.ts +5 -2
  27. package/dist/src/corner-eye.d.ts.map +1 -1
  28. package/dist/src/detection.d.ts.map +1 -1
  29. package/dist/src/download.d.ts +50 -6
  30. package/dist/src/download.d.ts.map +1 -1
  31. package/dist/src/eps.d.ts +62 -0
  32. package/dist/src/eps.d.ts.map +1 -0
  33. package/dist/src/frame-icons.d.ts +11 -0
  34. package/dist/src/frame-icons.d.ts.map +1 -0
  35. package/dist/src/frame-import.d.ts +61 -0
  36. package/dist/src/frame-import.d.ts.map +1 -0
  37. package/dist/src/frame-spec.d.ts +24 -0
  38. package/dist/src/frame-spec.d.ts.map +1 -0
  39. package/dist/src/frame-styles.d.ts +50 -0
  40. package/dist/src/frame-styles.d.ts.map +1 -0
  41. package/dist/src/frame.d.ts +126 -0
  42. package/dist/src/frame.d.ts.map +1 -0
  43. package/dist/src/frames/builtin.d.ts +8 -0
  44. package/dist/src/frames/builtin.d.ts.map +1 -0
  45. package/dist/src/frames/official.d.ts +18 -0
  46. package/dist/src/frames/official.d.ts.map +1 -0
  47. package/dist/src/helpers.d.ts +15 -2
  48. package/dist/src/helpers.d.ts.map +1 -1
  49. package/dist/src/index.d.ts +25 -13
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/logo-budget.d.ts +54 -0
  52. package/dist/src/logo-budget.d.ts.map +1 -0
  53. package/dist/src/logo-cleanup.d.ts +25 -0
  54. package/dist/src/logo-cleanup.d.ts.map +1 -0
  55. package/dist/src/logo.d.ts +28 -0
  56. package/dist/src/logo.d.ts.map +1 -0
  57. package/dist/src/print.d.ts +73 -0
  58. package/dist/src/print.d.ts.map +1 -0
  59. package/dist/src/qr-code-canvas.d.ts +13 -0
  60. package/dist/src/qr-code-canvas.d.ts.map +1 -0
  61. package/dist/src/qr-code.d.ts +4 -2
  62. package/dist/src/qr-code.d.ts.map +1 -1
  63. package/dist/src/qr-outline.d.ts +41 -0
  64. package/dist/src/qr-outline.d.ts.map +1 -0
  65. package/dist/src/qr-shape.d.ts +72 -0
  66. package/dist/src/qr-shape.d.ts.map +1 -0
  67. package/dist/src/scan-risk.d.ts +40 -0
  68. package/dist/src/scan-risk.d.ts.map +1 -0
  69. package/dist/src/scan-score.d.ts +154 -0
  70. package/dist/src/scan-score.d.ts.map +1 -0
  71. package/dist/src/shapes.d.ts +36 -0
  72. package/dist/src/shapes.d.ts.map +1 -0
  73. package/dist/src/silhouette.d.ts +28 -0
  74. package/dist/src/silhouette.d.ts.map +1 -0
  75. package/dist/src/utils/color.d.ts.map +1 -1
  76. package/dist/src/utils/fmt.d.ts +24 -0
  77. package/dist/src/utils/fmt.d.ts.map +1 -0
  78. package/dist/src/utils/paint.d.ts +80 -0
  79. package/dist/src/utils/paint.d.ts.map +1 -0
  80. package/dist/src/utils/parse-color.d.ts +21 -0
  81. package/dist/src/utils/parse-color.d.ts.map +1 -0
  82. package/dist/src/utils/path-data.d.ts +24 -0
  83. package/dist/src/utils/path-data.d.ts.map +1 -0
  84. package/dist/src/utils/png.d.ts +16 -0
  85. package/dist/src/utils/png.d.ts.map +1 -0
  86. package/dist/src/utils/polygon-clip.d.ts +26 -0
  87. package/dist/src/utils/polygon-clip.d.ts.map +1 -0
  88. package/dist/src/utils/print-shared.d.ts +20 -0
  89. package/dist/src/utils/print-shared.d.ts.map +1 -0
  90. package/dist/src/utils/svg-geometry.d.ts +49 -0
  91. package/dist/src/utils/svg-geometry.d.ts.map +1 -0
  92. package/dist/src/utils/svg-gradient.d.ts +59 -0
  93. package/dist/src/utils/svg-gradient.d.ts.map +1 -0
  94. package/dist/src/utils/svg-painter.d.ts +152 -0
  95. package/dist/src/utils/svg-painter.d.ts.map +1 -0
  96. package/dist/src/utils/webp.d.ts +25 -0
  97. package/dist/src/utils/webp.d.ts.map +1 -0
  98. package/dist/src/utils.d.ts +18 -2
  99. package/dist/src/utils.d.ts.map +1 -1
  100. package/dist/src/webp.d.ts +19 -0
  101. package/dist/src/webp.d.ts.map +1 -0
  102. package/dist/types/art.d.ts +64 -0
  103. package/dist/types/art.d.ts.map +1 -0
  104. package/dist/types/color.d.ts +125 -7
  105. package/dist/types/color.d.ts.map +1 -1
  106. package/dist/types/corner-dot.d.ts +52 -2
  107. package/dist/types/corner-dot.d.ts.map +1 -1
  108. package/dist/types/corner-eye.d.ts +43 -2
  109. package/dist/types/corner-eye.d.ts.map +1 -1
  110. package/dist/types/frame-spec.d.ts +3509 -0
  111. package/dist/types/frame-spec.d.ts.map +1 -0
  112. package/dist/types/frame.d.ts +68 -0
  113. package/dist/types/frame.d.ts.map +1 -0
  114. package/dist/types/image-pattern.d.ts +15 -1
  115. package/dist/types/image-pattern.d.ts.map +1 -1
  116. package/dist/types/index.d.ts +15 -9
  117. package/dist/types/index.d.ts.map +1 -1
  118. package/dist/types/index.js +6 -0
  119. package/dist/types/index.js.map +1 -0
  120. package/dist/types/index.mjs +6 -0
  121. package/dist/types/index.mjs.map +1 -0
  122. package/dist/types/qr.d.ts +1684 -4
  123. package/dist/types/qr.d.ts.map +1 -1
  124. package/dist/types/template.d.ts +2 -2
  125. package/dist/types/template.d.ts.map +1 -1
  126. package/package.json +70 -25
  127. package/src/api.tsx +67 -17
  128. package/src/art-trace.ts +554 -0
  129. package/src/art.tsx +2226 -0
  130. package/src/body-patterns.tsx +389 -0
  131. package/src/codegen.ts +10 -5
  132. package/src/codeword-map.ts +265 -0
  133. package/src/constants.ts +4 -8
  134. package/src/corner-dot.tsx +209 -33
  135. package/src/corner-eye.ts +328 -60
  136. package/src/detection.ts +5 -11
  137. package/src/download.tsx +174 -70
  138. package/src/eps.ts +701 -0
  139. package/src/frame-icons.ts +325 -0
  140. package/src/frame-import.ts +1198 -0
  141. package/src/frame-spec.ts +518 -0
  142. package/src/frame-styles.ts +1095 -0
  143. package/src/frame.tsx +630 -0
  144. package/src/frames/builtin/banner-bottom.json +58 -0
  145. package/src/frames/builtin/circle.json +81 -0
  146. package/src/frames/builtin/rounded-border.json +60 -0
  147. package/src/frames/builtin/ticket.json +51 -0
  148. package/src/frames/builtin.ts +20 -0
  149. package/src/frames/official/attendance.json +110 -0
  150. package/src/frames/official/audio-guide.json +95 -0
  151. package/src/frames/official/book-now.json +103 -0
  152. package/src/frames/official/check-in.json +110 -0
  153. package/src/frames/official/christmas.json +131 -0
  154. package/src/frames/official/donate.json +77 -0
  155. package/src/frames/official/event-ticket.json +77 -0
  156. package/src/frames/official/feedback-bubble.json +73 -0
  157. package/src/frames/official/follow-us.json +83 -0
  158. package/src/frames/official/get-the-app.json +107 -0
  159. package/src/frames/official/halloween.json +80 -0
  160. package/src/frames/official/new-year.json +94 -0
  161. package/src/frames/official/order-at-table.json +86 -0
  162. package/src/frames/official/product-info.json +119 -0
  163. package/src/frames/official/register-product.json +77 -0
  164. package/src/frames/official/review-us.json +127 -0
  165. package/src/frames/official/rsvp-card.json +112 -0
  166. package/src/frames/official/save-contact.json +117 -0
  167. package/src/frames/official/scan-to-pay.json +94 -0
  168. package/src/frames/official/shop-window.json +81 -0
  169. package/src/frames/official/sign-rider.json +81 -0
  170. package/src/frames/official/table-tent.json +75 -0
  171. package/src/frames/official/wifi-card.json +89 -0
  172. package/src/frames/official/winter.json +142 -0
  173. package/src/frames/official.ts +77 -0
  174. package/src/helpers.ts +168 -11
  175. package/src/index.tsx +150 -172
  176. package/src/logo-budget.ts +226 -0
  177. package/src/logo-cleanup.ts +146 -0
  178. package/src/logo.tsx +137 -0
  179. package/src/print.ts +794 -0
  180. package/src/qr-code-canvas.tsx +241 -0
  181. package/src/qr-code.tsx +51 -16
  182. package/src/qr-outline.ts +511 -0
  183. package/src/qr-shape.ts +255 -0
  184. package/src/scan-risk.ts +197 -0
  185. package/src/scan-score.ts +1629 -0
  186. package/src/shapes.ts +169 -0
  187. package/src/silhouette.ts +334 -0
  188. package/src/utils/color.ts +10 -1
  189. package/src/utils/fmt.ts +59 -0
  190. package/src/utils/paint.ts +317 -0
  191. package/src/utils/parse-color.ts +135 -0
  192. package/src/utils/path-data.ts +182 -0
  193. package/src/utils/png.ts +175 -0
  194. package/src/utils/polygon-clip.ts +163 -0
  195. package/src/utils/print-shared.ts +74 -0
  196. package/src/utils/svg-geometry.ts +838 -0
  197. package/src/utils/svg-gradient.ts +407 -0
  198. package/src/utils/svg-painter.ts +946 -0
  199. package/src/utils/webp.ts +556 -0
  200. package/src/utils.tsx +794 -385
  201. package/src/webp.ts +84 -0
  202. package/types/art.ts +74 -0
  203. package/types/color.ts +132 -12
  204. package/types/corner-dot.ts +41 -4
  205. package/types/corner-eye.ts +31 -4
  206. package/types/frame-spec.ts +748 -0
  207. package/types/frame.ts +67 -0
  208. package/types/image-pattern.ts +15 -0
  209. package/types/index.ts +106 -4
  210. package/types/qr.ts +180 -2
  211. package/types/template.ts +2 -2
  212. package/dist/cli.js +0 -4319
@@ -0,0 +1,117 @@
1
+ {
2
+ "id": "save-contact",
3
+ "name": "Save my contact",
4
+ "description": "A business-card style frame with a corner tab and a contact prompt.",
5
+ "category": "use-case",
6
+ "contentTypes": ["vcard"],
7
+ "tags": ["business card", "contact", "networking"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1620
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 260
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1620,
34
+ "radius": 48,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1240,
42
+ "height": 1620,
43
+ "radius": 48,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 24,
47
+ "y": 24,
48
+ "width": 1192,
49
+ "height": 1572,
50
+ "radius": 28
51
+ }
52
+ },
53
+ {
54
+ "type": "polygon",
55
+ "points": [[1056, 24], [1188, 24], [1216, 52], [1216, 184]],
56
+ "fill": "frame"
57
+ },
58
+ {
59
+ "type": "rect",
60
+ "x": 0,
61
+ "y": 1380,
62
+ "width": 1240,
63
+ "height": 240,
64
+ "radius": 48,
65
+ "fill": "frame"
66
+ },
67
+ {
68
+ "type": "rect",
69
+ "x": 0,
70
+ "y": 1380,
71
+ "width": 1240,
72
+ "height": 52,
73
+ "fill": "frame"
74
+ },
75
+ {
76
+ "type": "icon",
77
+ "icon": "user",
78
+ "x": 110,
79
+ "y": 1440,
80
+ "size": 120,
81
+ "fill": "text"
82
+ }
83
+ ],
84
+ "labels": [
85
+ {
86
+ "type": "text",
87
+ "id": "name",
88
+ "slot": "secondary",
89
+ "text": "",
90
+ "color": "frame",
91
+ "box": {
92
+ "x": 90,
93
+ "y": 60,
94
+ "width": 900,
95
+ "height": 110
96
+ },
97
+ "align": "start",
98
+ "weight": "regular"
99
+ },
100
+ {
101
+ "type": "text",
102
+ "id": "cta",
103
+ "slot": "primary",
104
+ "text": "Save my contact",
105
+ "color": "text",
106
+ "box": {
107
+ "x": 270,
108
+ "y": 1420,
109
+ "width": 870,
110
+ "height": 160
111
+ },
112
+ "fontSize": 115.2,
113
+ "align": "start"
114
+ }
115
+ ]
116
+ }
117
+ }
@@ -0,0 +1,94 @@
1
+ {
2
+ "id": "scan-to-pay",
3
+ "name": "Scan to pay",
4
+ "description": "Payment prompt with a card glyph and a line for a note.",
5
+ "category": "use-case",
6
+ "contentTypes": ["upi", "paypal", "venmo", "url"],
7
+ "tags": ["payments", "checkout", "retail"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1760
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 400
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 28,
31
+ "y": 300,
32
+ "width": 1184,
33
+ "height": 1432,
34
+ "radius": 28,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1240,
42
+ "height": 1760,
43
+ "radius": 56,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 28,
47
+ "y": 300,
48
+ "width": 1184,
49
+ "height": 1432,
50
+ "radius": 28
51
+ }
52
+ },
53
+ {
54
+ "type": "icon",
55
+ "icon": "card",
56
+ "x": 130,
57
+ "y": 85,
58
+ "size": 130,
59
+ "fill": "text"
60
+ }
61
+ ],
62
+ "labels": [
63
+ {
64
+ "type": "text",
65
+ "id": "cta",
66
+ "slot": "primary",
67
+ "text": "Scan to pay",
68
+ "color": "text",
69
+ "box": {
70
+ "x": 300,
71
+ "y": 80,
72
+ "width": 840,
73
+ "height": 140
74
+ },
75
+ "fontSize": 100.8,
76
+ "align": "start"
77
+ },
78
+ {
79
+ "type": "text",
80
+ "id": "note",
81
+ "slot": "secondary",
82
+ "text": "Thank you",
83
+ "color": "frame",
84
+ "box": {
85
+ "x": 120,
86
+ "y": 1510,
87
+ "width": 1000,
88
+ "height": 150
89
+ },
90
+ "weight": "regular"
91
+ }
92
+ ]
93
+ }
94
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "id": "shop-window",
3
+ "name": "Shop window",
4
+ "description": "A landscape window sticker with a bag glyph and a shop prompt.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["retail", "shop", "window", "sticker"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1840,
14
+ "height": 1056
15
+ },
16
+ "qr": {
17
+ "size": 800,
18
+ "padding": 64,
19
+ "radius": 19.2,
20
+ "x": 128,
21
+ "y": 128
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1840,
33
+ "height": 1056,
34
+ "radius": 192,
35
+ "fill": "frame"
36
+ },
37
+ {
38
+ "type": "icon",
39
+ "icon": "bag",
40
+ "x": 1104,
41
+ "y": 184,
42
+ "size": 160,
43
+ "fill": "text"
44
+ }
45
+ ],
46
+ "labels": [
47
+ {
48
+ "type": "text",
49
+ "id": "cta",
50
+ "slot": "primary",
51
+ "text": "Scan to shop",
52
+ "color": "text",
53
+ "box": {
54
+ "x": 1104,
55
+ "y": 384,
56
+ "width": 640,
57
+ "height": 176
58
+ },
59
+ "align": "start"
60
+ },
61
+ {
62
+ "type": "text",
63
+ "id": "note",
64
+ "slot": "secondary",
65
+ "text": "Browse the full range",
66
+ "color": {
67
+ "mix": ["text", "frame"],
68
+ "amount": 0.25
69
+ },
70
+ "box": {
71
+ "x": 1104,
72
+ "y": 592,
73
+ "width": 640,
74
+ "height": 112
75
+ },
76
+ "align": "start",
77
+ "weight": "regular"
78
+ }
79
+ ]
80
+ }
81
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "id": "sign-rider",
3
+ "name": "Sign rider",
4
+ "description": "A wide rider for property signs, with the prompt beside the code.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["real estate", "property", "signage"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1920,
14
+ "height": 992
15
+ },
16
+ "qr": {
17
+ "size": 800,
18
+ "padding": 64,
19
+ "radius": 25.6,
20
+ "x": 1024,
21
+ "y": 96
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1920,
33
+ "height": 992,
34
+ "radius": 38.4,
35
+ "fill": "frame"
36
+ },
37
+ {
38
+ "type": "icon",
39
+ "icon": "home",
40
+ "x": 96,
41
+ "y": 120,
42
+ "size": 144,
43
+ "fill": "text"
44
+ }
45
+ ],
46
+ "labels": [
47
+ {
48
+ "type": "text",
49
+ "id": "cta",
50
+ "slot": "primary",
51
+ "text": "Scan for photos & price",
52
+ "color": "text",
53
+ "box": {
54
+ "x": 96,
55
+ "y": 320,
56
+ "width": 832,
57
+ "height": 160
58
+ },
59
+ "align": "start"
60
+ },
61
+ {
62
+ "type": "text",
63
+ "id": "note",
64
+ "slot": "secondary",
65
+ "text": "Book a viewing",
66
+ "color": {
67
+ "mix": ["text", "frame"],
68
+ "amount": 0.25
69
+ },
70
+ "box": {
71
+ "x": 96,
72
+ "y": 528,
73
+ "width": 832,
74
+ "height": 112
75
+ },
76
+ "align": "start",
77
+ "weight": "regular"
78
+ }
79
+ ]
80
+ }
81
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "id": "table-tent",
3
+ "name": "Table tent topper",
4
+ "description": "An arched topper for table tents and menu holders.",
5
+ "category": "use-case",
6
+ "contentTypes": ["url"],
7
+ "tags": ["menu", "restaurant", "cafe", "table"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1840
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 500
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "path",
30
+ "d": "M0 1840V620A620 620 0 0 1 1240 620V1840Z",
31
+ "fill": "frame"
32
+ },
33
+ {
34
+ "type": "icon",
35
+ "icon": "cup",
36
+ "x": 550,
37
+ "y": 120,
38
+ "size": 140,
39
+ "fill": "background"
40
+ }
41
+ ],
42
+ "labels": [
43
+ {
44
+ "type": "text",
45
+ "id": "note",
46
+ "slot": "secondary",
47
+ "text": "",
48
+ "color": {
49
+ "mix": ["background", "frame"],
50
+ "amount": 0.2
51
+ },
52
+ "box": {
53
+ "x": 140,
54
+ "y": 290,
55
+ "width": 960,
56
+ "height": 100
57
+ },
58
+ "weight": "regular"
59
+ },
60
+ {
61
+ "type": "text",
62
+ "id": "cta",
63
+ "slot": "primary",
64
+ "text": "Scan for our menu",
65
+ "color": "text",
66
+ "box": {
67
+ "x": 100,
68
+ "y": 1610,
69
+ "width": 1040,
70
+ "height": 170
71
+ }
72
+ }
73
+ ]
74
+ }
75
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "id": "wifi-card",
3
+ "name": "Wi-Fi card",
4
+ "description": "A dark card with a Wi-Fi glyph, a join prompt and a pill for the network name.",
5
+ "category": "use-case",
6
+ "contentTypes": ["wifi"],
7
+ "tags": ["wifi", "hospitality", "cafe", "hotel"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1660
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 390
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1660,
34
+ "radius": 64,
35
+ "fill": "frame"
36
+ },
37
+ {
38
+ "type": "icon",
39
+ "icon": "wifi",
40
+ "x": 555,
41
+ "y": 60,
42
+ "size": 130,
43
+ "fill": "text"
44
+ },
45
+ {
46
+ "type": "rect",
47
+ "x": 220,
48
+ "y": 1500,
49
+ "width": 800,
50
+ "height": 116,
51
+ "radius": 58,
52
+ "fill": {
53
+ "mix": ["frame", "#ffffff"],
54
+ "amount": 0.16
55
+ }
56
+ }
57
+ ],
58
+ "labels": [
59
+ {
60
+ "type": "text",
61
+ "id": "cta",
62
+ "slot": "primary",
63
+ "text": "Scan to join Wi-Fi",
64
+ "color": "text",
65
+ "box": {
66
+ "x": 80,
67
+ "y": 196,
68
+ "width": 1080,
69
+ "height": 104
70
+ },
71
+ "fontSize": 74.9
72
+ },
73
+ {
74
+ "type": "text",
75
+ "id": "network",
76
+ "slot": "secondary",
77
+ "text": "Guest Wi-Fi",
78
+ "color": "text",
79
+ "box": {
80
+ "x": 240,
81
+ "y": 1500,
82
+ "width": 760,
83
+ "height": 116
84
+ },
85
+ "weight": "regular"
86
+ }
87
+ ]
88
+ }
89
+ }
@@ -0,0 +1,142 @@
1
+ {
2
+ "id": "winter",
3
+ "name": "Winter",
4
+ "description": "A light card with snowflakes over the code and on the label band.",
5
+ "category": "seasonal",
6
+ "contentTypes": [],
7
+ "tags": ["seasonal", "winter", "snow"],
8
+ "license": "CC0-1.0",
9
+ "spec": {
10
+ "kind": "qrdx.frame",
11
+ "version": 1,
12
+ "artboard": {
13
+ "width": 1240,
14
+ "height": 1580
15
+ },
16
+ "qr": {
17
+ "size": 1000,
18
+ "padding": 80,
19
+ "radius": 24,
20
+ "x": 120,
21
+ "y": 220
22
+ },
23
+ "colors": {
24
+ "frame": "#111111",
25
+ "text": "#ffffff"
26
+ },
27
+ "shapes": [
28
+ {
29
+ "type": "rect",
30
+ "x": 0,
31
+ "y": 0,
32
+ "width": 1240,
33
+ "height": 1580,
34
+ "radius": 40,
35
+ "fill": "background"
36
+ },
37
+ {
38
+ "type": "rect",
39
+ "x": 0,
40
+ "y": 0,
41
+ "width": 1240,
42
+ "height": 1580,
43
+ "radius": 40,
44
+ "fill": "frame",
45
+ "hole": {
46
+ "x": 14,
47
+ "y": 14,
48
+ "width": 1212,
49
+ "height": 1552,
50
+ "radius": 26
51
+ }
52
+ },
53
+ {
54
+ "type": "icon",
55
+ "icon": "snowflake",
56
+ "x": 465,
57
+ "y": 38,
58
+ "size": 90,
59
+ "fill": {
60
+ "mix": ["frame", "#ffffff"],
61
+ "amount": 0.6
62
+ }
63
+ },
64
+ {
65
+ "type": "icon",
66
+ "icon": "snowflake",
67
+ "x": 575,
68
+ "y": 30,
69
+ "size": 90,
70
+ "fill": {
71
+ "mix": ["frame", "#ffffff"],
72
+ "amount": 0.6
73
+ }
74
+ },
75
+ {
76
+ "type": "icon",
77
+ "icon": "snowflake",
78
+ "x": 685,
79
+ "y": 38,
80
+ "size": 90,
81
+ "fill": {
82
+ "mix": ["frame", "#ffffff"],
83
+ "amount": 0.6
84
+ }
85
+ },
86
+ {
87
+ "type": "rect",
88
+ "x": 0,
89
+ "y": 1320,
90
+ "width": 1240,
91
+ "height": 260,
92
+ "radius": 40,
93
+ "fill": "frame"
94
+ },
95
+ {
96
+ "type": "rect",
97
+ "x": 0,
98
+ "y": 1320,
99
+ "width": 1240,
100
+ "height": 44,
101
+ "fill": "frame"
102
+ },
103
+ {
104
+ "type": "icon",
105
+ "icon": "snowflake",
106
+ "x": 80,
107
+ "y": 1390,
108
+ "size": 120,
109
+ "fill": {
110
+ "mix": ["frame", "#ffffff"],
111
+ "amount": 0.45
112
+ }
113
+ },
114
+ {
115
+ "type": "icon",
116
+ "icon": "snowflake",
117
+ "x": 1040,
118
+ "y": 1390,
119
+ "size": 120,
120
+ "fill": {
121
+ "mix": ["frame", "#ffffff"],
122
+ "amount": 0.45
123
+ }
124
+ }
125
+ ],
126
+ "labels": [
127
+ {
128
+ "type": "text",
129
+ "id": "cta",
130
+ "slot": "primary",
131
+ "text": "Scan me",
132
+ "color": "text",
133
+ "box": {
134
+ "x": 220,
135
+ "y": 1340,
136
+ "width": 800,
137
+ "height": 220
138
+ }
139
+ }
140
+ ]
141
+ }
142
+ }