@blockspoon/cert-badge-renderer 1.0.44 → 1.0.46

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.
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang=en>
3
+ <meta charset=utf-8>
4
+ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
5
+ <title>Error 404 (Not Found)!!1</title>
6
+ <style>
7
+ *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
8
+ </style>
9
+ <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
10
+ <p><b>404.</b> <ins>That’s an error.</ins>
11
+ <p>The requested URL <code>/s/righteous/v17/1cXxaUPXBpj2rGoU7C9mj3uEicG0.woff2</code> was not found on this server. <ins>That’s all we know.</ins>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockspoon/cert-badge-renderer",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "Render certificate and badge designs from Kolleges achievement data into HTML, PNG, or Base64.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "exports": {
@@ -68,7 +68,31 @@ export async function generateAchievementHTML(
68
68
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
69
69
  <title>Certificate</title>
70
70
  <style>
71
- @import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
71
+ /* Pretendard - Regular(400), Medium(500), SemiBold(600), Bold(700) */
72
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
73
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; }
74
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
75
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
76
+ /* BR Firma - Regular(400), Medium(500), SemiBold(600), Bold(700) */
77
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
78
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; }
79
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
80
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
81
+ /* MaruBuri - Regular(400), SemiBold(600), Bold(700) */
82
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
83
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
84
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
85
+ /* NanumSquareRound - Regular(400), Bold(700) */
86
+ @font-face { font-family: 'NanumSquareRound'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/NanumSquareRoundR.woff2') format('woff2'); font-weight: 400; font-style: normal; }
87
+ @font-face { font-family: 'NanumSquareRound'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/NanumSquareRoundB.woff2') format('woff2'); font-weight: 700; font-style: normal; }
88
+ /* BookkMyungjo - Regular(400), Bold(700) */
89
+ @font-face { font-family: 'BookkMyungjo'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkMyungjo-Lt.woff2') format('woff2'); font-weight: 400; font-style: normal; }
90
+ @font-face { font-family: 'BookkMyungjo'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkMyungjo-Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; }
91
+ /* BookkGothic - Regular(400), Bold(700) */
92
+ @font-face { font-family: 'BookkGothic'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkGothic-Lt.woff2') format('woff2'); font-weight: 400; font-style: normal; }
93
+ @font-face { font-family: 'BookkGothic'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkGothic-Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; }
94
+ /* Righteous - Regular(400) */
95
+ @font-face { font-family: 'Righteous'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Righteous-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
72
96
  * {
73
97
  margin: 0;
74
98
  padding: 0;
@@ -60,7 +60,31 @@ export async function generateDesignHTML(
60
60
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
61
61
  <title>Certificate</title>
62
62
  <style>
63
- @import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
63
+ /* Pretendard - Regular(400), Medium(500), SemiBold(600), Bold(700) */
64
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
65
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; }
66
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
67
+ @font-face { font-family: 'Pretendard'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Pretendard-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
68
+ /* BR Firma - Regular(400), Medium(500), SemiBold(600), Bold(700) */
69
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
70
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; }
71
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
72
+ @font-face { font-family: 'BR Firma'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BR-Firma-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
73
+ /* MaruBuri - Regular(400), SemiBold(600), Bold(700) */
74
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
75
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; }
76
+ @font-face { font-family: 'MaruBuri'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/MaruBuri-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; }
77
+ /* NanumSquareRound - Regular(400), Bold(700) */
78
+ @font-face { font-family: 'NanumSquareRound'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/NanumSquareRoundR.woff2') format('woff2'); font-weight: 400; font-style: normal; }
79
+ @font-face { font-family: 'NanumSquareRound'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/NanumSquareRoundB.woff2') format('woff2'); font-weight: 700; font-style: normal; }
80
+ /* BookkMyungjo - Regular(400), Bold(700) */
81
+ @font-face { font-family: 'BookkMyungjo'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkMyungjo-Lt.woff2') format('woff2'); font-weight: 400; font-style: normal; }
82
+ @font-face { font-family: 'BookkMyungjo'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkMyungjo-Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; }
83
+ /* BookkGothic - Regular(400), Bold(700) */
84
+ @font-face { font-family: 'BookkGothic'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkGothic-Lt.woff2') format('woff2'); font-weight: 400; font-style: normal; }
85
+ @font-face { font-family: 'BookkGothic'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/BookkGothic-Bd.woff2') format('woff2'); font-weight: 700; font-style: normal; }
86
+ /* Righteous - Regular(400) */
87
+ @font-face { font-family: 'Righteous'; src: url('https://ifwuxxjjypxzrvxilwqy.supabase.co/storage/v1/object/public/blockspoon_images/fonts/Righteous-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; }
64
88
  * {
65
89
  margin: 0;
66
90
  padding: 0;