File tree Expand file tree Collapse file tree 2 files changed +27
-3
lines changed
Expand file tree Collapse file tree 2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 4646 display : flex;
4747 gap : 2rem ;
4848 }
49+ .none {
50+ display : grid;
51+ }
4952 </ style >
5053</ head >
5154< body >
@@ -66,9 +69,16 @@ <h2> Custom colors: using the host background-color and the ::part(canvas)</h2>
6669
6770 < hr >
6871
72+ < div >
73+ < h2 > How to:</ h2 >
74+ < ul class ="none ">
75+ < li > Add the script tag < code > <script type="module" src="https://cdn.jsdelivr.net/npm/@dgrammatiko/qr-element/+esm"> </script> </ code > </ li >
76+ < li > Add the element tag < code > <qr-element input="some string" width="300px"> </qr-element> </ code > </ li >
77+ </ ul >
78+ </ div >
6979 < ul >
7080 < li > < a href ="https://github.com/dgrammatiko/qr-element "> Github repo</ a > </ li >
71- < li > < a href ="https://github. com/dgrammatiko/qr-element "> NPM package</ a > </ li >
81+ < li > < a href ="https://www.npmjs. com/package/@ dgrammatiko/qr-element "> NPM package</ a > </ li >
7282 < li > < a href ="https://dgrammatiko.dev "> by dGrammatiko</ a > </ li >
7383 </ ul >
7484
Original file line number Diff line number Diff line change 11{
2- "name" : " qr-element" ,
2+ "name" : " @dgrammatiko/ qr-element" ,
33 "version" : " 1.0.0" ,
44 "description" : " Creates a QR image" ,
55 "main" : " src/index.mjs" ,
6+ "type" : " module" ,
67 "scripts" : {
78 "dev" : " npx vite" ,
89 "build" : " npx vite build --config ./vite.config.js"
1112 "headless-qr" : " ^1.0.3"
1213 },
1314 "license" : " MIT" ,
14- "author" : " Dimitris Grammatikogiannis"
15+ "author" : " Dimitris Grammatikogiannis" ,
16+ "repository" : {
17+ "type" : " git" ,
18+ "url" : " git+https://github.com/dgrammatiko/qr-element.git"
19+ },
20+ "keywords" : [
21+ " QR-code" ,
22+ " Web-component" ,
23+ " vanilla" ,
24+ " javascript"
25+ ],
26+ "publishConfig" : {
27+ "access" : " public"
28+ }
1529}
You can’t perform that action at this time.
0 commit comments