summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2016-08-15 17:53:01 +0300
committerYuval Adam <_@yuv.al>2016-08-15 17:53:01 +0300
commit228687c20b2de7c65b4c6587ee51e937aacd6185 (patch)
treeb9eb0376cb35fcde16d3eb06dbd8fb97ce613024 /index.js
parent54a1b5d464c1d3f6c6c15badd111fe3f3edffc87 (diff)
Styles and stuff
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.js b/index.js
index 38fac1b..bea4da8 100644
--- a/index.js
+++ b/index.js
@@ -10,7 +10,7 @@ class Qrgen extends React.Component {
super(props)
this.state = {
text: 'Hello World!',
- size: 100
+ size: 300
}
}
@@ -29,14 +29,14 @@ class Qrgen extends React.Component {
render () {
return <div id='root'>
- <h1>qrgen</h1>
- <canvas ref='qr' id='qr'></canvas>
+ <h1>QR Code Generator</h1>
<input type='text' value={this.state.text} onChange={(e) => {
this.setState(Object.assign({}, this.state, { text: e.target.value }))
}}></input>
<input type='text' value={this.state.size} onChange={(e) => {
this.setState(Object.assign({}, this.state, { size: e.target.value }))
}}></input>
+ <canvas ref='qr' id='qr'></canvas>
<footer>
<p>Created by <a href="https://yuv.al">Yuval Adam</a>. Source available on <a href="https://github.com/yuvadm/qrgen.xyz">Github</a>.</p>
</footer>