diff --git a/lib/components/Tempalink.js b/lib/components/Tempalink.js
index 8ae9ef7..24a3644 100644
--- a/lib/components/Tempalink.js
+++ b/lib/components/Tempalink.js
@@ -1,4 +1,5 @@
import React from 'react'
+import QRCode from 'react-qr'
export default class Tempalink extends React.Component {
constructor() {
@@ -12,13 +13,16 @@ export default class Tempalink extends React.Component {
render() {
var url = window.location.origin + '/' + this.props.token
- return
+ return
+
+
+
+
}
}
diff --git a/lib/index.styl b/lib/index.styl
index f26319c..e2eea9e 100644
--- a/lib/index.styl
+++ b/lib/index.styl
@@ -175,15 +175,24 @@ p {
}
.tempalink {
- background: beige
- color: dark-gray
- border: 0
- margin: 20px 0
- font: 18px/1 monospace
- height: 60px
- padding: 20px
- text-align: center
- width: 100%
+ display: flex
+ flex-direction: column
+
+ input {
+ background: beige
+ color: dark-gray
+ border: 0
+ margin: 20px 0
+ font: 18px/1 monospace
+ height: 60px
+ padding: 20px
+ text-align: center
+ width: 100%
+ }
+
+ img {
+ margin: auto
+ }
}
.data {
diff --git a/package.json b/package.json
index 23e7bdf..864badb 100644
--- a/package.json
+++ b/package.json
@@ -58,6 +58,7 @@
"react": "^0.13.0",
"react-frozenhead": "^0.3.0",
"react-google-analytics": "^0.2.0",
+ "react-qr": "0.0.2",
"react-router": "^0.13.1",
"socket.io": "^1.3.5",
"socket.io-client": "^1.3.5",